Skip to content

Commit

Permalink
net/enic: fix Tx prepare to set positive rte_errno
Browse files Browse the repository at this point in the history
[ upstream commit ad8473e ]

Fixes: 1e81dbb ("net/enic: add Tx prepare handler")

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
  • Loading branch information
arybchenko authored and kevintraynor committed Jun 24, 2019
1 parent 842b47e commit 5527de5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/enic/enic_rxtx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 5527de5

Please sign in to comment.