eth: bnxt: add netmem TX support
authorTaehee Yoo <ap420073@gmail.com>
Thu, 19 Jun 2025 14:40:58 +0000 (14:40 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 21 Jun 2025 14:53:07 +0000 (07:53 -0700)
commit4922ca773d9d84cc4ad4e38ab10a92ddc6b3205f
tree950b50d2d499304d21ad3c6d7dede8d4988b7c5f
parentab2aa5453bb83d05e764a1207a61109c6fd4fe4c
eth: bnxt: add netmem TX support

Use netmem_dma_*() helpers and declare netmem_tx to support netmem TX.
By this change, all bnxt devices will support the netmem TX.

Unreadable skbs are not going to be handled by the TX push logic.
So, it checks whether a skb is readable or not before the TX push logic.

netmem TX can be tested with ncdevmem.c

Acked-by: Mina Almasry <almasrymina@google.com>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/20250619144058.147051-1-ap420073@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c