]> 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)
commit453e2f631ca17e4de6df64b49d53bf07a65f07b9
tree770aa6ea5d1f3093df0862f4f95db42c633e6319
parent091b74b66d24620f5dd694c95a1aa8b9fb343a94
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