ice: support devlink subfunctions
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest15 patches 20 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | ice: move devlink port code to a separate filedrivers/ drivers/ drivers/ +4 more | +450 | 0 replies | |
| 2/15 | ice: add new VSI type for subfunctionsdrivers/ drivers/ drivers/ +3 more | +35 | 0 replies | |
| 3/15 | ice: export ice ndo_ops functionsdrivers/ drivers/ drivers/ +1 more | +37 | 0 replies | |
| 4/15 | ice: add basic devlink subfunctions supportdrivers/ drivers/ drivers/ +7 more | +716 | 7 replies | |
| 5/15 | ice: add subfunctions ethtool opsdrivers/ drivers/ | +37 | 0 replies | |
| 6/15 | ice: add subfunction aux driver supportdrivers/ drivers/ drivers/ +4 more | +302 | 4 replies | |
| 7/15 | ice: add auxiliary device sfnum attributedrivers/ | +31 | 7 replies | |
| 8/15 | ice: store SF data in VSI structdrivers/ drivers/ | +7 | 0 replies | |
| 9/15 | ice: store representor ID in bridge portdrivers/ drivers/ drivers/ +1 more | +7 | 0 replies | |
| 10/15 | ice: create port representor for SFdrivers/ drivers/ drivers/ +7 more | +184 | 2 replies | |
| 11/15 | ice: check if SF is ready in ethtool opsdrivers/ drivers/ drivers/ | +16 | 0 replies | |
| 12/15 | ice: netdevice ops for SF representordrivers/ | +48 | 0 replies | |
| 13/15 | ice: support subfunction devlink Tx topologydrivers/ drivers/ | +21 | 0 replies | |
| 14/15 | ice: basic support for VLAN in subfunctionsdrivers/ drivers/ drivers/ +1 more | +39 | 0 replies | |
| 15/15 | ice: move ice_devlink.[ch] to devlink folderdrivers/ drivers/ drivers/ +5 more | +6 | 0 replies |
Reviews trailers per patch
All 15 patches have a Reviewed-by or Acked-by.
| Patch | Wojciech Drewek | Przemek Kitszel |
|---|---|---|
| 1/15 | R-b | |
| 2/15 | R-b | R-b |
| 3/15 | R-b | R-b |
| 4/15 | R-b | |
| 5/15 | R-b | |
| 6/15 | R-b | |
| 7/15 | R-b | |
| 8/15 | R-b | R-b |
| 9/15 | R-b | |
| 10/15 | R-b | |
| 11/15 | R-b | |
| 12/15 | R-b | |
| 13/15 | R-b | R-b |
| 14/15 | R-b | |
| 15/15 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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.hSignature · 1 line
2.42.0