Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net/mlx5: less memory per offloaded tc rule
@ 2026-10-09  5:20 Alexandre Cassen
  2026-10-09  5:21 ` [PATCH net-next 1/2] net/mlx5e: TC, free NIC flow parse attributes after offload Alexandre Cassen
  2026-10-09  5:21 ` [PATCH net-next 2/2] net/mlx5: HWS, shrink FTE action array to fit Alexandre Cassen
  0 siblings, 2 replies; 5+ messages in thread
From: Alexandre Cassen @ 2026-10-09  5:20 UTC (permalink / raw)
  To: Saeed Mahameed, Leon Romanovsky, Tariq Toukan, Mark Bloch
  Cc: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Moshe Shemesh, Yevgeny Kliteynik, netdev, linux-rdma

Two mlx5 allocations hold more memory than an offloaded tc rule needs.
A NIC flow keeps a 4 KB allocation for parse attributes that nothing
reads after offload. An FTE under hardware steering keeps the 1 KB
action array it was built in while a rule rarely needs more than three
entries.

Freeing the first after offload saves 4 KB per NIC flow. Shrinking the
second saves about 1 KB per FTE under hardware steering.

Alexandre Cassen (2):
  net/mlx5e: TC, free NIC flow parse attributes after offload
  net/mlx5: HWS, shrink FTE action array to fit

 .../net/ethernet/mellanox/mlx5/core/en_tc.c    | 18 +++++++++++++-----
 .../mellanox/mlx5/core/steering/hws/fs_hws.c   | 10 +++++++++-
 2 files changed, 22 insertions(+), 6 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-10-10 15:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-09  5:20 [PATCH net-next 0/2] net/mlx5: less memory per offloaded tc rule Alexandre Cassen
2026-10-09  5:21 ` [PATCH net-next 1/2] net/mlx5e: TC, free NIC flow parse attributes after offload Alexandre Cassen
2026-10-10 15:42   ` Simon Horman
2026-10-09  5:21 ` [PATCH net-next 2/2] net/mlx5: HWS, shrink FTE action array to fit Alexandre Cassen
2026-10-10 15:42   ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox