]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite644a1856c621cc08055a392446dc989616d23ae
tree770aa6ea5d1f3093df0862f4f95db42c633e6319
parentd97671e417fabba0fe8b636e47166e1e2659e47b
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