ibmvnic: Report actual backing device speed and duplex values
authorMurilo Fossa Vicentini <muvic@linux.ibm.com>
Tue, 19 Mar 2019 13:28:51 +0000 (10:28 -0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Mar 2019 21:07:18 +0000 (14:07 -0700)
commitf8d6ae0d27ec1e81e4be454e63bc96086bbf8e6b
tree4b685692f083cfa00cf9cc2cd4acfb3265baf881
parentc55c8edafa91139419ed011f7d036274ce96be0b
ibmvnic: Report actual backing device speed and duplex values

The ibmvnic driver currently reports a fixed value for both speed and
duplex settings regardless of the actual backing device that is being
used. By adding support to the QUERY_PHYS_PARMS command defined by the
PAPR+ we can query the current physical port state and report the proper
values for these feilds.

Reported-by: Abdul Haleem <abdhalee@linux.vnet.ibm.com>
Signed-off-by: Murilo Fossa Vicentini <muvic@linux.ibm.com>
Reviewed-by: Mauro S. M. Rodrigues <maurosr@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c
drivers/net/ethernet/ibm/ibmvnic.h