Message ID | 20220413153015.453864-3-maciej.fijalkowski@intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 2be4a677ccb2cae1f72a9467e922642655efc0be |
Delegated to: | BPF |
Headers | show |
Series | xsk: stop NAPI Rx processing on full XSK RQ | expand |
diff --git a/net/xdp/xsk.c b/net/xdp/xsk.c index f75e121073e7..040c73345b7c 100644 --- a/net/xdp/xsk.c +++ b/net/xdp/xsk.c @@ -217,7 +217,7 @@ static bool xsk_is_bound(struct xdp_sock *xs) static int xsk_rcv_check(struct xdp_sock *xs, struct xdp_buff *xdp) { if (!xsk_is_bound(xs)) - return -EINVAL; + return -ENXIO; if (xs->dev != xdp->rxq->dev || xs->queue_id != xdp->rxq->queue_index) return -EINVAL;