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>
This commit is contained in:

committed by
David S. Miller

parent
8819efc943
commit
a82055af59
@@ -48,9 +48,12 @@ struct flow_dissector_key_tags {
|
||||
};
|
||||
|
||||
struct flow_dissector_key_vlan {
|
||||
u16 vlan_id:12,
|
||||
vlan_dei:1,
|
||||
vlan_priority:3;
|
||||
union {
|
||||
u16 vlan_id:12,
|
||||
vlan_dei:1,
|
||||
vlan_priority:3;
|
||||
__be16 vlan_tci;
|
||||
};
|
||||
__be16 vlan_tpid;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user