net:Support jumbo frame prealloc the iob for the ICMP/UDP/TCP.

For the ICMP, UDP and TCP, pre-alloc an iob for a jumbo frame.

Signed-off-by: liqinhui <liqinhui@xiaomi.com>
This commit is contained in:
liqinhui
2024-05-09 15:55:24 +08:00
committed by Alan Carvalho de Assis
parent 45fc68e904
commit 05b101134a
9 changed files with 107 additions and 1 deletions
+4
View File
@@ -99,6 +99,10 @@ static void sendto_request(FAR struct net_driver_s *dev,
{
FAR struct icmp_hdr_s *icmp;
#ifdef CONFIG_NET_JUMBO_FRAME
netdev_iob_prepare_dynamic(dev, pstate->snd_buflen + IPv4_HDRLEN);
#endif
/* Set-up to send that amount of data. */
devif_send(dev, pstate->snd_buf, pstate->snd_buflen, IPv4_HDRLEN);