summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5
diff options
context:
space:
mode:
authorMaxime Chevallier2019-06-18 16:55:19 +0200
committerDavid S. Miller2019-06-19 04:26:05 +0200
commit1274daede3eff80e04a792219cf74c62994713fb (patch)
tree36c534f567d574844d085c512c1320db313fd26a /drivers/net/ethernet/mellanox/mlx5
parentnet: mvpp2: cls: right-justify the C2 TCAM keys (diff)
downloadkernel-qcow2-linux-1274daede3eff80e04a792219cf74c62994713fb.tar.gz
kernel-qcow2-linux-1274daede3eff80e04a792219cf74c62994713fb.tar.xz
kernel-qcow2-linux-1274daede3eff80e04a792219cf74c62994713fb.zip
net: mvpp2: cls: Add steering based on vlan Id and priority.
This commit allows using the vlan Id and priority as parts of the key for classification offload. These fields are extracted from the outermost tag, if multiple tags are present. Vlan Id and priority are considered as 2 different fields by the classifier, however the fields are both appended in the Header Extracted Key in the same layout as they are found in the tags. This means that when steering only based on the prio, a 16-bit slot is still taken in the HEK. The classifier doesn't allow extracting the DEI bit from the tag, so we explicitly prevent user from using this bit in the key. This commit adds the vlan priotity as a compatible HEK field for tagged traffic, meaning that we limit the possibility of extracting this field only to the flows that contain tagged traffic. Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5')
0 files changed, 0 insertions, 0 deletions