1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-30 08:32:52 +08:00

Read interface feature bits in driver

This commit is contained in:
Alex Forencich 2019-08-19 23:45:52 -07:00
parent d977cbdac2
commit df4dbb75a1

View File

@ -510,14 +510,14 @@ int mqnic_init_netdev(struct mqnic_dev *mdev, int port, u8 __iomem *hw_addr)
// set up features // set up features
ndev->hw_features = 0; ndev->hw_features = 0;
if (1) // TODO check flag if (priv->if_features & MQNIC_IF_FEATURE_RX_CSUM)
{ {
ndev->hw_features |= NETIF_F_RXCSUM; ndev->hw_features |= NETIF_F_RXCSUM;
} }
if (0) // TODO check flag if (priv->if_features & MQNIC_IF_FEATURE_TX_CSUM)
{ {
ndev->hw_features |= NETIF_F_HW_CSUM; //ndev->hw_features |= NETIF_F_HW_CSUM;
} }
ndev->features = ndev->hw_features | NETIF_F_HIGHDMA; ndev->features = ndev->hw_features | NETIF_F_HIGHDMA;