Skip to content

Commit

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

Fixes: 2b1472d ("net/atlantic: implement Tx path")

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 5f8e93c commit 5b74e12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/atlantic/atl_rxtx.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,13 +824,13 @@ atl_prep_pkts(__rte_unused 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 5b74e12

Please sign in to comment.