]> www.infradead.org Git - nvme.git/commit
net: tn40xx: add basic Tx handling
authorFUJITA Tomonori <fujita.tomonori@gmail.com>
Sun, 23 Jun 2024 23:55:04 +0000 (08:55 +0900)
committerJakub Kicinski <kuba@kernel.org>
Wed, 26 Jun 2024 01:44:19 +0000 (18:44 -0700)
commitdd2a0ff554082f6972b6cc6ea8f9d67e123e054e
tree91a8a1d92a243443e7c06c40e183580eadb8a8b2
parentffa28c748b388b8afaf658df15a6a1ed6d310663
net: tn40xx: add basic Tx handling

This patch adds device specific structures to initialize the hardware
with basic Tx handling. The original driver loads the embedded
firmware in the header file. This driver is implemented to use the
firmware APIs.

The Tx logic uses three major data structures; two ring buffers with
NIC and one database. One ring buffer is used to send information
about packets to be sent for NIC. The other is used to get information
from NIC about packet that are sent. The database is used to keep the
information about DMA mapping. After a packet is sent, the db is used
to free the resource used for the packet.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Link: https://patch.msgid.link/20240623235507.108147-5-fujita.tomonori@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/tehuti/Kconfig
drivers/net/ethernet/tehuti/tn40.c
drivers/net/ethernet/tehuti/tn40.h