[U-Boot] [PATCH 09/12] net: emaclite: Use indirect reg access in send

Joe Hershberger joe.hershberger at gmail.com
Tue Dec 15 22:44:42 CET 2015


On Fri, Dec 11, 2015 at 6:03 AM, Michal Simek <michal.simek at xilinx.com> wrote:
> Origin logic in the driver was exchanging buffers which are used for

Origin -> The original

> sending packet and tx_ping and tx_pong buffers were exchanged all the
> time to ensure that IP has enough time to send the packet out.
> Based on this "feature" send function was using nextbuffertouse variable
> to save which buffer should be used.
> Before this algorithm was called driver checked that there is free
> buffer available.
> This checking remains in the driver but driver tries to use tx_ping
> first if available. If not, tx_pong buffer is used instead.
> To reach this code origin condition is met that at least on of the

origin -> ", the original"

on of the -> one of the

> buffer should be available.
> Testing doesn't show any performance drop when this patch is applied.
>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>

Acked-by: Joe Hershberger <joe.hershberger at ni.com>


More information about the U-Boot mailing list