1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/intel
Marcin Szycik 74382aebc9 ice: Fix VSI list rule with ICE_SW_LKUP_LAST type
Adding/updating VSI list rule, as well as allocating/freeing VSI list
resource are called several times with type ICE_SW_LKUP_LAST, which fails
because ice_update_vsi_list_rule() and ice_aq_alloc_free_vsi_list()
consider it invalid. Allow calling these functions with ICE_SW_LKUP_LAST.

This fixes at least one issue in switchdev mode, where the same rule with
different action cannot be added, e.g.:

  tc filter add dev $PF1 ingress protocol arp prio 0 flower skip_sw \
    dst_mac ff:ff:ff:ff:ff:ff action mirred egress redirect dev $VF1_PR
  tc filter add dev $PF1 ingress protocol arp prio 0 flower skip_sw \
    dst_mac ff:ff:ff:ff:ff:ff action mirred egress redirect dev $VF2_PR

Fixes: 0f94570d0c ("ice: allow adding advanced rules")
Suggested-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Marcin Szycik <marcin.szycik@linux.intel.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Sujai Buvaneswaran <sujai.buvaneswaran@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://lore.kernel.org/r/20240618210206.981885-1-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-06-19 17:20:06 -07:00
..
e1000 net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
e1000e e1000e: move force SMBUS near the end of enable_ulp function 2024-05-29 18:56:30 -07:00
fm10k net: intel: implement modern PM ops declarations 2024-03-29 08:58:43 -07:00
i40e i40e: Fully suspend and resume IO operations in EEH case 2024-05-29 18:56:30 -07:00
iavf tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
ice ice: Fix VSI list rule with ICE_SW_LKUP_LAST type 2024-06-19 17:20:06 -07:00
idpf idpf: don't enable NAPI and interrupts prior to allocating Rx buffers 2024-05-27 17:11:43 -07:00
igb igb: flower: validate control flags 2024-05-08 09:22:33 -07:00
igbvf net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
igc Revert "igc: fix a log entry using uninitialized netdev" 2024-06-13 07:24:52 -07:00
ixgbe Quite smaller than usual. Notably it includes the fix for the unix 2024-05-23 12:49:37 -07:00
ixgbevf net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
libeth libeth: add Rx buffer management 2024-04-24 11:06:25 -07:00
libie net: intel: introduce {, Intel} Ethernet common library 2024-04-24 11:06:25 -07:00
e100.c net: intel: implement modern PM ops declarations 2024-03-29 08:58:43 -07:00
Kconfig net: intel: introduce {, Intel} Ethernet common library 2024-04-24 11:06:25 -07:00
Makefile net: intel: introduce {, Intel} Ethernet common library 2024-04-24 11:06:25 -07:00