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>
This commit is contained in:

committed by
David S. Miller

parent
f6ad8c1bcd
commit
e090bfb9f1
@@ -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. */
|
||||
|
Reference in New Issue
Block a user