linux_dsm_epyc7002/drivers/net/bnx2x
Allan, Bruce W fce55922f5 ethtool: allow custom interval for physical identification
When physical identification of an adapter is done by toggling the
mechanism on and off through software utilizing the set_phys_id operation,
it is done with a fixed duration for both on and off states.  Some drivers
may want to set a custom duration for the on/off intervals.  This patch
changes the API so the return code from the driver's entry point when it
is called with ETHTOOL_ID_ACTIVE can specify the frequency at which to
cycle the on/off states, and updates the drivers that have already been
converted to use the new set_phys_id and use the synchronous method for
identifying an adapter.

The physical identification frequency set in the updated drivers is based
on how it was done prior to the introduction of set_phys_id.

Compile tested only.  Also fixes a compiler warning in sfc.

v2: drivers do not return -EINVAL for ETHOOL_ID_ACTIVE
v3: fold patchset into single patch and cleanup per Ben's feedback

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Cc: Ben Hutchings <bhutchings@solarflare.com>
Cc: Sathya Perla <sathya.perla@emulex.com>
Cc: Subbu Seetharaman <subbu.seetharaman@emulex.com>
Cc: Ajit Khaparde <ajit.khaparde@emulex.com>
Cc: Michael Chan <mchan@broadcom.com>
Cc: Eilon Greenstein <eilong@broadcom.com>
Cc: Divy Le Ray <divy@chelsio.com>
Cc: Don Fry <pcnet32@frontier.com>
Cc: Jon Mason <jdmason@kudzu.us>
Cc: Solarflare linux maintainers <linux-net-drivers@solarflare.com>
Cc: Steve Hodgson <shodgson@solarflare.com>
Cc: Stephen Hemminger <shemminger@linux-foundation.org>
Cc: Matt Carlson <mcarlson@broadcom.com>
Acked-by: Jon Mason <jdmason@kudzu.us>
Acked-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-04-14 21:15:49 -07:00
..
bnx2x_cmn.c net: bnx2x: convert to hw_features 2011-04-12 14:50:44 -07:00
bnx2x_cmn.h net: bnx2x: convert to hw_features 2011-04-12 14:50:44 -07:00
bnx2x_dcb.c bnx2x, cnic: Disable iSCSI if DCBX negotiation is successful 2011-03-31 17:04:22 -07:00
bnx2x_dcb.h bnx2x, cnic: Disable iSCSI if DCBX negotiation is successful 2011-03-31 17:04:22 -07:00
bnx2x_dump.h bnx2x: registers dump fixes 2011-01-09 15:47:38 -08:00
bnx2x_ethtool.c ethtool: allow custom interval for physical identification 2011-04-14 21:15:49 -07:00
bnx2x_fw_defs.h bnx2x, cnic, bnx2i: use new FW/HSI 2010-10-06 14:10:35 -07:00
bnx2x_fw_file_hdr.h bnx2x, cnic, bnx2i: use new FW/HSI 2010-10-06 14:10:35 -07:00
bnx2x_hsi.h Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2011-04-11 13:44:25 -07:00
bnx2x_init_ops.h bnx2x: Fixed a compilation warning 2010-12-12 15:02:58 -08:00
bnx2x_init.h bnx2x: Add a missing bit for PXP parity register of 57712. 2011-02-27 16:05:48 -08:00
bnx2x_link.c Fix common misspellings 2011-03-31 11:26:23 -03:00
bnx2x_link.h bnx2x: Fix compilation warning messages 2011-01-31 13:22:41 -08:00
bnx2x_main.c net: bnx2x: convert to hw_features 2011-04-12 14:50:44 -07:00
bnx2x_reg.h Fix common misspellings 2011-03-31 11:26:23 -03:00
bnx2x_stats.c bnx2x: perform statistics "action" before state transition. 2011-02-28 13:14:48 -08:00
bnx2x_stats.h bnx2x: add FCoE ring 2010-12-16 13:15:54 -08:00
bnx2x.h net: bnx2x: convert to hw_features 2011-04-12 14:50:44 -07:00
Makefile bnx2x: add DCB support 2010-12-16 13:15:55 -08:00