/* s2io_ethtol_gset - Return link specific information. @sp : private member of the device structure, pointer to the s2io_nic structure. @info : pointer to the structure with parameters given by ethtool to return link information. Description: Returns link specific information like speed, duplex etc.. to ethtool. Return value : return 0 on success.  */
static int s2io_ethtool_gset(struct net_device *dev, struct ethtool_cmd *info)
/* s2io_ethtol_gset - Return link specific information. @sp : private member of the device structure, pointer to the s2io_nic structure. @info : pointer to the structure with parameters given by ethtool to return link information. Description: Returns link specific information like speed, duplex etc.. to ethtool. Return value : return 0 on success.  */
static int s2io_ethtool_gset(struct net_device *dev, struct ethtool_cmd *info)
{
	struct s2io_nic *sp = netdev_priv(dev);
	info->supported = (SUPPORTED_10000baseT_Full | SUPPORTED_FIBRE);
	info->advertising = (SUPPORTED_10000baseT_Full | SUPPORTED_FIBRE);
	info->port = PORT_FIBRE;
	info->transceiver = XCVR_EXTERNAL;
	if (netif_carrier_ok(sp->dev)) {
		info->speed = 10000;
		info->duplex = DUPLEX_FULL;
	} else {
		info->speed = -1;
		info->duplex = -1;
	}
	info->autoneg = AUTONEG_DISABLE;
	return 0;
}