]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: gem: Fix return value from recv
authorMichal Simek <michal.simek@xilinx.com>
Wed, 9 Dec 2015 13:16:32 +0000 (14:16 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 18 Dec 2015 12:15:58 +0000 (13:15 +0100)
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>
drivers/net/zynq_gem.c

index b0755f5e3b482f4a36733702004d2c91f085b8c7..5f0f2005ceb3cc42621252968c994a9a74256cc1 100644 (file)
@@ -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)