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:
3732f83
)
net/atlantic: fix negative error codes
author
Igor Russkikh
<igor.russkikh@aquantia.com>
Tue, 12 Mar 2019 15:24:52 +0000
(15:24 +0000)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Wed, 20 Mar 2019 17:15:42 +0000
(18:15 +0100)
These are just convention breakage on rte_errno,
no real harm from that.
Fixes:
2b1472d7150c
("net/atlantic: implement Tx path")
Cc: stable@dpdk.org
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
drivers/net/atlantic/atl_rxtx.c
patch
|
blob
|
history
diff --git
a/drivers/net/atlantic/atl_rxtx.c
b/drivers/net/atlantic/atl_rxtx.c
index
40c9137
..
aea58c0
100644
(file)
--- a/
drivers/net/atlantic/atl_rxtx.c
+++ b/
drivers/net/atlantic/atl_rxtx.c
@@
-812,12
+812,12
@@
atl_prep_pkts(__rte_unused void *tx_queue, struct rte_mbuf **tx_pkts,
ol_flags = m->ol_flags;
if (m->nb_segs > AQ_HW_MAX_SEGS_SIZE) {
- rte_errno =
-
EINVAL;
+ rte_errno = EINVAL;
return i;
}
if (ol_flags & ATL_TX_OFFLOAD_NOTSUP_MASK) {
- rte_errno =
-
ENOTSUP;
+ rte_errno = ENOTSUP;
return i;
}