mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
fm10k: do not use enum as boolean
Check for actual value NETREG_UNINITIALIZED in case it ever changes from the current value of zero. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Tested-by: Krishneil Singh <krishneil.k.singh@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
f6f19f8bb9
commit
b4a5127b03
@ -1905,7 +1905,7 @@ static void fm10k_init_reta(struct fm10k_intfc *interface)
|
||||
u32 reta, base;
|
||||
|
||||
/* If the netdev is initialized we have to maintain table if possible */
|
||||
if (interface->netdev->reg_state) {
|
||||
if (interface->netdev->reg_state != NETREG_UNINITIALIZED) {
|
||||
for (i = FM10K_RETA_SIZE; i--;) {
|
||||
reta = interface->reta[i];
|
||||
if ((((reta << 24) >> 24) < rss_i) &&
|
||||
|
Loading…
Reference in New Issue
Block a user