diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2018-11-09 00:18:02 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-08 20:45:04 -0800 |
commit | 82eea4cfe41dfc1f50a7e3af1ab3d76a89d193fc (patch) | |
tree | 3c1afccfef989da8729d2856f6783e7ea00a03df /net/netfilter | |
parent | b1817524c028a5a5284f21358185c74790001e0e (diff) | |
download | linux-82eea4cfe41dfc1f50a7e3af1ab3d76a89d193fc.tar.bz2 |
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>
Diffstat (limited to 'net/netfilter')
-rw-r--r-- | net/netfilter/nfnetlink_queue.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c index 43041f087eb3..1ce30efe6854 100644 --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c @@ -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]) { |