Skip to content

ice: support devlink subfunctions

Michal Swiatkowski intel-wired-lan netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15ice: move devlink port code to a separate filedrivers/net/ethernet/intel/ice/Makefile drivers/net/ethernet/intel/ice/devlink/ice_devlink_port.c drivers/net/ethernet/intel/ice/devlink/ice_devlink_port.h +4 more+450 -4240 replies
2/15ice: add new VSI type for subfunctionsdrivers/net/ethernet/intel/ice/ice_base.c drivers/net/ethernet/intel/ice/ice_dcb_lib.c drivers/net/ethernet/intel/ice/ice_lib.c +3 more+35 -60 replies
3/15ice: export ice ndo_ops functionsdrivers/net/ethernet/intel/ice/ice.h drivers/net/ethernet/intel/ice/ice_lib.c drivers/net/ethernet/intel/ice/ice_lib.h +1 more+37 -310 replies
4/15ice: add basic devlink subfunctions supportdrivers/net/ethernet/intel/ice/Makefile drivers/net/ethernet/intel/ice/devlink/ice_devlink_port.c drivers/net/ethernet/intel/ice/devlink/ice_devlink_port.h +7 more+716 -47 replies
5/15ice: add subfunctions ethtool opsdrivers/net/ethernet/intel/ice/ice_ethtool.c drivers/net/ethernet/intel/ice/ice_sf_eth.c+37 -00 replies
6/15ice: add subfunction aux driver supportdrivers/net/ethernet/intel/ice/devlink/ice_devlink_port.c drivers/net/ethernet/intel/ice/devlink/ice_devlink_port.h drivers/net/ethernet/intel/ice/ice_devlink.c +4 more+302 -314 replies
7/15ice: add auxiliary device sfnum attributedrivers/net/ethernet/intel/ice/ice_sf_eth.c+31 -07 replies
8/15ice: store SF data in VSI structdrivers/net/ethernet/intel/ice/ice.h drivers/net/ethernet/intel/ice/ice_sf_eth.c+7 -10 replies
9/15ice: store representor ID in bridge portdrivers/net/ethernet/intel/ice/ice_eswitch_br.c drivers/net/ethernet/intel/ice/ice_eswitch_br.h drivers/net/ethernet/intel/ice/ice_repr.c +1 more+7 -60 replies
10/15ice: create port representor for SFdrivers/net/ethernet/intel/ice/devlink/ice_devlink_port.c drivers/net/ethernet/intel/ice/devlink/ice_devlink_port.h drivers/net/ethernet/intel/ice/ice_eswitch.c +7 more+184 -772 replies
11/15ice: check if SF is ready in ethtool opsdrivers/net/ethernet/intel/ice/ice_ethtool.c drivers/net/ethernet/intel/ice/ice_repr.c drivers/net/ethernet/intel/ice/ice_repr.h+16 -40 replies
12/15ice: netdevice ops for SF representordrivers/net/ethernet/intel/ice/ice_repr.c+48 -150 replies
13/15ice: support subfunction devlink Tx topologydrivers/net/ethernet/intel/ice/ice_devlink.c drivers/net/ethernet/intel/ice/ice_repr.c+21 -70 replies
14/15ice: basic support for VLAN in subfunctionsdrivers/net/ethernet/intel/ice/Makefile drivers/net/ethernet/intel/ice/ice_sf_vsi_vlan_ops.c drivers/net/ethernet/intel/ice/ice_sf_vsi_vlan_ops.h +1 more+39 -00 replies
15/15ice: move ice_devlink.[ch] to devlink folderdrivers/net/ethernet/intel/ice/Makefile drivers/net/ethernet/intel/ice/devlink/ice_devlink.c drivers/net/ethernet/intel/ice/devlink/ice_devlink.h +5 more+6 -60 replies

Reviews trailers per patch

All 15 patches have a Reviewed-by or Acked-by.

PatchWojciech DrewekPrzemek Kitszel
1/15R-b
2/15R-b R-b
3/15R-b R-b
4/15R-b
5/15R-b
6/15R-b
7/15R-b
8/15R-b R-b
9/15R-b
10/15R-b
11/15R-b
12/15R-b
13/15R-b R-b
14/15R-b
15/15R-b

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

Read the v1 thread

Cover letter [iwl-next v1 00/15] ice: support devlink subfunctions

Currently ice driver does not allow creating more than one networking device per physical function. The only way to have more hardware backed netdev is to use SR-IOV.

Following patchset adds support for devlink port API. For each new pcisf type port, driver allocates new VSI, configures all resources needed, including dynamically MSIX vectors, program rules and registers new netdev.

This series supports only one Tx/Rx queue pair per subfunction.

Example commands:
devlink port add pci/0000:31:00.1 flavour pcisf pfnum 1 sfnum 1000 devlink port function set pci/0000:31:00.1/1 hw_addr 00:00:00:00:03:14 devlink port function set pci/0000:31:00.1/1 state active devlink port function del pci/0000:31:00.1/1

Patch 1    -> Move devlink port related code to separate file
Patch 2-5  -> Add basic support for devlink subfunctions
Patch 6    -> Expose auxiliary bus devices for subfunctions
Patch 7    -> Expose auxiliary device sfnum attribute in sysfs

Patch 8-13 -> Add eswitch support for subfunctions

Michal Swiatkowski (8):
ice: store SF data in VSI struct
ice: store representor ID in bridge port
ice: create port representor for SF
ice: check if SF is ready in ethtool ops
ice: netdevice ops for SF representor
ice: support subfunction devlink Tx topology
ice: basic support for VLAN in subfunctions
ice: move ice_devlink.[ch] to devlink folder

Pawel Chmielewski (1):
ice: add subfunctions ethtool ops

Piotr Raczynski (6):
ice: move devlink port code to a separate file
ice: add new VSI type for subfunctions
ice: export ice ndo_ops functions
ice: add basic devlink subfunctions support
ice: add subfunction aux driver support
ice: add auxiliary device sfnum attribute

 drivers/net/ethernet/intel/ice/Makefile       |   6 +-
 .../intel/ice/{ => devlink}/ice_devlink.c     | 468 +--------
 .../intel/ice/{ => devlink}/ice_devlink.h     |   3 +
 .../intel/ice/devlink/ice_devlink_port.c      | 986 ++++++++++++++++++
 .../intel/ice/devlink/ice_devlink_port.h      |  49 +
 drivers/net/ethernet/intel/ice/ice.h          |  19 +-
 drivers/net/ethernet/intel/ice/ice_base.c     |   5 +-
 drivers/net/ethernet/intel/ice/ice_dcb_lib.c  |   3 +-
 drivers/net/ethernet/intel/ice/ice_eswitch.c  |  84 +-
 drivers/net/ethernet/intel/ice/ice_eswitch.h  |  22 +-
 .../net/ethernet/intel/ice/ice_eswitch_br.c   |   4 +-
 .../net/ethernet/intel/ice/ice_eswitch_br.h   |   1 +
 drivers/net/ethernet/intel/ice/ice_ethtool.c  |  43 +-
 drivers/net/ethernet/intel/ice/ice_lib.c      |  53 +-
 drivers/net/ethernet/intel/ice/ice_lib.h      |   3 +
 drivers/net/ethernet/intel/ice/ice_main.c     |  70 +-
 drivers/net/ethernet/intel/ice/ice_repr.c     | 197 ++--
 drivers/net/ethernet/intel/ice/ice_repr.h     |  23 +-
 drivers/net/ethernet/intel/ice/ice_sf_eth.c   | 354 +++++++
 drivers/net/ethernet/intel/ice/ice_sf_eth.h   |  36 +
 .../ethernet/intel/ice/ice_sf_vsi_vlan_ops.c  |  21 +
 .../ethernet/intel/ice/ice_sf_vsi_vlan_ops.h  |  13 +
 drivers/net/ethernet/intel/ice/ice_sriov.c    |   4 +-
 drivers/net/ethernet/intel/ice/ice_txrx.c     |   2 +-
 drivers/net/ethernet/intel/ice/ice_type.h     |   1 +
 drivers/net/ethernet/intel/ice/ice_vf_lib.c   |   4 +-
 .../net/ethernet/intel/ice/ice_vsi_vlan_ops.c |   4 +
 drivers/net/ethernet/intel/ice/ice_xsk.c      |   2 +-
 28 files changed, 1902 insertions(+), 578 deletions(-)
 rename drivers/net/ethernet/intel/ice/{ => devlink}/ice_devlink.c (80%)
 rename drivers/net/ethernet/intel/ice/{ => devlink}/ice_devlink.h (90%)
 create mode 100644 drivers/net/ethernet/intel/ice/devlink/ice_devlink_port.c
 create mode 100644 drivers/net/ethernet/intel/ice/devlink/ice_devlink_port.h
 create mode 100644 drivers/net/ethernet/intel/ice/ice_sf_eth.c
 create mode 100644 drivers/net/ethernet/intel/ice/ice_sf_eth.h
 create mode 100644 drivers/net/ethernet/intel/ice/ice_sf_vsi_vlan_ops.c
 create mode 100644 drivers/net/ethernet/intel/ice/ice_sf_vsi_vlan_ops.h
Signature · 1 line
2.42.0