libeth: add Tx buffer completion helpers
authorAlexander Lobakin <aleksander.lobakin@intel.com>
Wed, 4 Sep 2024 15:47:43 +0000 (17:47 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 9 Sep 2024 20:15:37 +0000 (13:15 -0700)
commit080d72f471c86f8906845bc822051f5790d0a90d
tree096a006b165f42c78eedcdacad1ca4ce1a5e908c
parentbfba7bc8b7c2c100b76edb3a646fdce256392129
libeth: add Tx buffer completion helpers

Software-side Tx buffers for storing DMA, frame size, skb pointers etc.
are pretty much generic and every driver defines them the same way. The
same can be said for software Tx completions -- same napi_consume_skb()s
and all that...
Add a couple simple wrappers for doing that to stop repeating the old
tale at least within the Intel code. Drivers are free to use 'priv'
member at the end of the structure.

Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
include/net/libeth/tx.h [new file with mode: 0644]
include/net/libeth/types.h [new file with mode: 0644]