mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-17 23:37:01 +00:00
net: gem: Remove WRAP bit from TX buffer description
Removing this bit causes that frame is sent only once. (With wrap big one packet has been sent several times which dramatically decrease throughput) TRM: (Table 16-3: Tx Buffer Descriptor Entry) Signed-off-by: Michal Simek <monstr@monstr.eu> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Tom Rini <trini@ti.com>
This commit is contained in:
parent
1415107e46
commit
986f00003c
1 changed files with 1 additions and 2 deletions
|
@ -310,8 +310,7 @@ static int zynq_gem_send(struct eth_device *dev, void *ptr, int len)
|
|||
memset((void *) &(priv->tx_bd), 0, sizeof(struct emac_bd));
|
||||
|
||||
priv->tx_bd.addr = (u32)ptr;
|
||||
priv->tx_bd.status = len | ZYNQ_GEM_TXBUF_LAST_MASK |
|
||||
ZYNQ_GEM_TXBUF_WRAP_MASK;
|
||||
priv->tx_bd.status = len | ZYNQ_GEM_TXBUF_LAST_MASK;
|
||||
|
||||
/* Start transmit */
|
||||
setbits_le32(®s->nwctrl, ZYNQ_GEM_NWCTRL_STARTTX_MASK);
|
||||
|
|
Loading…
Add table
Reference in a new issue