From dc6f10f33be01068b38a9864ee036fe307b0975c Mon Sep 17 00:00:00 2001 From: chao an Date: Sun, 4 Dec 2022 01:00:25 +0800 Subject: [PATCH] net/nerighbor: No need to update pktlen before l2 output Signed-off-by: chao an --- net/neighbor/neighbor_ethernet_out.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/net/neighbor/neighbor_ethernet_out.c b/net/neighbor/neighbor_ethernet_out.c index f8246498d1..496c892778 100644 --- a/net/neighbor/neighbor_ethernet_out.c +++ b/net/neighbor/neighbor_ethernet_out.c @@ -196,10 +196,6 @@ void neighbor_ethernet_out(FAR struct net_driver_s *dev) memcpy(eth->src, dev->d_mac.ether.ether_addr_octet, ETHER_ADDR_LEN); eth->type = HTONS(ETHTYPE_IP6); - /* Update device buffer length */ - - iob_update_pktlen(dev->d_iob, dev->d_len); - /* Add the size of the layer layer header to the total size of the * outgoing packet. */