summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <brouer@redhat.com>2017-08-24 12:33:13 +0200
committerDavid S. Miller <davem@davemloft.net>2017-08-24 11:59:37 -0700
commit2886447dc5add28226451c163cd9ac1d1b3bf59a (patch)
tree3e04ec2a8cbd024b12ce76c25e13bd383b00f947 /net/core
parent2facaad6000f2322eb40ca379aced31c957f0a41 (diff)
downloadop-kernel-dev-2886447dc5add28226451c163cd9ac1d1b3bf59a.zip
op-kernel-dev-2886447dc5add28226451c163cd9ac1d1b3bf59a.tar.gz
ixgbe: use return codes from ndo_xdp_xmit that are distinguishable
For XDP_REDIRECT the use of return code -EINVAL is confusing, as it is used in three different cases. (1) When the index or ifindex lookup fails, and in the ixgbe driver (2) when link is down and (3) when XDP have not been enabled. The return code can be picked up by the tracepoint xdp:xdp_redirect for diagnosing why XDP_REDIRECT isn't working. Thus, there is a need different return codes to tell the issues apart. I'm considering using a specific err-code scheme for XDP_REDIRECT instead of using these errno codes. Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud