net/ice/base: refactor post DDP download VLAN mode config
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 29 Apr 2021 00:41:39 +0000 (08:41 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 30 Apr 2021 13:26:25 +0000 (15:26 +0200)
commit5ade55ab43e6c07a904c03ebe2d796fdea94e7e0
treea9b6bce3b8207e31ea8fbeb55c4c341c4d482c4b
parent937fa68010317dde8bc2f63117e82315c2176b5c
net/ice/base: refactor post DDP download VLAN mode config

Currently it's not clear that only the first PF downloads the package
and configures the VLAN mode. When this is happening all other PFs are
blocked on the global configuration lock. Once the package is
successfully downloaded and the global configuration lock has been
released then all PFs resume initialization. This includes some post
package download VLAN mode configuration. To make this more obvious add
the new function ice_post_pkg_dwnld_vlan_mode_cfg() so any/all post
download VLAN mode configuration code can be put in here.

This also makes it more clear that all PFs will call this new function.

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_flex_pipe.c
drivers/net/ice/base/ice_vlan_mode.c
drivers/net/ice/base/ice_vlan_mode.h