Skip to content

sfc: prerequisites for EF100 driver, part 3

Edward Cree netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest16 patches 2 repliesIn review
  2. v115 patches 10 repliesSuperseded

Changes in v2 from the cover letter

* Patch #1: use efx_mcdi_set_mtu() directly, instead of as a fallback, in the mtu_only case (Jakub)
* Patch #3: fix symbol collision in non-modular builds by renaming interrupt_mode to efx_interrupt_mode (kernel test robot)
* Patch #6: check for failure of netif_set_real_num_[tr]x_queues (Jakub)
* Patch #12: cleaner solution for ethtool drvinfo (Jakub, David)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16sfc: support setting MTU even if not privileged to configure MAC fullydrivers/net/ethernet/sfc/ef10.c drivers/net/ethernet/sfc/efx.c drivers/net/ethernet/sfc/efx_common.c +4 more+16 -230 replies
2/16sfc: remove max_interrupt_modedrivers/net/ethernet/sfc/ef10.c drivers/net/ethernet/sfc/efx_channels.c drivers/net/ethernet/sfc/net_driver.h +1 more+0 -120 replies
3/16sfc: move modparam 'interrupt_mode' out of common channel codedrivers/net/ethernet/sfc/efx.c drivers/net/ethernet/sfc/efx_channels.c drivers/net/ethernet/sfc/efx_channels.h+8 -50 replies
4/16sfc: move modparam 'rss_cpus' out of common channel codedrivers/net/ethernet/sfc/efx.c drivers/net/ethernet/sfc/efx_channels.c drivers/net/ethernet/sfc/efx_channels.h+5 -30 replies
5/16sfc: make tx_queues_per_channel variable at runtimedrivers/net/ethernet/sfc/ef10.c drivers/net/ethernet/sfc/efx_channels.c drivers/net/ethernet/sfc/efx_common.c +3 more+30 -310 replies
6/16sfc: commonise netif_set_real_num[tr]x_queues callsdrivers/net/ethernet/sfc/efx.c drivers/net/ethernet/sfc/efx_channels.c+6 -40 replies
7/16sfc: assign TXQs without gapsdrivers/net/ethernet/sfc/ef10.c drivers/net/ethernet/sfc/efx_channels.c drivers/net/ethernet/sfc/ethtool_common.c +7 more+58 -720 replies
8/16sfc: don't call tx_limit_len if NIC type doesn't have onedrivers/net/ethernet/sfc/tx_common.c+5 -10 replies
9/16sfc: factor out efx_mcdi_filter_table_down() from _remove()drivers/net/ethernet/sfc/mcdi_filters.c drivers/net/ethernet/sfc/mcdi_filters.h+25 -130 replies
10/16sfc: commonise efx_fini_dmaqdrivers/net/ethernet/sfc/ef10.c drivers/net/ethernet/sfc/mcdi_functions.c drivers/net/ethernet/sfc/mcdi_functions.h+41 -400 replies
11/16sfc: initialise RSS context ID to 'no RSS context' in efx_init_struct()drivers/net/ethernet/sfc/ef10.c drivers/net/ethernet/sfc/efx_common.c+1 -20 replies
12/16sfc: get drvinfo driver name from outside the common codedrivers/net/ethernet/sfc/ethtool.c drivers/net/ethernet/sfc/ethtool_common.c drivers/net/ethernet/sfc/ethtool_common.h+5 -10 replies
13/16sfc_ef100: add EF100 to NIC-revision enumerationdrivers/net/ethernet/sfc/nic_common.h+1 -00 replies
14/16sfc_ef100: populate BUFFER_SIZE_BYTES in INIT_RXQdrivers/net/ethernet/sfc/mcdi_functions.c+8 -70 replies
15/16sfc_ef100: NVRAM selftest support codedrivers/net/ethernet/sfc/mcdi.c drivers/net/ethernet/sfc/mcdi.h+63 -00 replies
16/16sfc_ef100: helper function to set default RSS table of given sizedrivers/net/ethernet/sfc/mcdi_filters.c drivers/net/ethernet/sfc/mcdi_filters.h+23 -00 replies

Reviews trailers per patch

None of the 16 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJakub Kicinski
SeriesR-b
1/16
2/16
3/16
4/16
5/16
6/16
7/16
8/16
9/16
10/16
11/16
12/16
13/16
14/16
15/16
16/16

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 net-next 00/16] sfc: prerequisites for EF100 driver, part 3

Continuing on from [1] and [2], this series assembles the last pieces
of the common codebase that will be used by the forthcoming EF100 driver.
Patch #1 also adds a minor feature to EF10 (setting MTU on VFs) since
EF10 supports the same MCDI extension which that feature will use on EF100.
Patches #5 & #7, while they should have no externally-visible effect
on driver functionality, change how that functionality is implemented and how the driver represents TXQ configuration internally, so are not mere cleanup/refactoring like most of these prerequisites have (from the perspective of the existing sfc driver) been.

Changes in v2:
* Patch #1: use efx_mcdi_set_mtu() directly, instead of as a fallback, in the mtu_only case (Jakub)
* Patch #3: fix symbol collision in non-modular builds by renaming interrupt_mode to efx_interrupt_mode (kernel test robot)
* Patch #6: check for failure of netif_set_real_num_[tr]x_queues (Jakub)
* Patch #12: cleaner solution for ethtool drvinfo (Jakub, David)

[1]: https://lore.kernel.org/netdev/[email protected]/T/
[2]: https://lore.kernel.org/netdev/[email protected]/T/

Edward Cree (16):
sfc: support setting MTU even if not privileged to configure MAC fully
sfc: remove max_interrupt_mode
sfc: move modparam 'interrupt_mode' out of common channel code
sfc: move modparam 'rss_cpus' out of common channel code
sfc: make tx_queues_per_channel variable at runtime
sfc: commonise netif_set_real_num[tr]x_queues calls
sfc: assign TXQs without gaps
sfc: don't call tx_limit_len if NIC type doesn't have one
sfc: factor out efx_mcdi_filter_table_down() from _remove()
sfc: commonise efx_fini_dmaq
sfc: initialise RSS context ID to 'no RSS context' in
efx_init_struct()
sfc: get drvinfo driver name from outside the common code
sfc_ef100: add EF100 to NIC-revision enumeration
sfc_ef100: populate BUFFER_SIZE_BYTES in INIT_RXQ
sfc_ef100: NVRAM selftest support code
sfc_ef100: helper function to set default RSS table of given size

 drivers/net/ethernet/sfc/ef10.c           | 76 +++++------------------
 drivers/net/ethernet/sfc/efx.c            | 14 ++---
 drivers/net/ethernet/sfc/efx_channels.c   | 66 ++++++++++++--------
 drivers/net/ethernet/sfc/efx_channels.h   |  3 +
 drivers/net/ethernet/sfc/efx_common.c     | 14 +++--
 drivers/net/ethernet/sfc/efx_common.h     |  2 +-
 drivers/net/ethernet/sfc/ethtool.c        |  2 +
 drivers/net/ethernet/sfc/ethtool_common.c | 11 ++--
 drivers/net/ethernet/sfc/ethtool_common.h |  2 +
 drivers/net/ethernet/sfc/farch.c          |  6 +-
 drivers/net/ethernet/sfc/mcdi.c           | 62 ++++++++++++++++++
 drivers/net/ethernet/sfc/mcdi.h           |  1 +
 drivers/net/ethernet/sfc/mcdi_filters.c   | 58 +++++++++++++----
 drivers/net/ethernet/sfc/mcdi_filters.h   |  3 +
 drivers/net/ethernet/sfc/mcdi_functions.c | 57 ++++++++++++++---
 drivers/net/ethernet/sfc/mcdi_functions.h |  1 +
 drivers/net/ethernet/sfc/net_driver.h     | 44 ++++++-------
 drivers/net/ethernet/sfc/nic_common.h     |  3 +-
 drivers/net/ethernet/sfc/selftest.c       | 18 +++---
 drivers/net/ethernet/sfc/siena.c          |  4 +-
 drivers/net/ethernet/sfc/tx.c             | 50 +++------------
 drivers/net/ethernet/sfc/tx_common.c      |  6 +-
 22 files changed, 292 insertions(+), 211 deletions(-)