summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@blueri.se>2020-10-07 11:03:30 +0200
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2020-10-19 22:59:53 +0200
commit36ea0cab2696655030dc953e559f5c5bd223a38e (patch)
tree19ef15a9056a188ca7ddf9c695e7eb6ccf577ac3 /net
parent3d19a7ee8ca7af01f75ff24622ea3c9840cd5bca (diff)
downloadu-boot-36ea0cab2696655030dc953e559f5c5bd223a38e.tar.gz
u-boot-36ea0cab2696655030dc953e559f5c5bd223a38e.tar.bz2
u-boot-36ea0cab2696655030dc953e559f5c5bd223a38e.zip
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 <patrick@blueri.se> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'net')
-rw-r--r--net/eth-uclass.c2
1 files changed, 1 insertions, 1 deletions
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)