]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: flower: check if TC offload is enabled on a netdev
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 23 Jan 2018 08:08:40 +0000 (00:08 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jan 2018 21:50:51 +0000 (16:50 -0500)
commit7db0167ccb34e56b96f62a9178aa581cf06b45e0
tree4a5dec62225d3abcfb78baf3b32ee30811255fac
parent1fd02e31620a3f26792011f60b9eb9041d60cc52
i40e: flower: check if TC offload is enabled on a netdev

Since TC block changes drivers are required to check if
the TC hw offload flag is set on the interface themselves.

Fixes: 29b59b6af9bb ("i40e: Enable cloud filters via tc-flower")
Fixes: 11376f59362b ("net: sched: move the can_offload check from binding phase to rule insertion phase")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Amritha Nambiar <amritha.nambiar@intel.com>
Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/i40e/i40e_main.c