diff options
Diffstat (limited to 'drivers/net/ethernet/wangxun/ngbe/ngbe_main.c')
| -rw-r--r-- | drivers/net/ethernet/wangxun/ngbe/ngbe_main.c | 20 | 
1 files changed, 15 insertions, 5 deletions
diff --git a/drivers/net/ethernet/wangxun/ngbe/ngbe_main.c b/drivers/net/ethernet/wangxun/ngbe/ngbe_main.c index df6b870aa871..c99a5d3de72e 100644 --- a/drivers/net/ethernet/wangxun/ngbe/ngbe_main.c +++ b/drivers/net/ethernet/wangxun/ngbe/ngbe_main.c @@ -115,6 +115,7 @@ static int ngbe_sw_init(struct wx *wx)  	wx->mac.max_rx_queues = NGBE_MAX_RX_QUEUES;  	wx->mac.max_tx_queues = NGBE_MAX_TX_QUEUES;  	wx->mac.mcft_size = NGBE_MC_TBL_SIZE; +	wx->mac.vft_size = NGBE_SP_VFT_TBL_SIZE;  	wx->mac.rx_pb_size = NGBE_RX_PB_SIZE;  	wx->mac.tx_pb_size = NGBE_TDB_PB_SZ; @@ -473,9 +474,12 @@ static const struct net_device_ops ngbe_netdev_ops = {  	.ndo_change_mtu         = wx_change_mtu,  	.ndo_start_xmit         = wx_xmit_frame,  	.ndo_set_rx_mode        = wx_set_rx_mode, +	.ndo_set_features       = wx_set_features,  	.ndo_validate_addr      = eth_validate_addr,  	.ndo_set_mac_address    = wx_set_mac,  	.ndo_get_stats64        = wx_get_stats64, +	.ndo_vlan_rx_add_vid    = wx_vlan_rx_add_vid, +	.ndo_vlan_rx_kill_vid   = wx_vlan_rx_kill_vid,  };  /** @@ -551,12 +555,18 @@ static int ngbe_probe(struct pci_dev *pdev,  	ngbe_set_ethtool_ops(netdev);  	netdev->netdev_ops = &ngbe_netdev_ops; -	netdev->features |= NETIF_F_HIGHDMA; -	netdev->features = NETIF_F_SG; - +	netdev->features = NETIF_F_SG | NETIF_F_IP_CSUM | +			   NETIF_F_TSO | NETIF_F_TSO6 | +			   NETIF_F_RXHASH | NETIF_F_RXCSUM; +	netdev->features |= NETIF_F_SCTP_CRC | NETIF_F_TSO_MANGLEID; +	netdev->vlan_features |= netdev->features; +	netdev->features |= NETIF_F_IPV6_CSUM | NETIF_F_VLAN_FEATURES;  	/* copy netdev features into list of user selectable features */ -	netdev->hw_features |= netdev->features | -			       NETIF_F_RXALL; +	netdev->hw_features |= netdev->features | NETIF_F_RXALL; +	netdev->hw_features |= NETIF_F_NTUPLE | NETIF_F_HW_TC; +	netdev->features |= NETIF_F_HIGHDMA; +	netdev->hw_features |= NETIF_F_GRO; +	netdev->features |= NETIF_F_GRO;  	netdev->priv_flags |= IFF_UNICAST_FLT;  	netdev->priv_flags |= IFF_SUPP_NOFCS;  |