Skip to content

Commit

Permalink
nfnetlink/queue: use __vlan_hwaccel helpers
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Michał Mirosław authored and David S. Miller committed Nov 9, 2018
1 parent b181752 commit 82eea4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions net/netfilter/nfnetlink_queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -1148,8 +1148,9 @@ static int nfqa_parse_bridge(struct nf_queue_entry *entry,
if (!tb[NFQA_VLAN_TCI] || !tb[NFQA_VLAN_PROTO])
return -EINVAL;

entry->skb->vlan_tci = ntohs(nla_get_be16(tb[NFQA_VLAN_TCI]));
entry->skb->vlan_proto = nla_get_be16(tb[NFQA_VLAN_PROTO]);
__vlan_hwaccel_put_tag(entry->skb,
nla_get_be16(tb[NFQA_VLAN_PROTO]),
ntohs(nla_get_be16(tb[NFQA_VLAN_TCI])));
}

if (nfqa[NFQA_L2HDR]) {
Expand Down

0 comments on commit 82eea4c

Please sign in to comment.