|
@@ -2265,10 +2265,8 @@ qlcnic_setup_netdev(struct qlcnic_adapter *adapter, struct net_device *netdev,
|
|
|
|
|
|
qlcnic_change_mtu(netdev, netdev->mtu);
|
|
|
|
|
|
- if (qlcnic_sriov_vf_check(adapter))
|
|
|
- SET_ETHTOOL_OPS(netdev, &qlcnic_sriov_vf_ethtool_ops);
|
|
|
- else
|
|
|
- SET_ETHTOOL_OPS(netdev, &qlcnic_ethtool_ops);
|
|
|
+ netdev->ethtool_ops = (qlcnic_sriov_vf_check(adapter)) ?
|
|
|
+ &qlcnic_sriov_vf_ethtool_ops : &qlcnic_ethtool_ops;
|
|
|
|
|
|
netdev->features |= (NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_RXCSUM |
|
|
|
NETIF_F_IPV6_CSUM | NETIF_F_GRO |
|
|
@@ -2682,7 +2680,7 @@ err_out_disable_pdev:
|
|
|
err_out_maintenance_mode:
|
|
|
set_bit(__QLCNIC_MAINTENANCE_MODE, &adapter->state);
|
|
|
netdev->netdev_ops = &qlcnic_netdev_failed_ops;
|
|
|
- SET_ETHTOOL_OPS(netdev, &qlcnic_ethtool_failed_ops);
|
|
|
+ netdev->ethtool_ops = &qlcnic_ethtool_failed_ops;
|
|
|
ahw->port_type = QLCNIC_XGBE;
|
|
|
|
|
|
if (qlcnic_83xx_check(adapter))
|