]> www.infradead.org Git - users/willy/xarray.git/commit
ice: move VSI configuration outside repr setup
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Mon, 10 Jun 2024 07:44:33 +0000 (09:44 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 21 Jun 2024 15:51:50 +0000 (08:51 -0700)
commit4d364df2b5ed1718580f22df1458cfecf82787a2
treee43ba336a38d253055adc586c0de5a8ff67b17bb
parent8d2f518c0c9dc86be677c037a6e2f5e7da268866
ice: move VSI configuration outside repr setup

It is needed because subfunction port representor shouldn't configure
the source VSI during representor creation.

Move the code to separate function and call it only in case the VF port
representor is being created.

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_repr.c