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:
ecafec2
)
net/enic: fix Tx prepare to set positive rte_errno
author
Andrew Rybchenko
<arybchenko@solarflare.com>
Wed, 5 Jun 2019 08:15:57 +0000
(09:15 +0100)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Thu, 13 Jun 2019 14:54:30 +0000
(23:54 +0900)
Fixes:
1e81dbb5321b
("net/enic: add Tx prepare handler")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/enic/enic_rxtx.c
patch
|
blob
|
history
diff --git
a/drivers/net/enic/enic_rxtx.c
b/drivers/net/enic/enic_rxtx.c
index
0aadd34
..
8fa8647
100644
(file)
--- a/
drivers/net/enic/enic_rxtx.c
+++ b/
drivers/net/enic/enic_rxtx.c
@@
-416,13
+416,13
@@
uint16_t enic_prep_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,
#ifdef RTE_LIBRTE_ETHDEV_DEBUG
ret = rte_validate_tx_offload(m);
if (ret != 0) {
- rte_errno = ret;
+ rte_errno =
-
ret;
return i;
}
#endif
ret = rte_net_intel_cksum_prepare(m);
if (ret != 0) {
- rte_errno = ret;
+ rte_errno =
-
ret;
return i;
}
}