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>
This commit is contained in:
Michal Simek 2015-12-09 14:16:32 +01:00
parent bcdfef7a26
commit da872d7c13
1 changed files with 1 additions and 1 deletions

View 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)