Changing RSS hash key.ΒΆ

Check that RSS hash key change can result in changing of Rx queue which processes packets of a given connection.

  1. Create a pair of connected sockets of type sock_type on IUT and Tester.

  2. Send a few packets from Tester over the created connection. Check that XDP hook reports that all packets go through the Rx queue determined by the current hash key value.

  3. Set RSS hash key on IUT interface to a different value such that Toeplitz hash for packets sent from Tester now points to a different RSS indirection table entry which specifies a different Rx queue.

  4. Send again a few packets from Tester. Check that XDP hook reports that all the packets were processed by the new Rx queue.

Parameters:

env

Testing environment:

sock_type

Socket type:

  • SOCK_STREAM

  • SOCK_DGRAM