adapter->link_speed = 10000; adapter->link_duplex = FULL_DUPLEX; netif_carrier_on(netdev); netif_wake_queue(netdev);
ixgb_set_settings(struct net_device *netdev, struct ethtool_cmd *ecmd){	struct ixgb_adapter *adapter = netdev->priv;	if(ecmd->autoneg == AUTONEG_ENABLE ||	   ecmd->speed + ecmd->duplex != SPEED_10000 + DUPLEX_FULL)		return -EINVAL;		if(netif_running(adapter->netdev)) {		ixgb_down(adapter, TRUE);		ixgb_reset(adapter);		ixgb_up(adapter);	} else		ixgb_reset(adapter);	return 0;}