cxgb4: Make sure that Freelist size is larger than Egress Congestion Threshold
authorHariprasad Shenai <hariprasad@chelsio.com>
Tue, 5 May 2015 09:29:51 +0000 (14:59 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 May 2015 23:31:48 +0000 (19:31 -0400)
commit1343299727e99230156ddb0dbac0f84e8e0a1d1e
tree06d5b508cb6cb09db9d8ec8050f70cb1442cded9
parent6decd63acacb3b8de81ccc435cf9acea8b6bdfeb
cxgb4: Make sure that Freelist size is larger than Egress Congestion Threshold

We need to make sure that the Free List Size, in pointers, is at
least 2 Egress Queue Units (8 pointers/each) larger than the SGE's Egress
Congestion Threshold (in pointers).

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