diff options
author | Ganesh Goudar <ganeshgr@chelsio.com> | 2017-12-19 04:52:28 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-19 22:14:19 +0300 |
commit | f988008a8654e0a2b748ba49ee9fa18069161f76 (patch) | |
tree | 396379d80f6e2ebc54be05c7de86f7861a83057b /drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | |
parent | 1df94c3c5dadbce3df6cc0e989d8c85d43a903d6 (diff) | |
download | linux-f988008a8654e0a2b748ba49ee9fa18069161f76.tar.xz |
cxgb4: RSS table is 4k for T6
RSS table is 4k for T6 and later cards, add check for the
same.
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c index d8efcd9e55d3..d3ced0438474 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c @@ -2021,11 +2021,12 @@ static int rss_show(struct seq_file *seq, void *v, int idx) static int rss_open(struct inode *inode, struct file *file) { - int ret; - struct seq_tab *p; struct adapter *adap = inode->i_private; + int ret, nentries; + struct seq_tab *p; - p = seq_open_tab(file, RSS_NENTRIES / 8, 8 * sizeof(u16), 0, rss_show); + nentries = t4_chip_rss_size(adap); + p = seq_open_tab(file, nentries / 8, 8 * sizeof(u16), 0, rss_show); if (!p) return -ENOMEM; |