]> git.baikalelectronics.ru Git - kernel.git/commit
selftest: txtimestamp: fix net ns entry logic
authorPaolo Pisati <paolo.pisati@canonical.com>
Tue, 21 Jul 2020 16:17:10 +0000 (18:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2020 23:11:07 +0000 (16:11 -0700)
commit5932627ae9d4ca6ea7a3a02bd4b41ed2e8581a63
treec9f61013bdf425700a85f9aea910610a5c2a5131
parent4ebd28a0919627829ed5eade3f6967d958eb38ed
selftest: txtimestamp: fix net ns entry logic

According to 'man 8 ip-netns', if `ip netns identify` returns an empty string,
there's no net namespace associated with current PID: fix the net ns entrance
logic.

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/txtimestamp.sh