]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
netfilter: nft_payload: add VLAN offload support
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 19 Nov 2019 22:05:54 +0000 (23:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Nov 2019 19:21:34 +0000 (11:21 -0800)
commita82055af595946aea461528e551e6ae064b3d560
tree7866d9d2b20e13d403ee617dc2c5b1637a9158cb
parent8819efc9430142957c9c8fc7c09d9107e2061b87
netfilter: nft_payload: add VLAN offload support

Match on ethertype and set up protocol dependency. Check for protocol
dependency before accessing the tci field. Allow to match on the
encapsulated ethertype too.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow_dissector.h
net/netfilter/nft_payload.c