]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6c878eb219b3f767148e0876347497dd793cb1ea
tree4b685692f083cfa00cf9cc2cd4acfb3265baf881
parentcc4c2aca2006e170acc26511cc2549b42b4438be
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