summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSameeh Jubran <sameehj@amazon.com>2019-05-01 16:47:09 +0300
committerDavid S. Miller <davem@davemloft.net>2019-05-04 00:14:47 -0400
commit11bd7a00c0d8ffe33d1e926f8e789b4aea787186 (patch)
tree5bb7131609d391c9c6b008a322323dea696e6f5b
parent78cb421d185cfb4fcea94e7c3ff6e6ea77bb8c11 (diff)
downloadlinux-11bd7a00c0d8ffe33d1e926f8e789b4aea787186.tar.bz2
net: ena: fix ena_com_fill_hash_function() implementation
ena_com_fill_hash_function() didn't configure the rss->hash_func. Fixes: 1738cd3ed342 ("net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)") Signed-off-by: Netanel Belgazal <netanel@amazon.com> Signed-off-by: Sameeh Jubran <sameehj@amazon.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/amazon/ena/ena_com.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amazon/ena/ena_com.c b/drivers/net/ethernet/amazon/ena/ena_com.c
index 677d31abf214..4cdd8459c37e 100644
--- a/drivers/net/ethernet/amazon/ena/ena_com.c
+++ b/drivers/net/ethernet/amazon/ena/ena_com.c
@@ -2280,6 +2280,7 @@ int ena_com_fill_hash_function(struct ena_com_dev *ena_dev,
return -EINVAL;
}
+ rss->hash_func = func;
rc = ena_com_set_hash_function(ena_dev);
/* Restore the old function */