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:
parent
d977cbdac2
commit
df4dbb75a1
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user