diff options
author | Michal Simek <michal.simek@xilinx.com> | 2015-12-10 16:01:50 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2016-01-27 15:55:52 +0100 |
commit | 007025183626f8ba492ba29bdb88159bb7a4d53f (patch) | |
tree | 04278b3f674b1fd033419b17c3f4e4d6a05d4efd /include/configs/io64.h | |
parent | 15c239c8cea70c6c86498018c8008ba8fe9830df (diff) | |
download | talos-obmc-uboot-007025183626f8ba492ba29bdb88159bb7a4d53f.tar.gz talos-obmc-uboot-007025183626f8ba492ba29bdb88159bb7a4d53f.zip |
net: emaclite: Use indirect reg access in send
The original logic in the driver was exchanging buffers which are used for
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 the original condition is met that at least 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@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/configs/io64.h')
0 files changed, 0 insertions, 0 deletions