]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: refactor get_netdev_name function
authorAntonio Cardace <acardace@redhat.com>
Wed, 18 Nov 2020 20:45:21 +0000 (21:45 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Nov 2020 20:51:54 +0000 (12:51 -0800)
commit50d35cdba76772f5b2592b9d8c12a7b0862099b0
tree49b1250028d0732de49384d407f9b562080ed496
parent40ac3ba598e7a1980140c1a5f9086bcb8a7a558c
selftests: refactor get_netdev_name function

As pointed out by Michal Kubecek, getting the name
with the previous approach was racy, it's better
and easier to get the name of the device with this
patch's approach.

Essentialy the function doesn't need to exist
anymore as it's a simple 'ls' command.

Signed-off-by: Antonio Cardace <acardace@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/netdevsim/ethtool-common.sh