mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
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:
committed by
Alan Carvalho de Assis
parent
45fc68e904
commit
05b101134a
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user