Subject: Re: [net-next 3/8] i40e: driver ethtool core

From: Stephen Hemminger <[email-masked]>
Date: Wed, 19 Jun 2013 11:41:12 -0700

On Thu, 13 Jun 2013 20:55:17 -0700
Jeff Kirsher <[email-masked]> wrote:

> +
> +static int i40e_get_eeprom_len(struct net_device *netdev)
> +{
> +	return 0;
> +}
> +
> +static int i40e_get_eeprom(struct net_device *netdev,
> +			   struct ethtool_eeprom *eeprom, u8 *bytes)
> +{
> +	return 0;
> +}
> +
> +static int i40e_set_eeprom(struct net_device *netdev,
> +			   struct ethtool_eeprom *eeprom, u8 *bytes)
> +{
> +	return -EOPNOTSUPP;
> +}

No EEPROM, then just leave out the handlers.
No need for stubs here.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
E1000-devel mailing list
[email-masked]
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel&#174; Ethernet, visit http://communities.intel.com/community/wired