mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
ixgbevf: add correct exception tracing for XDP
[ Upstream commitfaae81420d] Add missing exception tracing to XDP when a number of different errors can occur. The support was only partial. Several errors where not logged which would confuse the user quite a lot not knowing where and why the packets disappeared. Fixes:21092e9ce8("ixgbevf: Add support for XDP_TX action") Reported-by: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com> Tested-by: Vishakha Jambekar <vishakha.jambekar@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
e0b61cda5f
commit
8067da9049
|
|
@ -1072,11 +1072,14 @@ static struct sk_buff *ixgbevf_run_xdp(struct ixgbevf_adapter *adapter,
|
||||||
case XDP_TX:
|
case XDP_TX:
|
||||||
xdp_ring = adapter->xdp_ring[rx_ring->queue_index];
|
xdp_ring = adapter->xdp_ring[rx_ring->queue_index];
|
||||||
result = ixgbevf_xmit_xdp_ring(xdp_ring, xdp);
|
result = ixgbevf_xmit_xdp_ring(xdp_ring, xdp);
|
||||||
|
if (result == IXGBEVF_XDP_CONSUMED)
|
||||||
|
goto out_failure;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
bpf_warn_invalid_xdp_action(act);
|
bpf_warn_invalid_xdp_action(act);
|
||||||
fallthrough;
|
fallthrough;
|
||||||
case XDP_ABORTED:
|
case XDP_ABORTED:
|
||||||
|
out_failure:
|
||||||
trace_xdp_exception(rx_ring->netdev, xdp_prog, act);
|
trace_xdp_exception(rx_ring->netdev, xdp_prog, act);
|
||||||
fallthrough; /* handle aborts by dropping packet */
|
fallthrough; /* handle aborts by dropping packet */
|
||||||
case XDP_DROP:
|
case XDP_DROP:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user