]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Apply the correct check for supporting TC esw rules split
authorRoi Dayan <roid@mellanox.com>
Tue, 23 Oct 2018 14:30:04 +0000 (17:30 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 19 Nov 2018 22:35:04 +0000 (14:35 -0800)
commit1a81c308fb180daf995ece6d3e0606a31517b91c
tree05374a0b5963b42a3df3e197cab428c8b81d6b1c
parentcbccde6c4ec0bbda026c585157e9f32fe9dbfe8e
net/mlx5e: Apply the correct check for supporting TC esw rules split

The mirror and not the output count is the one denoting a split.
Fix to condition the offload attempt on the mirror count being > 0
along the firmware to have the related capability.

Fixes: 3b728d151716 ("net/mlx5e: Parse mirroring action for offloaded TC eswitch flows")
Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Yossi Kuperman <yossiku@mellanox.com>
Reviewed-by: Chris Mi <chrism@mellanox.com>
Acked-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c