Skip to content

Commit

Permalink
net: ena: change default RSS hash function to Toeplitz
Browse files Browse the repository at this point in the history
Currently in the driver we are setting the hash function to be CRC32.
Starting with this commit we want to change the default behaviour so that
we set the hash function to be Toeplitz instead.

Signed-off-by: Sameeh Jubran <sameehj@amazon.com>
Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Arthur Kiyanovski authored and David S. Miller committed May 3, 2020
1 parent f66c2ea commit c1bd17e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/amazon/ena/ena_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -3991,7 +3991,7 @@ static int ena_rss_init_default(struct ena_adapter *adapter)
}
}

rc = ena_com_fill_hash_function(ena_dev, ENA_ADMIN_CRC32, NULL,
rc = ena_com_fill_hash_function(ena_dev, ENA_ADMIN_TOEPLITZ, NULL,
ENA_HASH_KEY_SIZE, 0xFFFFFFFF);
if (unlikely(rc && (rc != -EOPNOTSUPP))) {
dev_err(dev, "Cannot fill hash function\n");
Expand Down

0 comments on commit c1bd17e

Please sign in to comment.