summaryrefslogtreecommitdiff
path: root/net/sctp/endpointola.c
diff options
context:
space:
mode:
authorSameeh Jubran <sameehj@amazon.com>2020-06-03 08:50:23 +0000
committerDavid S. Miller <davem@davemloft.net>2020-06-04 15:43:01 -0700
commit3921a81c31df6057183aeb7f7d204003bf699d6f (patch)
tree586195c55f9cfb98d735603a97c443c137932056 /net/sctp/endpointola.c
parentcd07ecccba13b8bd5023ffe7be57363d07e3105f (diff)
net: ena: xdp: update napi budget for DROP and ABORTED
This patch fixes two issues with XDP: 1. If the XDP verdict is XDP_ABORTED we break the loop, which results in us handling one buffer per napi cycle instead of the total budget (usually 64). To overcome this simply change the xdp_verdict check to != XDP_PASS. When the verdict is XDP_PASS, the skb is not expected to be NULL. 2. Update the residual budget for XDP_DROP and XDP_ABORTED, since packets are handled in these cases. Fixes: 548c4940b9f1 ("net: ena: Implement XDP_TX action") Signed-off-by: Sameeh Jubran <sameehj@amazon.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/endpointola.c')
0 files changed, 0 insertions, 0 deletions