diff options
author | Michal Simek <michal.simek@xilinx.com> | 2015-12-09 14:16:32 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2015-12-18 13:15:58 +0100 |
commit | da872d7c136cdbc111f4937becfd0bb36e425df6 (patch) | |
tree | 25af483b35547e1270e9d91ea00e273819d3324c /drivers/net/zynq_gem.c | |
parent | bcdfef7a26170bc9ec9bfe19469cad68ee07312d (diff) |
net: gem: Fix return value from recv
recv function should return 0 instead of frame_len not to
proceed the same packet again in core.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/zynq_gem.c')
-rw-r--r-- | drivers/net/zynq_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index b0755f5e3b4..5f0f2005ceb 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -569,7 +569,7 @@ static int zynq_gem_recv(struct udevice *dev, int flags, uchar **packetp) priv->rxbd_current = 0; } - return frame_len; + return 0; } static void zynq_gem_halt(struct udevice *dev) |