mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
net/netdev: modify for hardware checksum offload
Implementation of main hardware verification and uninstallation functions Signed-off-by: daichuan <daichuan@xiaomi.com>
This commit is contained in:
@@ -447,7 +447,8 @@ static int ipv4_in(FAR struct net_driver_s *dev)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NET_IPV4_CHECKSUMS
|
||||
if (ipv4_chksum(IPv4BUF) != 0xffff)
|
||||
if (((dev->d_features & NETDEV_RX_CSUM) == 0)
|
||||
&& (ipv4_chksum(IPv4BUF) != 0xffff))
|
||||
{
|
||||
/* Compute and check the IP header checksum. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user