cxgb4: Read stats for only available channels
authorHariprasad Shenai <hariprasad@chelsio.com>
Tue, 7 Jul 2015 16:19:20 +0000 (21:49 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2015 23:13:54 +0000 (16:13 -0700)
commitdf459ebc33324e6e2932b0236a7e1a53a14182b2
treebf10dec07e6bbb06e6b69b9c82e22f199bca00c6
parent5b4e83e133c7e610fdb6063f64bd404fc0836fe0
cxgb4: Read stats for only available channels

Updating the driver to read the stats of only available channels. T6 and
later has only 2 channels

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