liquidio: fix wrong information about channels reported to ethtool
authorWeilin Chang <weilin.chang@cavium.com>
Thu, 5 Jan 2017 00:18:50 +0000 (16:18 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Jan 2017 20:44:19 +0000 (15:44 -0500)
commit026b471bfc995ba1429ca45b9157457fb8602f8e
tree770aa6ea5d1f3093df0862f4f95db42c633e6319
parentf784ad3d79e5be062b19dc36c53413daffeecc5c
liquidio: fix wrong information about channels reported to ethtool

Information reported to ethtool about channels is sometimes wrong for PF,
and always wrong for VF.  Fix them by getting the information from the
right fields from the right structs.

Signed-off-by: Weilin Chang <weilin.chang@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: Derek Chickles <derek.chickles@cavium.com>
Signed-off-by: Satanand Burla <satananda.burla@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_ethtool.c