]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: dc2114x: allow users to decide how to tx packets according to IP core
authorHanyuan Zhao <hanyuan-z@qq.com>
Fri, 9 Aug 2024 08:57:00 +0000 (16:57 +0800)
committerTom Rini <trini@konsulko.com>
Sun, 27 Oct 2024 16:15:29 +0000 (10:15 -0600)
commitc303f4a0dd7a6fba0a3103c1f8f490929ae5b578
treec036b32b3f47874ca11de4c8ebde8b259349f440
parent5fa3e10cec85ddd12d31af14f9fce6c3c0ff37d0
net: dc2114x: allow users to decide how to tx packets according to IP core

Some IP cores of dc2114x or its variants do not comply so well with
the behaviors described by the official document. Originally this
driver uses only one tx descriptor and organizes it as a ring buffer,
which would lead to a problem that one packet would be sent twice.
This commit adds support to prevent this bug if you are using IP
cores with this issue, by using multiple tx descriptors and
organizing them as a real well-defined ring buffer.

Signed-off-by: Hanyuan Zhao <zhaohy22@mails.tsinghua.edu.cn>
drivers/net/Kconfig
drivers/net/dc2114x.c