Skip to content

enic: Use all the resources configured on VIC

Nelson Escobar lkml netdev 4 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected] change-id 20241023-remove_vic_resource_limits-eaa64f9e65fb

Versions newest first

  1. v4 Latest7 patches 8 repliesApplied 7/7
  2. v37 patches 7 repliesSuperseded
  3. v25 patches 1 replySuperseded inferred link
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches6 repliesSuperseded

Changes in v4 from the cover letter

- Followed Vadim Fedorenko's suggestions for re-arranging enic_wq and
adding ____cacheline_aligned to the new structs.
- Link to v3: https://lore.kernel.org/r/[email protected]

Patches in v4 All 7 applied

#Subject and filesSizeRepliesApplied
1/7enic: Create enic_wq/rq structures to bundle per wq/rq datadrivers/net/ethernet/cisco/enic/enic.h drivers/net/ethernet/cisco/enic/enic_ethtool.c drivers/net/ethernet/cisco/enic/enic_main.c +1 more+81 -732 repliesApplied
2/7enic: Make MSI-X I/O interrupts come after the other required onesdrivers/net/ethernet/cisco/enic/enic.h drivers/net/ethernet/cisco/enic/enic_res.c+22 -91 replyApplied
3/7enic: Save resource counts we read from HWdrivers/net/ethernet/cisco/enic/enic.h drivers/net/ethernet/cisco/enic/enic_ethtool.c drivers/net/ethernet/cisco/enic/enic_res.c+18 -91 replyApplied
4/7enic: Allocate arrays in enic struct based on VIC configdrivers/net/ethernet/cisco/enic/enic.h drivers/net/ethernet/cisco/enic/enic_main.c+87 -211 replyApplied
5/7enic: Adjust used MSI-X wq/rq/cq/interrupt resources in a more robust waydrivers/net/ethernet/cisco/enic/enic_main.c+57 -591 replyApplied
6/7enic: Move enic resource adjustments to separate functiondrivers/net/ethernet/cisco/enic/enic_main.c+70 -571 replyApplied
7/7enic: Move kdump check into enic_adjust_resources()drivers/net/ethernet/cisco/enic/enic_main.c+9 -161 replyApplied

Reviews trailers per patch

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

PatchSimon HormanVadim Fedorenko
1/7R-b R-b
2/7R-b R-b
3/7R-b R-b
4/7R-b R-b
5/7R-b R-b
6/7R-b R-b
7/7R-b R-b

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

Read the v4 thread

Cover letter [PATCH net-next v4 0/7] enic: Use all the resources configured on VIC

Allow users to configure and use more than 8 rx queues and 8 tx queues on the Cisco VIC.

This series changes the maximum number of tx and rx queues supported from 8 to the hardware limit of 256, and allocates memory based on the number of resources configured on the VIC.

---
Changes in v4:
- Followed Vadim Fedorenko's suggestions for re-arranging enic_wq and
adding ____cacheline_aligned to the new structs.
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- Per Jakub's suggestions, split commit 5 into smaller commits and use net_get_num_default_rss_queues() to set the number of RQs used.
- Fixed an issue with commit 2 caught during testing with a missing
changed needed in enic_init_vnic_resources().
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Followed Kalesh's suggestions: removed redundant NULL assigments, returning -ENOMEM directly
- Reviewed-by tag for Simon Horman <[email protected]>
- Marked Satish Kharat and John Daley as co-developers to better reflect their role in this patch set
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Nelson Escobar (7):
enic: Create enic_wq/rq structures to bundle per wq/rq data
enic: Make MSI-X I/O interrupts come after the other required ones
enic: Save resource counts we read from HW
enic: Allocate arrays in enic struct based on VIC config
enic: Adjust used MSI-X wq/rq/cq/interrupt resources in a more robust way
enic: Move enic resource adjustments to separate function
enic: Move kdump check into enic_adjust_resources()

 drivers/net/ethernet/cisco/enic/enic.h         |  62 ++--
 drivers/net/ethernet/cisco/enic/enic_ethtool.c |   8 +-
 drivers/net/ethernet/cisco/enic/enic_main.c    | 386 +++++++++++++++----------
 drivers/net/ethernet/cisco/enic/enic_res.c     |  42 +--
 4 files changed, 299 insertions(+), 199 deletions(-)

---
base-commit: 6f07cd8301706b661776074ddc97c991d107cc91
change-id: 20241023-remove_vic_resource_limits-eaa64f9e65fb

Best regards,

Signature · 1 line
Nelson Escobar <[email protected]>