All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/8] sfc: remove nic_data usage in common code
@ 2020-05-11 12:23 Edward Cree
  2020-05-11 12:28 ` [PATCH net-next 1/8] sfc: move vport_id to struct efx_nic Edward Cree
                   ` (8 more replies)
  0 siblings, 9 replies; 16+ messages in thread
From: Edward Cree @ 2020-05-11 12:23 UTC (permalink / raw)
  To: linux-net-drivers, davem; +Cc: netdev

efx->nic_data should only be used from NIC-specific code (i.e. nic_type
 functions and things they call), in files like ef10[_sriov].c and
 siena.c.  This series refactors several nic_data usages from common
 code (mainly in mcdi_filters.c) into nic_type functions, in preparation
 for the upcoming ef100 driver which will use those functions but have
 its own struct layout for efx->nic_data distinct from ef10's.
After this series, one nic_data usage (in ptp.c) remains; it wasn't
 clear to me how to fix it, and ef100 devices don't yet have PTP support
 (so the initial ef100 driver will not call that code).

Edward Cree (7):
  sfc: move vport_id to struct efx_nic
  sfc: use efx_has_cap for capability checks outside of NIC-specific
    code
  sfc: move 'must restore' flags out of ef10-specific nic_data
  sfc: rework handling of (firmware) multicast chaining state
  sfc: move rx_rss_context_exclusive into struct efx_mcdi_filter_table
  sfc: make filter table probe caller responsible for adding VLANs
  sfc: make firmware-variant printing a nic_type function

Tom Zhao (1):
  sfc: make capability checking a nic_type function

 drivers/net/ethernet/sfc/ef10.c           | 214 +++++++++++++---------
 drivers/net/ethernet/sfc/ef10_sriov.c     |  27 ++-
 drivers/net/ethernet/sfc/mcdi.c           |  25 +--
 drivers/net/ethernet/sfc/mcdi.h           |  12 ++
 drivers/net/ethernet/sfc/mcdi_filters.c   |  79 ++++----
 drivers/net/ethernet/sfc/mcdi_filters.h   |  17 +-
 drivers/net/ethernet/sfc/mcdi_functions.c |   8 +-
 drivers/net/ethernet/sfc/mcdi_port.c      |   7 +-
 drivers/net/ethernet/sfc/net_driver.h     |  10 +
 drivers/net/ethernet/sfc/nic.h            |  11 --
 drivers/net/ethernet/sfc/ptp.c            |   7 +-
 drivers/net/ethernet/sfc/siena.c          |   7 +
 12 files changed, 238 insertions(+), 186 deletions(-)


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-05-12 13:01 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-11 12:23 [PATCH net-next 0/8] sfc: remove nic_data usage in common code Edward Cree
2020-05-11 12:28 ` [PATCH net-next 1/8] sfc: move vport_id to struct efx_nic Edward Cree
2020-05-11 12:28 ` [PATCH net-next 2/8] sfc: make capability checking a nic_type function Edward Cree
2020-05-11 22:36   ` Jakub Kicinski
2020-05-12 13:01     ` Edward Cree
2020-05-12  1:01   ` kbuild test robot
2020-05-12  1:01     ` kbuild test robot
2020-05-12  1:01   ` [RFC PATCH] sfc: siena_check_caps() can be static kbuild test robot
2020-05-12  1:01     ` kbuild test robot
2020-05-11 12:28 ` [PATCH net-next 3/8] sfc: use efx_has_cap for capability checks outside of NIC-specific code Edward Cree
2020-05-11 12:29 ` [PATCH net-next 4/8] sfc: move 'must restore' flags out of ef10-specific nic_data Edward Cree
2020-05-11 12:29 ` [PATCH net-next 5/8] sfc: rework handling of (firmware) multicast chaining state Edward Cree
2020-05-11 12:29 ` [PATCH net-next 6/8] sfc: move rx_rss_context_exclusive into struct efx_mcdi_filter_table Edward Cree
2020-05-11 12:29 ` [PATCH net-next 7/8] sfc: make filter table probe caller responsible for adding VLANs Edward Cree
2020-05-11 12:30 ` [PATCH net-next 8/8] sfc: make firmware-variant printing a nic_type function Edward Cree
2020-05-11 20:32 ` [PATCH net-next 0/8] sfc: remove nic_data usage in common code David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.