net/mlx5: add E-switch rule hardware offload flag check
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Mon, 12 Nov 2018 20:01:42 +0000 (20:01 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 15 Nov 2018 22:54:53 +0000 (23:54 +0100)
commit6526d465f0f26af530a54a5f590367b1ddc2f20f
treec1b46b588e6c786aeecfadf0232e8348481c57c8
parent59d64571110b1f6007a90615d9c9958b148ed585
net/mlx5: add E-switch rule hardware offload flag check

This patch adds the in_hw flag check for tc flower filter rules.
If rule is applied without skip_sw flag set driver should check
whether the in_hw flag is set after rule applying. If no in_hw
flag set found it means the rule is not hardware offloaded and
error should be returned to application.

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