net/nerighbor: No need to update pktlen before l2 output

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2022-12-04 01:00:25 +08:00 committed by Xiang Xiao
parent 4b70e4ff77
commit dc6f10f33b

View File

@ -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); memcpy(eth->src, dev->d_mac.ether.ether_addr_octet, ETHER_ADDR_LEN);
eth->type = HTONS(ETHTYPE_IP6); 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 /* Add the size of the layer layer header to the total size of the
* outgoing packet. * outgoing packet.
*/ */