mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
netdevsim: pass packets thru GRO on Rx
To replace veth in software GRO testing with netdevsim we need GRO support in netdevsim. Luckily we already have NAPI support so this change is trivial (compared to veth). Reviewed-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Willem de Bruijn <willemb@google.com> Link: https://patch.msgid.link/20251120021024.2944527-9-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
15011a57d0
commit
40dd789bc5
|
|
@ -433,13 +433,8 @@ static int nsim_rcv(struct nsim_rq *rq, int budget)
|
|||
}
|
||||
|
||||
/* skb might be discard at netif_receive_skb, save the len */
|
||||
skblen = skb->len;
|
||||
skb_mark_napi_id(skb, &rq->napi);
|
||||
ret = netif_receive_skb(skb);
|
||||
if (ret == NET_RX_SUCCESS)
|
||||
dev_dstats_rx_add(dev, skblen);
|
||||
else
|
||||
dev_dstats_rx_dropped(dev);
|
||||
dev_dstats_rx_add(dev, skb->len);
|
||||
napi_gro_receive(&rq->napi, skb);
|
||||
}
|
||||
|
||||
nsim_start_peer_tx_queue(dev, rq);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user