diff options
author | Sameeh Jubran <sameehj@amazon.com> | 2019-05-01 15:47:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-04 06:14:46 +0200 |
commit | 9a27de0c6ba10fe1af74d16d3524425e52c1ba3e (patch) | |
tree | 6d3692ec12b70a0b08f61220a159f17f5966de9d /drivers | |
parent | net: ena: fix incorrect test of supported hash function (diff) | |
download | linux-9a27de0c6ba10fe1af74d16d3524425e52c1ba3e.tar.xz linux-9a27de0c6ba10fe1af74d16d3524425e52c1ba3e.zip |
net: ena: fix return value of ena_com_config_llq_info()
ena_com_config_llq_info() returns 0 even if ena_com_set_llq() fails.
Return the failure code of ena_com_set_llq() in case it fails.
fixes: 689b2bdaaa14 ("net: ena: add functions for handling Low Latency Queues in ena_com")
Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: Sameeh Jubran <sameehj@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/amazon/ena/ena_com.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amazon/ena/ena_com.c b/drivers/net/ethernet/amazon/ena/ena_com.c index f9bc0b831a1a..4fe437fe771b 100644 --- a/drivers/net/ethernet/amazon/ena/ena_com.c +++ b/drivers/net/ethernet/amazon/ena/ena_com.c @@ -731,7 +731,7 @@ static int ena_com_config_llq_info(struct ena_com_dev *ena_dev, if (rc) pr_err("Cannot set LLQ configuration: %d\n", rc); - return 0; + return rc; } static int ena_com_wait_and_process_admin_cq_interrupts(struct ena_comp_ctx *comp_ctx, |