ofproto-dpif: Make bonding balance test more robust
authorSimon Horman <horms@verge.net.au>
Thu, 1 May 2014 16:40:17 +0000 (16:40 +0000)
committerAndy Zhou <azhou@nicira.com>
Thu, 1 May 2014 18:40:06 +0000 (11:40 -0700)
commit25d6a6a8803761cf321ba45d1eeb6df29c2a6c6e
tree62d8ae945ea3aba629f470abd36fc37fbcce4e26
parente38785b39dc172d02bd2ae7db1a45a16e5517146
ofproto-dpif: Make bonding balance test more robust

It is my observation that when sending 91 packets to a mode=balance
bond interface with three underlying ports in some cases not all ports
receive at least 7 packets. This causes the test to fail.

It may be that failure indicates that the bonding code
needs improvement. But it seems to me that its more likely to
be a valid behaviour.

I have found that by sending 256 packets instead of 91 the test passes
more reliably: I am yet to see it fail.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Andy Zhou <azhou@nicira.com>
tests/ofproto-dpif.at