OSDN Git Service

net: phy: Send notifier when starting the cable test
authorAndrew Lunn <andrew@lunn.ch>
Sun, 10 May 2020 19:12:40 +0000 (21:12 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sun, 10 May 2020 19:28:41 +0000 (12:28 -0700)
commit9896a4574ecb137d4e5b9283004aa34c688bc761
tree663521d696ca521b454ae286dc01af09981bc26e
parent4a459bdc7472b0e6bea6d0dd8df66253ac4f3fe2
net: phy: Send notifier when starting the cable test

Given that it takes time to run a cable test, send a notify message at
the start, as well as when it is completed.

v3:
EMSGSIZE when ethnl_bcastmsg_put() fails
Print an error message on failure, since this is a void function.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Michal Kubecek <mkubecek@suse.cz>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/cabletest.c