]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: tn40xx: add basic Rx handling
authorFUJITA Tomonori <fujita.tomonori@gmail.com>
Sun, 23 Jun 2024 23:55:05 +0000 (08:55 +0900)
committerJakub Kicinski <kuba@kernel.org>
Wed, 26 Jun 2024 01:44:19 +0000 (18:44 -0700)
commit37c4947af44d51358cb03262c8e6eeac4a1cd642
tree2f83202163e9ba1495f0a3535f626c2857bf64bc
parentdd2a0ff554082f6972b6cc6ea8f9d67e123e054e
net: tn40xx: add basic Rx handling

This patch adds basic Rx handling. The Rx logic uses three major data
structures; two ring buffers with NIC and one database. One ring
buffer is used to send information to NIC about memory to be stored
packets to be received. The other is used to get information from NIC
about received packets. The database is used to keep the information
about DMA mapping. After a packet arrived, the db is used to pass the
packet to the network stack.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Reviewed-by: Hans-Frieder Vogt <hfdevel@gmx.net>
Link: https://patch.msgid.link/20240623235507.108147-6-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