Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+2 -7
+2 -7
drivers/net/netdevsim/netdev.c
··· 433 433 } 434 434 435 435 /* skb might be discard at netif_receive_skb, save the len */ 436 - skblen = skb->len; 437 - skb_mark_napi_id(skb, &rq->napi); 438 - ret = netif_receive_skb(skb); 439 - if (ret == NET_RX_SUCCESS) 440 - dev_dstats_rx_add(dev, skblen); 441 - else 442 - dev_dstats_rx_dropped(dev); 436 + dev_dstats_rx_add(dev, skb->len); 437 + napi_gro_receive(&rq->napi, skb); 443 438 } 444 439 445 440 nsim_start_peer_tx_queue(dev, rq);