]> git.baikalelectronics.ru Git - kernel.git/commit
ice: ndo_setup_tc implementation for PR
authorMichal Swiatkowski <michal.swiatkowski@intel.com>
Fri, 6 Aug 2021 08:49:06 +0000 (10:49 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 11 Oct 2021 16:03:08 +0000 (09:03 -0700)
commit06ed520f9ed8c250c77a55fa8466c4e9e6e29143
tree5d3d855de9e2ecf1ad8405e6e5863ef0d3ff2eaa
parentf1d37d7018fb6f129e558b0d962be21968ecff06
ice: ndo_setup_tc implementation for PR

Add tc-flower support for VF port representor devices.

Implement ndo_setup_tc callback for TC HW offload on VF port representors
devices. Implemented both methods: add and delete tc-flower flows.

Mark NETIF_F_HW_TC bit in net device's feature set to enable offload TC
infrastructure for port representor.

Implement TC filters replay function required to restore filters settings
while switchdev configuration is rebuilt.

Signed-off-by: Michal Swiatkowski <michal.swiatkowski@intel.com>
Signed-off-by: Wojciech Drewek <wojciech.drewek@intel.com>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_eswitch.c
drivers/net/ethernet/intel/ice/ice_repr.c
drivers/net/ethernet/intel/ice/ice_tc_lib.c
drivers/net/ethernet/intel/ice/ice_tc_lib.h