net: emaclite: Use indirect access in emaclite_recv
authorMichal Simek <michal.simek@xilinx.com>
Thu, 10 Dec 2015 15:31:38 +0000 (16:31 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 27 Jan 2016 14:55:52 +0000 (15:55 +0100)
commit4d2749be62b4bf749766a030c74688031edcfbad
tree50b0a96ada382804f761d5bcfaa91f4c89ebdebe
parent007025183626f8ba492ba29bdb88159bb7a4d53f
net: emaclite: Use indirect access in emaclite_recv

When IP is configured with pong buffers, IP is receiving packets to ping
and then to pong buffer and than ping again.
The original logic in the driver remains there that when ping buffer is
free, pong buffer is checked too and return if both are free.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/xilinx_emaclite.c