mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
net/net: Avoid unnecessary calls to grub_net_tcp_retransmit()
In grub_net_poll_cards_idle_real(), only call grub_net_tcp_retransmit() if there are network cards found. If there are no network card found, there can be no tcp sockets to transmit on. So no need to go through that logic. Signed-off-by: Glenn Washburn <development@efficientek.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
c142835043
commit
848724273e
1 file changed
+2
-1
+2
-1
@@ -1580,7 +1580,8 @@ grub_net_poll_cards_idle_real (void)
|
|||||||
|| ctime >= card->last_poll + card->idle_poll_delay_ms)
|
|| ctime >= card->last_poll + card->idle_poll_delay_ms)
|
||||||
receive_packets (card, 0);
|
receive_packets (card, 0);
|
||||||
}
|
}
|
||||||
grub_net_tcp_retransmit ();
|
if (grub_net_cards == NULL)
|
||||||
|
grub_net_tcp_retransmit ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read from the packets list*/
|
/* Read from the packets list*/
|
||||||
|
|||||||
Reference in new issue
Block a user