From 986f00003ce9cfdceca2f49068b8d443316501d3 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Wed, 17 Oct 2012 11:03:40 +0200 Subject: [PATCH] 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 Signed-off-by: Michal Simek Reviewed-by: Tom Rini --- drivers/net/zynq_gem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 3596065694..7188b9ee0e 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -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); -- 2.39.5