cxgb4: Calculate len properly for LSO path
authorKumar Sanghvi <kumaras@chelsio.com>
Thu, 13 Mar 2014 15:20:50 +0000 (20:50 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Mar 2014 18:36:05 +0000 (14:36 -0400)
commitca71de6ba7c18a3a1576e04f7ed8d8508ceba4c9
treea1559c68612d6f4d031f5fa3894e4760fd82f339
parentc2b955e0063411826d2c4540c96a8f2c4e1c2cb0
cxgb4: Calculate len properly for LSO path

Commit 0034b29 ("cxgb4: Don't assume LSO only uses SGL path in t4_eth_xmit()")
introduced a regression where-in length was calculated wrongly for LSO path,
causing chip hangs.
So, correct the calculation of len.

Fixes: 0034b29 ("cxgb4: Don't assume LSO only uses SGL path in t4_eth_xmit()")
Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/sge.c