mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-27 21:14:44 +08:00
ixgbe: Avoid to write the RETA table when unnecessary
If indir == 0 in the ixgbe_set_rxfh(), it is unnecessary to write the HW. Because redirection table is not changed. Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
8f611fb046
commit
60f4b64549
@ -3059,6 +3059,8 @@ static int ixgbe_set_rxfh(struct net_device *netdev, const u32 *indir,
|
||||
|
||||
for (i = 0; i < reta_entries; i++)
|
||||
adapter->rss_indir_tbl[i] = indir[i];
|
||||
|
||||
ixgbe_store_reta(adapter);
|
||||
}
|
||||
|
||||
/* Fill out the rss hash key */
|
||||
@ -3067,8 +3069,6 @@ static int ixgbe_set_rxfh(struct net_device *netdev, const u32 *indir,
|
||||
ixgbe_store_key(adapter);
|
||||
}
|
||||
|
||||
ixgbe_store_reta(adapter);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user