lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130619114112.3cda715e@samsung-9>
Date:	Wed, 19 Jun 2013 11:41:12 -0700
From:	Stephen Hemminger <stephen@...workplumber.org>
To:	Jeff Kirsher <jeffrey.t.kirsher@...el.com>
Cc:	davem@...emloft.net, Jesse Brandeburg <jesse.brandeburg@...el.com>,
	netdev@...r.kernel.org, gospo@...hat.com, sassmann@...hat.com,
	Shannon Nelson <shannon.nelson@...el.com>,
	PJ Waskiewicz <peter.p.waskiewicz.jr@...el.com>,
	e1000-devel@...ts.sourceforge.net
Subject: Re: [net-next 3/8] i40e: driver ethtool core

On Thu, 13 Jun 2013 20:55:17 -0700
Jeff Kirsher <jeffrey.t.kirsher@...el.com> 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.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ