[PATCH 18/34] net: mana: Refactor RX buffer allocation code to prepare for various MTU
authorHaiyang Zhang <haiyangz@microsoft.com>
Wed, 12 Apr 2023 21:16:01 +0000 (14:16 -0700)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 7 Feb 2025 09:43:47 +0000 (10:43 +0100)
commit165edd6d501b18b0ec28dbc4a2c45bc0185556bd
tree7a60d05d30a81ef880b4e70ab9553e1e83bf33b1
parente4cd45eac1fa8040a454c8076a37fe50be617d96
[PATCH 18/34] net: mana: Refactor RX buffer allocation code to prepare for various MTU

Move out common buffer allocation code from mana_process_rx_cqe() and
mana_alloc_rx_wqe() to helper functions.
Refactor related variables so they can be changed in one place, and buffer
sizes are in sync.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit a2917b23497e4205db32271e4e06e142a9f8a6aa)
Signed-off-by: Bastian Blank <waldi@debian.org>
Gbp-Pq: Topic features/all/ethernet-microsoft
Gbp-Pq: Name 0018-net-mana-Refactor-RX-buffer-allocation-code-to-prepa.patch
drivers/net/ethernet/microsoft/mana/mana_en.c
include/net/mana/mana.h