ice: use less resources in switchdev
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest8 patches 8 repliesIn review
- v28 patches 1 replySuperseded
- v18 patches 3 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | ice: remove eswitch changing queues algorithmdrivers/ drivers/ drivers/ +1 more | +0 | 1 reply | |
| 2/8 | ice: do Tx through PF netdev in slow-pathdrivers/ drivers/ drivers/ | +6 | 1 reply | |
| 3/8 | ice: default Tx rule instead of to queuedrivers/ drivers/ drivers/ +1 more | +23 | 1 reply | |
| 4/8 | ice: control default Tx rule in lagdrivers/ drivers/ | +37 | 1 reply | |
| 5/8 | ice: remove switchdev control plane VSIdrivers/ drivers/ drivers/ +9 more | +13 | 1 reply | |
| 6/8 | ice: change repr::id valuesdrivers/ drivers/ | +3 | 1 reply | |
| 7/8 | ice: do switchdev slow-path Rx using PF VSIdrivers/ drivers/ drivers/ +2 more | +61 | 1 reply | |
| 8/8 | ice: count representor statsdrivers/ drivers/ drivers/ +1 more | +99 | 1 reply |
Reviews trailers per patch
All 8 patches have a Reviewed-by or Acked-by.
| Patch | Wojciech Drewek | Marcin Szycik | Przemek Kitszel | Sujai Buvaneswaran |
|---|---|---|---|---|
| 1/8 | R-b | R-b | T-b | |
| 2/8 | R-b | T-b | ||
| 3/8 | R-b | T-b | ||
| 4/8 | R-b | R-b | T-b | |
| 5/8 | R-b | T-b | ||
| 6/8 | R-b | R-b | T-b | |
| 7/8 | R-b | T-b | ||
| 8/8 | R-b | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [iwl-next v3 0/8] ice: use less resources in switchdev
Hi,
Switchdev is using one queue per created port representor. This can quickly lead to Rx queue shortage, as with subfunction support user can create high number of PRs.
Save one MSI-X and 'number of PRs' * 1 queues.
Refactor switchdev slow-path to use less resources (even no additional resources). Do this by removing control plane VSI and move its functionality to PF VSI. Even with current solution PF is acting like uplink and can't be used simultaneously for other use cases (adding filters can break slow-path).
In short, do Tx via PF VSI and Rx packets using PF resources. Rx needs additional code in interrupt handler to choose correct PR netdev. Previous solution had to queue filters, it was way more elegant but needed one queue per PRs. Beside that this refactor mostly simplifies switchdev configuration.
v2 --> v3 [2]:
* fix problem found by Sujai [3]; add LB enable bit in LAG Tx rule
v1 --> v2 [1]:
* more idiomatic error handling in config LAG
[1] https://lore.kernel.org/netdev/[email protected]/
[2] https://lore.kernel.org/netdev/[email protected]/
[3] https://lore.kernel.org/netdev/PH0PR11MB5013FE0E638F52C059BC9A5F964C2@PH0PR11MB5013.namprd11.prod.outlook.com/
Michal Swiatkowski (8):
ice: remove eswitch changing queues algorithm
ice: do Tx through PF netdev in slow-path
ice: default Tx rule instead of to queue
ice: control default Tx rule in lag
ice: remove switchdev control plane VSI
ice: change repr::id values
ice: do switchdev slow-path Rx using PF VSI
ice: count representor stats
drivers/net/ethernet/intel/ice/ice.h | 7 - drivers/net/ethernet/intel/ice/ice_base.c | 44 +-- drivers/net/ethernet/intel/ice/ice_dcb_lib.c | 4 +- drivers/net/ethernet/intel/ice/ice_eswitch.c | 362 +++--------------- drivers/net/ethernet/intel/ice/ice_eswitch.h | 13 +- drivers/net/ethernet/intel/ice/ice_lag.c | 53 ++- drivers/net/ethernet/intel/ice/ice_lag.h | 3 +- drivers/net/ethernet/intel/ice/ice_lib.c | 49 +-- drivers/net/ethernet/intel/ice/ice_main.c | 10 +- drivers/net/ethernet/intel/ice/ice_repr.c | 126 +++--- drivers/net/ethernet/intel/ice/ice_repr.h | 24 +- drivers/net/ethernet/intel/ice/ice_sriov.c | 3 - drivers/net/ethernet/intel/ice/ice_switch.c | 4 + drivers/net/ethernet/intel/ice/ice_switch.h | 5 +- drivers/net/ethernet/intel/ice/ice_txrx.h | 1 + drivers/net/ethernet/intel/ice/ice_txrx_lib.c | 11 +- drivers/net/ethernet/intel/ice/ice_type.h | 1 - .../net/ethernet/intel/ice/ice_vsi_vlan_ops.c | 1 - 18 files changed, 232 insertions(+), 489 deletions(-)
Signature · 1 line
2.42.0