diff options
author | Edward Cree <ecree@solarflare.com> | 2018-07-02 18:12:53 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-04 08:06:19 +0300 |
commit | e090bfb9f19259b958387d2bd4938d66b324cd09 (patch) | |
tree | 1ed32c9175b0aa454d341935652a9d8d9ca07e47 /drivers/net/ethernet/sfc/rx.c | |
parent | f6ad8c1bcdf014272d08c55b9469536952a0a771 (diff) | |
download | linux-e090bfb9f19259b958387d2bd4938d66b324cd09.tar.xz |
sfc: batch up RX delivery
Improves packet rate of 1-byte UDP receives by up to 10%.
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/rx.c')
-rw-r--r-- | drivers/net/ethernet/sfc/rx.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/rx.c b/drivers/net/ethernet/sfc/rx.c index d2e254f2f72b..396ff01298cd 100644 --- a/drivers/net/ethernet/sfc/rx.c +++ b/drivers/net/ethernet/sfc/rx.c @@ -634,7 +634,12 @@ static void efx_rx_deliver(struct efx_channel *channel, u8 *eh, return; /* Pass the packet up */ - netif_receive_skb(skb); + if (channel->rx_list != NULL) + /* Add to list, will pass up later */ + list_add_tail(&skb->list, channel->rx_list); + else + /* No list, so pass it up now */ + netif_receive_skb(skb); } /* Handle a received packet. Second half: Touches packet payload. */ |