[U-Boot] [PATCH v2 2/5] net: gem: Fix return value from recv
Michal Simek
michal.simek at xilinx.com
Thu Dec 17 12:57:06 CET 2015
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 at xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger at ni.com>
---
Changes in v2: None
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 b0755f5e3b48..5f0f2005ceb3 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)
--
1.9.1
More information about the U-Boot
mailing list