]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ice: update representor when VSI is ready
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Mon, 10 Jun 2024 07:44:34 +0000 (09:44 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 21 Jun 2024 15:51:58 +0000 (08:51 -0700)
commitfff5cca345a66a341870512e58ca469042249f25
tree45db2bb32f57e78c282289b5a30f4e70e8c64830
parent4d364df2b5ed1718580f22df1458cfecf82787a2
ice: update representor when VSI is ready

In case of reset of VF VSI can be reallocated. To handle this case it
should be properly updated.

Reload representor as vsi->vsi_num can be different than the one stored
when representor was created.

Instead of only changing antispoof do whole VSI configuration for
eswitch.

Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.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>
drivers/net/ethernet/intel/ice/ice_eswitch.c
drivers/net/ethernet/intel/ice/ice_eswitch.h
drivers/net/ethernet/intel/ice/ice_vf_lib.c