]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_payload: add C-VLAN offload support
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 19 Nov 2019 22:05:55 +0000 (23:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Nov 2019 19:21:34 +0000 (11:21 -0800)
commit0816ba5abea96b2fda2db5b617af7bc0977ed9b6
tree7c7a62414892a60e3cc5534df46a19f6b3a4232c
parent76d1f27effd4ce543934a95d6b5524456b9be24f
netfilter: nft_payload: add C-VLAN offload support

Match on h_vlan_encapsulated_proto 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>
net/netfilter/nft_payload.c