net: hibmcge: Implement .ndo_start_xmit function
authorJijie Shao <shaojijie@huawei.com>
Tue, 15 Oct 2024 12:35:12 +0000 (20:35 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Mon, 21 Oct 2024 09:26:53 +0000 (11:26 +0200)
commit40735e7543f94fc88f58d94fd5f88daa4a2f2c6e
treee391e7cf9faff1012268e62f98ae08600f61aded
parentff4edac6e9bd2dc7f14e86f6880e542ac37679bd
net: hibmcge: Implement .ndo_start_xmit function

Implement .ndo_start_xmit function to fill the information of the packet
to be transmitted into the tx descriptor, and then the hardware will
transmit the packet using the information in the tx descriptor.
In addition, we also implemented the tx_handler function to enable the
tx descriptor to be reused, and .ndo_tx_timeout function to print some
information when the hardware is busy.

Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/hisilicon/hibmcge/hbg_common.h
drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.c
drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.h
drivers/net/ethernet/hisilicon/hibmcge/hbg_irq.c
drivers/net/ethernet/hisilicon/hibmcge/hbg_main.c
drivers/net/ethernet/hisilicon/hibmcge/hbg_reg.h
drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.c [new file with mode: 0644]
drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.h [new file with mode: 0644]