Ejemplo n.º 1
0
/*****************************************************************************
 *
 *	SkGeSetSG - set the SG parameters
 *
 * Description:
 *	This function sets the SG parameters 
 *
 * Returns:
 *	==0:	everything fine, no error
 *	!=0:	the return value is the error code of the failure 
 */
int SkGeSetSG(struct net_device *dev,
			u32 data)
{
	DEV_NET			*pNet        = (DEV_NET*)netdev_priv(dev);
	SK_AC			*pAC         = pNet->pAC;

	if (pAC->GIni.GIGenesis)
		return -EOPNOTSUPP;

	return ethtool_op_set_sg(dev, data);
}
Ejemplo n.º 2
0
/*****************************************************************************
 *
 *	SkGeSetSG - set the SG parameters
 *
 * Description:
 *	This function sets the SG parameters 
 *
 * Returns:
 *	==0:	everything fine, no error
 *	!=0:	the return value is the error code of the failure 
 */
int SkGeSetSG(struct net_device *dev,
			u32 data)
{
	return ethtool_op_set_sg(dev, data);
}