Skip to content

Commit 60f4b64

Browse files
hao022Jeff Kirsher
authored andcommitted
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 <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 8f611fb commit 60f4b64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3059,6 +3059,8 @@ static int ixgbe_set_rxfh(struct net_device *netdev, const u32 *indir,
30593059

30603060
for (i = 0; i < reta_entries; i++)
30613061
adapter->rss_indir_tbl[i] = indir[i];
3062+
3063+
ixgbe_store_reta(adapter);
30623064
}
30633065

30643066
/* Fill out the rss hash key */
@@ -3067,8 +3069,6 @@ static int ixgbe_set_rxfh(struct net_device *netdev, const u32 *indir,
30673069
ixgbe_store_key(adapter);
30683070
}
30693071

3070-
ixgbe_store_reta(adapter);
3071-
30723072
return 0;
30733073
}
30743074

0 commit comments

Comments
 (0)