From da872d7c136cdbc111f4937becfd0bb36e425df6 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Wed, 9 Dec 2015 14:16:32 +0100 Subject: [PATCH] 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 Acked-by: Joe Hershberger --- drivers/net/zynq_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index b0755f5..5f0f200 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) -- 2.7.4