/* s2io_ethtool_sset - Sets different link parameters. @sp : private member of the device structure, which is a pointer to the * s2io_nic structure. @info: pointer to the structure with parameters given by ethtool to set link information. Description: The function sets different link parameters provided by the user onto the NIC. Return value: 0 on success.  */
static int s2io_ethtool_sset(struct net_device *dev, struct ethtool_cmd *info)
/* s2io_ethtool_sset - Sets different link parameters. @sp : private member of the device structure, which is a pointer to the * s2io_nic structure. @info: pointer to the structure with parameters given by ethtool to set link information. Description: The function sets different link parameters provided by the user onto the NIC. Return value: 0 on success.  */
static int s2io_ethtool_sset(struct net_device *dev, struct ethtool_cmd *info)
{
	struct s2io_nic *sp = netdev_priv(dev);
	if ((info->autoneg == AUTONEG_ENABLE) ||
	    (info->speed != SPEED_10000) ||
	    (info->duplex != DUPLEX_FULL))
		return -EINVAL;
	else {
		s2io_close(sp->dev);
		s2io_open(sp->dev);
	}
	return 0;
}