diff options
author | Hariprasad Shenai <hariprasad@chelsio.com> | 2016-03-01 17:19:32 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-02 14:46:29 -0500 |
commit | da08e4259fbfd769d1e825a685d44132c8576450 (patch) | |
tree | 7835d99ed010169d150aa9647425725f55367441 /drivers/net/ethernet/chelsio/cxgb4 | |
parent | d93e4093fb0f933cd6b32c0b71d30cda9854d4b9 (diff) | |
download | linux-da08e4259fbfd769d1e825a685d44132c8576450.tar.bz2 |
cxgb4/cxgb4vf: Use fl capacity to check if fl needs to be replenished
Use freelist capacity instead of freelist size while checking, if
freelist needs to be refilled
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/sge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/sge.c b/drivers/net/ethernet/chelsio/cxgb4/sge.c index b4eb4680a27c..22d972030927 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/sge.c +++ b/drivers/net/ethernet/chelsio/cxgb4/sge.c @@ -2226,7 +2226,7 @@ static int process_responses(struct sge_rspq *q, int budget) budget_left--; } - if (q->offset >= 0 && rxq->fl.size - rxq->fl.avail >= 16) + if (q->offset >= 0 && fl_cap(&rxq->fl) - rxq->fl.avail >= 16) __refill_fl(q->adap, &rxq->fl); return budget - budget_left; } |