selftests: net: refactor reuseport_addr_any test
authorPeter Oskolkov <posk@google.com>
Wed, 19 Dec 2018 18:20:09 +0000 (10:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Dec 2018 00:41:43 +0000 (16:41 -0800)
commit3f2eadb10886340f4d67fe683c2e53b4df005461
tree30dac41744461a8978d5b30aea8e13277cdde425
parent9c7f37e5ca14f5b04894b1b699a9903885cdafa6
selftests: net: refactor reuseport_addr_any test

This patch refactors reuseport_add_any selftest a bit:
- makes it more modular (eliminates several copy/pasted blocks);
- skips DCCP tests if DCCP is not supported

V2: added "Signed-off-by" tag.

Signed-off-by: Peter Oskolkov <posk@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/reuseport_addr_any.c