Getting RSS hash key.

Get RSS hash key, check that packets are directed to receive queues according to its value.

  1. Check that RSS hash key can be obtained for IUT interface.

  2. For every entry in RSS hash indirection table:

    • Find such address/port pairs on IUT and Tester that Toeplitz hash produces value mapped to the table entry.

    • Create a pair of connected sockets on IUT and Tester bound to these address/port pairs.

    • Send a few packets from Tester to IUT. Check that XDP hook reports that all the packets were processed by the Rx queue specified by the current indirection table entry.

Parameters:

env

Testing environment:

sock_type

Socket type:

  • SOCK_STREAM

  • SOCK_DGRAM