提交 da872d7c 编写于 作者: M Michal Simek

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: NMichal Simek <michal.simek@xilinx.com>
Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
上级 bcdfef7a
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册