Skip to content

Commit 422e21e

Browse files
Netanel Belgazaldavem330
authored andcommitted
net/ena: fix RSS default hash configuration
ENA default hash configures IPv4_frag hash twice instead of configure non-IP packets. The bug caused IPv4 fragmented packets to be calculated based on L2 source and destination address instead of L3 source and destination. IPv4 packets can reach to the wrong Rx queue. Signed-off-by: Netanel Belgazal <netanel@annapurnalabs.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6e2de20 commit 422e21e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/amazon/ena/ena_com.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2184,7 +2184,7 @@ int ena_com_set_default_hash_ctrl(struct ena_com_dev *ena_dev)
21842184
hash_ctrl->selected_fields[ENA_ADMIN_RSS_IP4_FRAG].fields =
21852185
ENA_ADMIN_RSS_L3_SA | ENA_ADMIN_RSS_L3_DA;
21862186

2187-
hash_ctrl->selected_fields[ENA_ADMIN_RSS_IP4_FRAG].fields =
2187+
hash_ctrl->selected_fields[ENA_ADMIN_RSS_NOT_IP].fields =
21882188
ENA_ADMIN_RSS_L2_DA | ENA_ADMIN_RSS_L2_SA;
21892189

21902190
for (i = 0; i < ENA_ADMIN_RSS_PROTO_NUM; i++) {

0 commit comments

Comments
 (0)