]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Offload TC flow counters only when supported
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 14 Jul 2016 07:32:39 +0000 (10:32 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Jul 2016 20:34:28 +0000 (13:34 -0700)
commitd130ba3a7a13ecf97a126f591f7e30693d4d52cb
tree95b6535cd91a285ebcd90c9b2124ce323fea0d55
parentf4933dd6ee0b3a323789e35e553f091979d0141f
net/mlx5e: Offload TC flow counters only when supported

Currenly, the code that programs the flow actions into the firmware
doesn't check if was actually asked to offload the statistics, fix that.

Fixes: 02de30036ccc ('net/mlx5e: Hardware offloaded flower filter statistics support')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c