From 36ea0cab2696655030dc953e559f5c5bd223a38e Mon Sep 17 00:00:00 2001 From: Patrick Wildt Date: Wed, 7 Oct 2020 11:03:30 +0200 Subject: net: add a define for the number of packets received as batch With a define for the magic number of packets received as batch we can make sure that the EFI network stack caches the same amount of packets. Signed-off-by: Patrick Wildt Signed-off-by: Heinrich Schuchardt --- net/eth-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/eth-uclass.c') diff --git a/net/eth-uclass.c b/net/eth-uclass.c index 4424d595f4..e14695c0f1 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -383,7 +383,7 @@ int eth_rx(void) /* Process up to 32 packets at one time */ flags = ETH_RECV_CHECK_DEVICE; - for (i = 0; i < 32; i++) { + for (i = 0; i < ETH_PACKETS_BATCH_RECV; i++) { ret = eth_get_ops(current)->recv(current, flags, &packet); flags = 0; if (ret > 0) -- cgit v1.2.3