selftests/net: expect headroom in psock_fanout rollover
authorWillem de Bruijn <willemb@google.com>
Mon, 18 May 2015 19:42:11 +0000 (15:42 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 May 2015 21:04:18 +0000 (17:04 -0400)
psock_fanout tests the various fanout modes. Change the test for
rollover mode to expect early rollover due to socket pressure
as implemented in 2ccdbaa6d55b ("packet: rollover lock contention
avoidance").

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/psock_fanout.c

index 6f67333..08c2a36 100644 (file)
@@ -272,7 +272,7 @@ int main(int argc, char **argv)
        const int expect_hash[2][2]     = { { 15, 5 },  { 20, 5 } };
        const int expect_hash_rb[2][2]  = { { 15, 5 },  { 20, 15 } };
        const int expect_lb[2][2]       = { { 10, 10 }, { 18, 17 } };
        const int expect_hash[2][2]     = { { 15, 5 },  { 20, 5 } };
        const int expect_hash_rb[2][2]  = { { 15, 5 },  { 20, 15 } };
        const int expect_lb[2][2]       = { { 10, 10 }, { 18, 17 } };
-       const int expect_rb[2][2]       = { { 20, 0 },  { 20, 15 } };
+       const int expect_rb[2][2]       = { { 15, 5 },  { 20, 15 } };
        const int expect_cpu0[2][2]     = { { 20, 0 },  { 20, 0 } };
        const int expect_cpu1[2][2]     = { { 0, 20 },  { 0, 20 } };
        int port_off = 2, tries = 5, ret;
        const int expect_cpu0[2][2]     = { { 20, 0 },  { 20, 0 } };
        const int expect_cpu1[2][2]     = { { 0, 20 },  { 0, 20 } };
        int port_off = 2, tries = 5, ret;