diff options
author | Hariprasad Shenai <hariprasad@chelsio.com> | 2015-05-12 04:43:43 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-12 23:11:40 -0400 |
commit | 1ecc7b7a5998eb8fc4e9f79979638e77436b0b0b (patch) | |
tree | 4977b5551f46293ec2ca79bcdbe4cc355fbe5264 /drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | |
parent | 82fa3c776e5abba7ed6e4b4f4983d14731c37d6a (diff) | |
download | lwn-1ecc7b7a5998eb8fc4e9f79979638e77436b0b0b.tar.gz lwn-1ecc7b7a5998eb8fc4e9f79979638e77436b0b0b.zip |
cxgb4/cxgb4vf: Cleanup macros, add comments and add new MACROS
Cleanup few MACROS left out in t4_hw.h to be consistent with the
existing ones. Also replace few hardcoded values with MACROS. Also
update comments for some code
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/cxgb4_ethtool.c')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c index 10d82b51d7ef..401272a2691e 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c @@ -578,7 +578,7 @@ static int get_coalesce(struct net_device *dev, struct ethtool_coalesce *c) const struct sge_rspq *rq = &adap->sge.ethrxq[pi->first_qset].rspq; c->rx_coalesce_usecs = qtimer_val(adap, rq); - c->rx_max_coalesced_frames = (rq->intr_params & QINTR_CNT_EN) ? + c->rx_max_coalesced_frames = (rq->intr_params & QINTR_CNT_EN_F) ? adap->sge.counter_val[rq->pktcnt_idx] : 0; c->use_adaptive_rx_coalesce = get_adaptive_rx_setting(dev); return 0; |