OSDN Git Service

net: macb: Add support for partial store and forward
authorMaulik Jodhani <maulik.jodhani@xilinx.com>
Tue, 13 Jun 2023 05:43:40 +0000 (23:43 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Jun 2023 07:45:29 +0000 (08:45 +0100)
commitcae4bc06b3e41bc6dfd7116a45c1006e50ffe153
tree076f9088f2865cfbf795d58ff354d2d8b081099a
parent5b32c61a2dac17db3f87c65cada74c9d7f31f4fb
net: macb: Add support for partial store and forward

When the receive partial store and forward mode is activated, the
receiver will only begin to forward the packet to the external AHB
or AXI slave when enough packet data is stored in the packet buffer.
The amount of packet data required to activate the forwarding process
is programmable via watermark registers which are located at the same
address as the partial store and forward enable bits. Adding support to
read this rx-watermark value from device-tree, to program the watermark
registers and enable partial store and forwarding.

Signed-off-by: Maulik Jodhani <maulik.jodhani@xilinx.com>
Signed-off-by: Pranavi Somisetty <pranavi.somisetty@amd.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.h
drivers/net/ethernet/cadence/macb_main.c