]> git.proxmox.com Git - mirror_ovs.git/commit
netdev-tc-offloads: Support match on priority tags
authorEli Britstein <elibr@mellanox.com>
Tue, 21 May 2019 12:11:51 +0000 (12:11 +0000)
committerSimon Horman <simon.horman@netronome.com>
Mon, 3 Jun 2019 14:39:21 +0000 (16:39 +0200)
commit0b0a84783cd6048ca3d35af0f5b4652cecd34358
tree07a025ef1bbda02b250f48956e90e3f7c829edc9
parent4e59513cd3c6b6555813a54c9b6def9118cf7df0
netdev-tc-offloads: Support match on priority tags

The logic by which a TC rule has a VLAN match is by the VLAN TCI field,
either the VID, PCP or CFI are non-zero. For priority-tag packets
there is a VLAN tag header with a zero VLAN TCI. Match on existence of
VLAN header (TPID) regardless of TCI matching.

Signed-off-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
lib/netdev-tc-offloads.c