Adding too many Rx rulesΒΆ

Check that if Rx rules table is overfilled, nothing bad happens.

  1. Check that there is no Rx rules on IUT interface.

  2. Create a socket on IUT for adding Rx rules via ioctl().

  3. Iterate iters times:

    • Create a lot of Rx classification rules on IUT until adding the next one fails. Then remove all the added rules. Check that the count of added rules does not decrease in comparison to the previous iteration.

Parameters:

env

Testing environment:

sock_type

Socket type (determines whether TCP or UDP Rx rules are created):

  • SOCK_STREAM

  • SOCK_DGRAM

iters

How many times to fill rules table and remove all the added rules