cxgb4: Fix tx flit calculation
authorHariprasad Shenai <hariprasad@chelsio.com>
Tue, 8 Sep 2015 10:55:39 +0000 (16:25 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Sep 2015 19:29:26 +0000 (12:29 -0700)
In commit 0aac3f56d4a63f04 ("cxgb4: Add comment for calculate tx flits
and sge length code") introduced a regression where tx flit calculation
is going wrong, which can lead to data corruption, hang, stall and
write-combining failure. Fixing it.

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/sge.c