UPSTREAM: socionext: account for napi_gro_receive never returning GRO_DROP
The napi_gro_receive function no longer returns GRO_DROP ever, making handling GRO_DROP dead code. This commit removes that dead code. Further, it's not even clear that device drivers have any business in taking action after passing off received packets; that's arguably out of their hands. Bug: 254441685 Fixes: 6570bc79c0df ("net: core: use listified Rx for GRO_NORMAL in napi_gro_receive()") Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: David S. Miller <davem@davemloft.net> (cherry picked from commit 0c5378f9d5003334775ea0e5e9934976aa4a1b66) Signed-off-by: Lee Jones <joneslee@google.com> Change-Id: Ic0e73a7ecd9ee0265459aea3f99895c9bb3d92ce
This commit is contained in:
parent
38f38545f7
commit
0aad586104
@ -1030,8 +1030,9 @@ static int netsec_process_rx(struct netsec_priv *priv, int budget)
|
|||||||
skb->ip_summed = CHECKSUM_UNNECESSARY;
|
skb->ip_summed = CHECKSUM_UNNECESSARY;
|
||||||
|
|
||||||
next:
|
next:
|
||||||
if ((skb && napi_gro_receive(&priv->napi, skb) != GRO_DROP) ||
|
if (skb)
|
||||||
xdp_result) {
|
napi_gro_receive(&priv->napi, skb);
|
||||||
|
if (skb || xdp_result) {
|
||||||
ndev->stats.rx_packets++;
|
ndev->stats.rx_packets++;
|
||||||
ndev->stats.rx_bytes += xdp.data_end - xdp.data;
|
ndev->stats.rx_bytes += xdp.data_end - xdp.data;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user