Convert networking to use the XArray
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest38 patches 17 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/38 | mlx4: Convert cq_table->tree to XArraydrivers/ drivers/ | +10 | 0 replies | |
| 2/38 | mlx4: Convert srq_table->tree to XArraydrivers/ drivers/ drivers/ | +11 | 0 replies | |
| 3/38 | mlx4: Convert qp_table_tree to XArraydrivers/ drivers/ include/ +1 more | +14 | 1 reply | |
| 4/38 | mlx5: Convert cq_table to XArraydrivers/ drivers/ | +6 | 1 reply | |
| 5/38 | mlx5: Convert mlx5_qp_table to XArraydrivers/ include/ include/ | +13 | 0 replies | |
| 6/38 | mlx5: Convert counters_idr to XArraydrivers/ include/ | +9 | 0 replies | |
| 7/38 | mlx5: Convert fpga IDRs to XArraydrivers/ drivers/ | +21 | 0 replies | |
| 8/38 | nfp: Convert to XArraydrivers/ drivers/ drivers/ | +15 | 1 reply | |
| 9/38 | ath10k: Convert pending_tx to XArraydrivers/ drivers/ drivers/ +1 more | +20 | 0 replies | |
| 10/38 | ath10k: Convert mgmt_pending_tx IDR to XArraydrivers/ drivers/ drivers/ | +25 | 0 replies | |
| 11/38 | mt76: Convert token IDR to XArraydrivers/ drivers/ drivers/ | +17 | 0 replies | |
| 12/38 | mwifiex: Convert ack_status_frames to XArraydrivers/ drivers/ drivers/ +2 more | +14 | 0 replies | |
| 13/38 | ppp: Convert units_idr to XArraydrivers/ | +16 | 0 replies | |
| 14/38 | tap: Convert minor_idr to XArraydrivers/ | +13 | 0 replies | |
| 15/38 | nfp: Convert internal ports to XArraydrivers/ drivers/ | +17 | 0 replies | |
| 16/38 | qrtr: Convert qrtr_nodes to XArraynet/ | +12 | 0 replies | |
| 17/38 | qrtr: Convert qrtr_ports to XArraynet/ | +15 | 0 replies | |
| 18/38 | rxrpc: Convert to XArraynet/ net/ net/ +1 more | +22 | 0 replies | |
| 19/38 | 9p: Convert reqs IDR to XArrayinclude/ net/ | +21 | 0 replies | |
| 20/38 | 9p: Convert fids IDR to XArrayinclude/ net/ net/ +2 more | +10 | 0 replies | |
| 21/38 | 9p: Move lock from client to trans_fdinclude/ net/ net/ | +21 | 0 replies | |
| 22/38 | sctp: Convert sctp_assocs_id to XArrayinclude/ net/ net/ +2 more | +15 | 0 replies | |
| 23/38 | cls_api: Convert tcf_net to XArraynet/ | +6 | 2 replies | |
| 24/38 | cls_u32: Convert tc_u_common->handle_idr to XArraynet/ | +12 | 3 replies | |
| 25/38 | cls_u32: Convert tc_u_hnode->handle_idr to XArraynet/ | +20 | 0 replies | |
| 26/38 | cls_bpf: Convert handle_idr to XArraynet/ | +13 | 0 replies | |
| 27/38 | cls_bpf: Remove list of programsnet/ | +14 | 0 replies | |
| 28/38 | cls_bpf: Use XArray marks to accelerate re-offloadnet/ | +8 | 0 replies | |
| 29/38 | cls_flower: Convert handle_idr to XArraynet/ | +26 | 5 replies | |
| 30/38 | cls_flower: Use XArray list of filters in fl_walknet/ | +6 | 1 reply | |
| 31/38 | cls_flower: Use XArray marks instead of separate listnet/ | +11 | 1 reply | |
| 32/38 | cls_basic: Convert handle_idr to XArraynet/ | +21 | 0 replies | |
| 33/38 | act_api: Convert action_idr to XArrayinclude/ net/ | +53 | 2 replies | |
| 34/38 | net_namespace: Convert netns_ids to XArrayinclude/ net/ | +30 | 0 replies | |
| 35/38 | tipc: Convert conn_idr to XArraynet/ | +14 | 0 replies | |
| 36/38 | netlink: Convert genl_fam_idr to XArraynet/ | +19 | 0 replies | |
| 37/38 | mac80211: Convert ack_status_frames to XArraynet/ net/ net/ +2 more | +26 | 0 replies | |
| 38/38 | mac80211: Convert function_inst_ids to XArraynet/ net/ net/ +1 more | +37 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/38] Convert networking to use the XArray
From: "Matthew Wilcox (Oracle)" <[email protected]>
Hello good networking folks,
I am attempting to convert all IDR and radix tree users over to the XArray API so we can remove the radix tree code from the kernel. This process is already underway, and you can see all the conversions in a git tree [1].
The set of conversions I am submitting to you today are only compile tested. I would appreciate it if those who are responsible for each module could take on the job of making sure I didn't break anything. Review is, of course, also welcome.
The primary difference between the IDR/radix tree and XArray APIs is that the XArray embeds a spinlock. This enables the ability to defragment the slabs which contain XArray nodes, and for most users results in an easier-to-use API.
There are a lot of smaller tweaks in the XArray API compared to the radix tree or IDR APIs. For example, there is no more preallocation of memory; instead the XArray will drop the lock if needed to allocate memory.
Ideally, you'd include the patch for your module into your next pull request to Dave and they'd land upstream in 5.4. These patches are against current net-next. If you'd like to change whitespace or comments or so on, please just do that; this is your code and I've got a lot of other patches I need to whip into shape.
[1] http://git.infradead.org/users/willy/linux-dax.git/shortlog/refs/heads/xarray-conv
Some of these conversions are known to be buggy, so I would not recommend actually running this tree.
Matthew Wilcox (Oracle) (38):
mlx4: Convert cq_table->tree to XArray
mlx4: Convert srq_table->tree to XArray
mlx4: Convert qp_table_tree to XArray
mlx5: Convert cq_table to XArray
mlx5: Convert mlx5_qp_table to XArray
mlx5: Convert counters_idr to XArray
mlx5: Convert fpga IDRs to XArray
nfp: Convert to XArray
ath10k: Convert pending_tx to XArray
ath10k: Convert mgmt_pending_tx IDR to XArray
mt76: Convert token IDR to XArray
mwifiex: Convert ack_status_frames to XArray
ppp: Convert units_idr to XArray
tap: Convert minor_idr to XArray
nfp: Convert internal ports to XArray
qrtr: Convert qrtr_nodes to XArray
qrtr: Convert qrtr_ports to XArray
rxrpc: Convert to XArray
9p: Convert reqs IDR to XArray
9p: Convert fids IDR to XArray
9p: Move lock from client to trans_fd
sctp: Convert sctp_assocs_id to XArray
cls_api: Convert tcf_net to XArray
cls_u32: Convert tc_u_common->handle_idr to XArray
cls_u32: Convert tc_u_hnode->handle_idr to XArray
cls_bpf: Convert handle_idr to XArray
cls_bpf: Remove list of programs
cls_bpf: Use XArray marks to accelerate re-offload
cls_flower: Convert handle_idr to XArray
cls_flower: Use XArray list of filters in fl_walk
cls_flower: Use XArray marks instead of separate list
cls_basic: Convert handle_idr to XArray
act_api: Convert action_idr to XArray
net_namespace: Convert netns_ids to XArray
tipc: Convert conn_idr to XArray
netlink: Convert genl_fam_idr to XArray
mac80211: Convert ack_status_frames to XArray
mac80211: Convert function_inst_ids to XArray
drivers/infiniband/hw/mlx4/cq.c | 2 +- drivers/net/ethernet/mellanox/mlx4/cq.c | 30 ++--- drivers/net/ethernet/mellanox/mlx4/mlx4.h | 9 +- drivers/net/ethernet/mellanox/mlx4/qp.c | 37 ++--- drivers/net/ethernet/mellanox/mlx4/srq.c | 33 ++--- drivers/net/ethernet/mellanox/mlx5/core/eq.c | 27 +--- .../ethernet/mellanox/mlx5/core/fpga/tls.c | 54 +++----- .../ethernet/mellanox/mlx5/core/fpga/tls.h | 6 +- .../ethernet/mellanox/mlx5/core/fs_counters.c | 31 ++--- .../net/ethernet/mellanox/mlx5/core/lib/eq.h | 7 +- drivers/net/ethernet/mellanox/mlx5/core/qp.c | 38 ++---- drivers/net/ethernet/netronome/nfp/abm/main.c | 4 +- drivers/net/ethernet/netronome/nfp/abm/main.h | 4 +- .../net/ethernet/netronome/nfp/abm/qdisc.c | 33 ++--- .../net/ethernet/netronome/nfp/flower/main.c | 44 +++--- .../net/ethernet/netronome/nfp/flower/main.h | 12 +- drivers/net/ppp/ppp_generic.c | 73 +++------- drivers/net/tap.c | 32 ++--- drivers/net/wireless/ath/ath10k/core.h | 2 +- drivers/net/wireless/ath/ath10k/htt.h | 2 +- drivers/net/wireless/ath/ath10k/htt_tx.c | 31 ++--- drivers/net/wireless/ath/ath10k/mac.c | 4 +- drivers/net/wireless/ath/ath10k/txrx.c | 2 +- drivers/net/wireless/ath/ath10k/wmi-tlv.c | 8 +- drivers/net/wireless/ath/ath10k/wmi.c | 43 +++--- drivers/net/wireless/marvell/mwifiex/init.c | 4 +- drivers/net/wireless/marvell/mwifiex/main.c | 10 +- drivers/net/wireless/marvell/mwifiex/main.h | 4 +- drivers/net/wireless/marvell/mwifiex/txrx.c | 4 +- drivers/net/wireless/marvell/mwifiex/wmm.c | 15 +-- .../net/wireless/mediatek/mt76/mt7615/init.c | 11 +- .../net/wireless/mediatek/mt76/mt7615/mac.c | 24 ++-- .../wireless/mediatek/mt76/mt7615/mt7615.h | 4 +- include/linux/mlx4/device.h | 4 +- include/linux/mlx4/qp.h | 2 +- include/linux/mlx5/driver.h | 11 +- include/linux/mlx5/qp.h | 2 +- include/net/9p/client.h | 11 +- include/net/act_api.h | 6 +- include/net/net_namespace.h | 2 +- include/net/sctp/sctp.h | 5 +- net/9p/client.c | 65 ++++----- net/9p/trans_fd.c | 37 ++--- net/9p/trans_rdma.c | 1 - net/9p/trans_virtio.c | 1 - net/core/net_namespace.c | 65 ++++----- net/mac80211/cfg.c | 70 ++++------ net/mac80211/ieee80211_i.h | 12 +- net/mac80211/iface.c | 16 +-- net/mac80211/main.c | 20 ++- net/mac80211/status.c | 6 +- net/mac80211/tx.c | 16 +-- net/mac80211/util.c | 30 +---- net/netlink/genetlink.c | 46 +++---- net/qrtr/qrtr.c | 66 ++++----- net/rxrpc/af_rxrpc.c | 2 +- net/rxrpc/ar-internal.h | 3 +- net/rxrpc/conn_client.c | 49 +++---- net/rxrpc/conn_object.c | 2 +- net/sched/act_api.c | 127 +++++++----------- net/sched/cls_api.c | 27 +--- net/sched/cls_basic.c | 56 +++----- net/sched/cls_bpf.c | 74 +++++----- net/sched/cls_flower.c | 114 ++++++---------- net/sched/cls_u32.c | 63 ++++----- net/sctp/associola.c | 34 ++--- net/sctp/protocol.c | 6 - net/sctp/sm_make_chunk.c | 2 +- net/sctp/socket.c | 6 +- net/tipc/topsrv.c | 49 ++----- 70 files changed, 650 insertions(+), 1102 deletions(-)
Signature · 1 line
2.23.0.rc1