Skip to content

Commit a876c3b

Browse files
mawilli1Jeff Kirsher
authored andcommitted
i40e/i40evf: properly report Rx packet hash
This logic is inverted. If the RXHASH flag is set, then we should go ahead and call skb_set_hash. Change-ID: Ib2e30356dced1d3e939c8061ab6ad5bd94197e7c Signed-off-by: Mitch Williams <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 4b28cdb commit a876c3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/i40e/i40e_txrx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ static inline void i40e_rx_hash(struct i40e_ring *ring,
13941394
cpu_to_le64((u64)I40E_RX_DESC_FLTSTAT_RSS_HASH <<
13951395
I40E_RX_DESC_STATUS_FLTSTAT_SHIFT);
13961396

1397-
if (ring->netdev->features & NETIF_F_RXHASH)
1397+
if (!(ring->netdev->features & NETIF_F_RXHASH))
13981398
return;
13991399

14001400
if ((rx_desc->wb.qword1.status_error_len & rss_mask) == rss_mask) {

0 commit comments

Comments
 (0)