Skip to content

Cleanup to main DSA structures

Vladimir Oltean netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest7 patches 18 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7net: dsa: move dsa_port :: stp_state near dsa_port :: macinclude/net/dsa.h+3 -11 reply
2/7net: dsa: merge all bools of struct dsa_port into a single u8include/net/dsa.h+10 -76 replies
3/7net: dsa: move dsa_port :: type near dsa_port :: indexinclude/net/dsa.h+4 -21 reply
4/7net: dsa: merge all bools of struct dsa_switch into a single u32include/net/dsa.h+51 -461 reply
5/7net: dsa: make dsa_switch :: num_ports an unsigned intinclude/net/dsa.h net/dsa/dsa2.c+2 -21 reply
6/7net: dsa: move dsa_switch_tree :: ports and lags to first cache lineinclude/net/dsa.h+9 -71 reply
7/7net: dsa: combine two holes in struct dsa_switch_treeinclude/net/dsa.h+3 -31 reply

Reviews trailers per patch

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

PatchFlorian Fainelli
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

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

Read the v2 thread

Cover letter [PATCH v2 net-next 0/7] Cleanup to main DSA structures

This series contains changes that do the following:

- struct dsa_port reduced from 576 to 544 bytes, and first cache line a bit better organized
- struct dsa_switch from 160 to 136 bytes, and first cache line a bit better organized
- struct dsa_switch_tree from 112 to 104 bytes, and first cache line a bit better organized

No changes compared to v1, just split into a separate patch set.

Vladimir Oltean (7):
net: dsa: move dsa_port :: stp_state near dsa_port :: mac
net: dsa: merge all bools of struct dsa_port into a single u8
net: dsa: move dsa_port :: type near dsa_port :: index
net: dsa: merge all bools of struct dsa_switch into a single u32
net: dsa: make dsa_switch :: num_ports an unsigned int
net: dsa: move dsa_switch_tree :: ports and lags to first cache line
net: dsa: combine two holes in struct dsa_switch_tree

 include/net/dsa.h | 146 +++++++++++++++++++++++++---------------------
 net/dsa/dsa2.c    |   2 +-
 2 files changed, 81 insertions(+), 67 deletions(-)
Signature · 1 line
2.25.1