nfnetlink/queue: use __vlan_hwaccel helpers
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b1817524c0
commit
82eea4cfe4
@ -1148,8 +1148,9 @@ static int nfqa_parse_bridge(struct nf_queue_entry *entry,
|
|||||||
if (!tb[NFQA_VLAN_TCI] || !tb[NFQA_VLAN_PROTO])
|
if (!tb[NFQA_VLAN_TCI] || !tb[NFQA_VLAN_PROTO])
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
entry->skb->vlan_tci = ntohs(nla_get_be16(tb[NFQA_VLAN_TCI]));
|
__vlan_hwaccel_put_tag(entry->skb,
|
||||||
entry->skb->vlan_proto = nla_get_be16(tb[NFQA_VLAN_PROTO]);
|
nla_get_be16(tb[NFQA_VLAN_PROTO]),
|
||||||
|
ntohs(nla_get_be16(tb[NFQA_VLAN_TCI])));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nfqa[NFQA_L2HDR]) {
|
if (nfqa[NFQA_L2HDR]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user