mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user