summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>2023-06-08 11:20:06 +0900
committerDavid S. Miller <davem@davemloft.net>2023-06-10 19:49:18 +0100
commitdc510c6d2ecfff1faaf95b642c5fc01c86d6fdff (patch)
tree35478f6af6da95878e027022301e43e7baaf6e6c /drivers/net/ethernet
parente431e712c83676a8a9cd3988b323e3ef994a8ff3 (diff)
downloadlinux-dc510c6d2ecfff1faaf95b642c5fc01c86d6fdff.tar.gz
linux-dc510c6d2ecfff1faaf95b642c5fc01c86d6fdff.tar.bz2
linux-dc510c6d2ecfff1faaf95b642c5fc01c86d6fdff.zip
net: renesas: rswitch: Use napi_gro_receive() in RX
This hardware can receive multiple frames so that using napi_gro_receive() instead of netif_receive_skb() gets good performance of RX. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/renesas/rswitch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/renesas/rswitch.c b/drivers/net/ethernet/renesas/rswitch.c
index aace87139cea..7bb0a6d594a0 100644
--- a/drivers/net/ethernet/renesas/rswitch.c
+++ b/drivers/net/ethernet/renesas/rswitch.c
@@ -729,7 +729,7 @@ static bool rswitch_rx(struct net_device *ndev, int *quota)
}
skb_put(skb, pkt_len);
skb->protocol = eth_type_trans(skb, ndev);
- netif_receive_skb(skb);
+ napi_gro_receive(&rdev->napi, skb);
rdev->ndev->stats.rx_packets++;
rdev->ndev->stats.rx_bytes += pkt_len;