]> 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)
commit8b1e95fdf3e76d4e4f296738029c32f58fb8559d
tree4b685692f083cfa00cf9cc2cd4acfb3265baf881
parent45a77e1254359d41bbc66b611659ed675d97d82a
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