Signed-off-by: Michał Mirosław <[email protected]>
---
 net/netfilter/nfnetlink_queue.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c
index be7627b..f268bb9 100644
--- a/net/netfilter/nfnetlink_queue.c
+++ b/net/netfilter/nfnetlink_queue.c
@@ -1111,8 +1111,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]) {
-- 
2.10.2

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to