Skip to content

sfc: ndo_get_phys_port_id, vadaptor stats and PF unload when Vf's assigned to guest

Shradha Shah netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest15 patches 1 replyIn review
  2. v214 patches 2 repliesSuperseded
  3. v114 patches 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15sfc: Add code to export port_num in netdev->dev_portdrivers/net/ethernet/sfc/ef10.c+2 -00 replies
2/15sfc: Add paranthesis correctly on all branches of the if statementdrivers/net/ethernet/sfc/ef10.c+4 -40 replies
3/15sfc: Add sysfs entry for flags (link control and primary)drivers/net/ethernet/sfc/ef10.c+51 -70 replies
4/15sfc: Implement ndo_gets_phys_port_id() for EF10 VFsdrivers/net/ethernet/sfc/ef10.c drivers/net/ethernet/sfc/ef10_sriov.c drivers/net/ethernet/sfc/ef10_sriov.h +5 more+45 -00 replies
5/15sfc: add "port_" prefix to MAC statsdrivers/net/ethernet/sfc/ef10.c drivers/net/ethernet/sfc/mcdi_pcol.h drivers/net/ethernet/sfc/nic.h+182 -1790 replies
6/15sfc: set the port-id when calling MC_CMD_MAC_STATSdrivers/net/ethernet/sfc/mcdi_port.c+2 -00 replies
7/15sfc: display vadaptor statistics for all interfacesdrivers/net/ethernet/sfc/ef10.c drivers/net/ethernet/sfc/mcdi_pcol.h drivers/net/ethernet/sfc/nic.h+73 -40 replies
8/15sfc: DMA the VF stats only when requesteddrivers/net/ethernet/sfc/ef10.c drivers/net/ethernet/sfc/mcdi_pcol.h+112 -410 replies
9/15sfc: update netdevice statistics to use vadaptor statsdrivers/net/ethernet/sfc/ef10.c+22 -190 replies
10/15sfc: suppress ENOENT error messages from MC_CMD_MAC_STATSdrivers/net/ethernet/sfc/ef10.c drivers/net/ethernet/sfc/mcdi_port.c+14 -50 replies
11/15sfc: suppress vadaptor stats when EVB is not presentdrivers/net/ethernet/sfc/ef10.c drivers/net/ethernet/sfc/mcdi_pcol.h+11 -30 replies
12/15sfc: don't update stats on VF when called in atomic contextdrivers/net/ethernet/sfc/ef10.c+14 -20 replies
13/15sfc: do not allow VFs to be destroyed if assigned to guestsdrivers/net/ethernet/sfc/ef10_sriov.c+9 -00 replies
14/15sfc: force removal of VF and vport on driver removaldrivers/net/ethernet/sfc/ef10_sriov.c drivers/net/ethernet/sfc/efx.c+11 -10 replies
15/15sfc: leak vports if a VF is assigned during PF unloaddrivers/net/ethernet/sfc/ef10.c drivers/net/ethernet/sfc/ef10_sriov.c drivers/net/ethernet/sfc/ef10_sriov.h +1 more+49 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH net-next v3 00/15] sfc: ndo_get_phys_port_id, vadaptor stats and PF unload when Vf's assigned to guest

This is the third and last instalment of SRIOV for EF10 patches.

This patch set includes implementation of ndo_get_phys_port_id and changes to the MAC statistics code in order to support vadaptor statistics.

It also includes code to deal with PF unload when Vf's are still assigned to the guest.

The first couple of patches create sysfs files for physical port and link control flags which are particularly useful when we have enabled a large number of VF's.

These patches have been tested with and without CONFIG_SFC_SRIOV. The creation and content of the sysfs files has been tested. The statistics are tested using ethtool for monitoring.

Daniel Pieczko (11):
sfc: add "port_" prefix to MAC stats
sfc: set the port-id when calling MC_CMD_MAC_STATS
sfc: display vadaptor statistics for all interfaces
sfc: DMA the VF stats only when requested
sfc: update netdevice statistics to use vadaptor stats
sfc: suppress ENOENT error messages from MC_CMD_MAC_STATS
sfc: suppress vadaptor stats when EVB is not present
sfc: don't update stats on VF when called in atomic context
sfc: do not allow VFs to be destroyed if assigned to guests
sfc: force removal of VF and vport on driver removal
sfc: leak vports if a VF is assigned during PF unload

Shradha Shah (4):
sfc: Add code to export port_num in netdev->dev_port
sfc: Add paranthesis correctly on all branches of the if statement
sfc: Add sysfs entry for flags (link control and primary)
sfc: Implement ndo_gets_phys_port_id() for EF10 VFs

 drivers/net/ethernet/sfc/ef10.c       | 536 +++++++++++++++++++++++-----------
 drivers/net/ethernet/sfc/ef10_sriov.c |  57 +++-
 drivers/net/ethernet/sfc/ef10_sriov.h |   5 +
 drivers/net/ethernet/sfc/efx.c        |   8 +-
 drivers/net/ethernet/sfc/mcdi_pcol.h  |  30 +-
 drivers/net/ethernet/sfc/mcdi_port.c  |  12 +-
 drivers/net/ethernet/sfc/net_driver.h |   2 +
 drivers/net/ethernet/sfc/nic.h        | 117 ++++----
 drivers/net/ethernet/sfc/sriov.c      |  11 +
 drivers/net/ethernet/sfc/sriov.h      |   2 +
 10 files changed, 552 insertions(+), 228 deletions(-)