Files
linux/drivers/net/ethernet/intel/ice
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
..
2024-03-07 21:12:43 -08:00
2024-02-02 09:13:13 -08:00
2023-12-18 11:20:43 -08:00
2023-12-18 11:20:43 -08:00
2023-01-19 08:18:03 -08:00
2024-06-13 08:24:17 -07:00
2024-04-22 13:05:19 -07:00
2023-10-26 20:32:38 -07:00
2023-12-18 11:20:26 -08:00
2022-02-09 09:24:45 -08:00
2024-03-25 13:08:05 -07:00
2023-12-05 11:40:12 +01:00
2024-04-17 09:40:33 -07:00
2024-03-25 13:09:36 -07:00
2024-04-22 13:05:19 -07:00
2024-03-04 10:25:07 -08:00
2024-06-05 19:27:56 -07:00