[knet]: Disable NETIF_F_HW_CSUM in KNET (#17080)

This is CSP CS00012280996.
The issue to fix is that the checksum was incorrect for all TCP packets leaving the system so that the BGP connection cannot be established. We found the issue on BCM56993, and it is possible to affect all platforms using linux_ngknet.
This commit is contained in:
byu343 2023-11-02 16:17:06 -07:00 committed by GitHub
parent 274d320443
commit ed07dbad09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1705,8 +1705,9 @@ ngknet_ndev_init(ngknet_netif_t *netif, struct net_device **nd)
memcpy(ndev->dev_addr, ma, ETH_ALEN);
/* Initialize the device features */
ndev->hw_features = NETIF_F_RXCSUM | NETIF_F_HW_CSUM |
NETIF_F_HW_VLAN_CTAG_RX | NETIF_F_HW_VLAN_CTAG_TX;
ndev->hw_features = NETIF_F_RXCSUM |
NETIF_F_HW_VLAN_CTAG_RX |
NETIF_F_HW_VLAN_CTAG_TX;
ndev->features = ndev->hw_features | NETIF_F_HIGHDMA;
/* Register the kernel network device */