net/mlx5: fix TPID check for VLAN push action on E-Switch
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Wed, 21 Nov 2018 11:27:49 +0000 (11:27 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 22 Nov 2018 15:17:31 +0000 (16:17 +0100)
commit4022d789824391b1de503192a8ee8f8aac7f2e03
treed31bdf6fc7061ee5631174c09e4c8fca7e07861e
parente71b32f172f24a8f13392ee3fefd0ed74a1a4a71
net/mlx5: fix TPID check for VLAN push action on E-Switch

The VLAN push action on E-Switch supports only 802.1Q (0x8100)
and 802.1AD (0x88A8) Tag Protocol ID (TPID) insertions. The
parameter check for RTE_FLOW_ACTION_TYPE_OF_PUSH_VLAN action
is added.

Fixes: 57123c00c1b8 ("net/mlx5: add Linux TC flower driver for E-Switch flow")

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5_flow_tcf.c