]> git.droids-corp.org - dpdk.git/commit
net/iavf: initialize large VF setting at startup
authorGhalem Boudour <ghalem.boudour@6wind.com>
Thu, 10 Feb 2022 10:49:14 +0000 (11:49 +0100)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 11 Feb 2022 09:32:05 +0000 (10:32 +0100)
commit01263e11a2ccc3e1d4ee25ebc703a836725f827f
treecc55a063246d8dddf1908a5675343f222132bb27
parentf6eee8bcac30e4e1372886d8776a3fd740ee786c
net/iavf: initialize large VF setting at startup

lv_enabled is used to remember if large VF setting is configured, but
its value is not initialized at startup. This can lead to a different
configuration regarding the initial configuration of the PF.
For example, a first start is done with 8 rx and 8 tx queues. Large VF
is not needed and reta size is 64.
A second start is done with 20 rx and tx queues. Large VF is required
and reta size is 256.
A third start is done with 2 rx and tx queues. Large VF is not needed
but reta size is 256 as the PF has been configured during the second
start.

In order to have a consistent behavior regarding reta size whatever
the configuration of the PF (may be changed by a previous boot) the
lv_enabled must be set properly at the init phase.

Signed-off-by: Ghalem Boudour <ghalem.boudour@6wind.com>
Signed-off-by: Thibaut Collet <thibaut.collet@6wind.com>
Reviewed-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Ting Xu <ting.xu@intel.com>
drivers/net/iavf/iavf_ethdev.c