summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <brouer@redhat.com>2017-08-17 19:22:32 +0300
committerDavid S. Miller <davem@davemloft.net>2017-08-19 02:18:31 +0300
commitd2cee2e5d0106abb5da25f393b3c50e0bb01f7f9 (patch)
treeea85911c55c38cae44ca08bfa05bb3e859a542ca /drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
parent3de42f5617dca6d2e5c8bbc4a07b4cfe270f8764 (diff)
downloadlinux-d2cee2e5d0106abb5da25f393b3c50e0bb01f7f9.tar.xz
ixgbe: change ndo_xdp_xmit return code on xmit errors
Use errno -ENOSPC ("No space left on device") when the XDP xmit have no space left on the TX ring buffer, instead of -ENOMEM. Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com> Acked-by: John Fastabend <john.fastabend@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe/ixgbe_main.c')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
index 56d7ef014d0d..8d3224ad6434 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
@@ -9860,7 +9860,7 @@ static int ixgbe_xdp_xmit(struct net_device *dev, struct xdp_buff *xdp)
err = ixgbe_xmit_xdp_ring(adapter, xdp);
if (err != IXGBE_XDP_TX)
- return -ENOMEM;
+ return -ENOSPC;
return 0;
}