mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
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:
parent
bcdfef7a26
commit
da872d7c13
1 changed files with 1 additions and 1 deletions
|
@ -569,7 +569,7 @@ static int zynq_gem_recv(struct udevice *dev, int flags, uchar **packetp)
|
||||||
priv->rxbd_current = 0;
|
priv->rxbd_current = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return frame_len;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void zynq_gem_halt(struct udevice *dev)
|
static void zynq_gem_halt(struct udevice *dev)
|
||||||
|
|
Loading…
Add table
Reference in a new issue