ixgbe: change ndo_xdp_xmit return code on xmit errors
authorJesper Dangaard Brouer <brouer@redhat.com>
Thu, 17 Aug 2017 16:22:32 +0000 (18:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Aug 2017 23:18:31 +0000 (16:18 -0700)
commitd2cee2e5d0106abb5da25f393b3c50e0bb01f7f9
treeea85911c55c38cae44ca08bfa05bb3e859a542ca
parent3de42f5617dca6d2e5c8bbc4a07b4cfe270f8764
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>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c