bng_en: Add ring memory allocation support
authorVikas Gupta <vikas.gupta@broadcom.com>
Tue, 1 Jul 2025 14:35:03 +0000 (14:35 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 8 Jul 2025 01:54:00 +0000 (18:54 -0700)
commit27544c0ecb4ca50954a109475932e681ea77cd6d
treeda674f3688439ee98e44590a6d61614e98801ae7
parentfb7d8b61c1f77a5d47fc5cc057d6095acfbedd92
bng_en: Add ring memory allocation support

Add ring allocation/free mechanism which help
to allocate rings (TX/RX/Completion) and backing
stores memory on the host for the device.
Future patches will use these functions.

Signed-off-by: Vikas Gupta <vikas.gupta@broadcom.com>
Reviewed-by: Bhargava Chenna Marreddy <bhargava.marreddy@broadcom.com>
Reviewed-by: Rajashekar Hudumula <rajashekar.hudumula@broadcom.com>
Link: https://patch.msgid.link/20250701143511.280702-6-vikas.gupta@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnge/Makefile
drivers/net/ethernet/broadcom/bnge/bnge_rmem.c [new file with mode: 0644]
drivers/net/ethernet/broadcom/bnge/bnge_rmem.h [new file with mode: 0644]