git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d178ea
)
net/bnxt: return error if setting link up fails
author
Kalesh AP
<kalesh-anakkur.purayil@broadcom.com>
Thu, 10 Oct 2019 01:41:44 +0000
(18:41 -0700)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Wed, 23 Oct 2019 14:43:08 +0000
(16:43 +0200)
Currently bnxt driver does not return error in case setting link up fails.
Fixes:
5c206086feaa
("net/bnxt: add link state operations")
Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/bnxt/bnxt_ethdev.c
b/drivers/net/bnxt/bnxt_ethdev.c
index
294a950
..
4b39586
100644
(file)
--- a/
drivers/net/bnxt/bnxt_ethdev.c
+++ b/
drivers/net/bnxt/bnxt_ethdev.c
@@
-930,7
+930,7
@@
static int bnxt_dev_set_link_up_op(struct rte_eth_dev *eth_dev)
eth_dev->data->dev_link.link_status = 1;
bnxt_print_link_info(eth_dev);
- return
0
;
+ return
rc
;
}
static int bnxt_dev_set_link_down_op(struct rte_eth_dev *eth_dev)