.. index:: pair: group; Adding Rx rule for TCP or UDP .. _doxid-group__rss-rx__rule__tcp__udp: Adding Rx rule for TCP or UDP ============================= .. toctree:: :hidden: Check that Rx classification rule can redirect matching TCP/UDP traffic to a different Rx queue. #. Create the first pair of connected sockets on IUT and Tester. #. Compute RSS hash and predict the Rx queue **init_queue** that should process packets send from Tester over the first connection. #. Find another pair of ports on IUT and Tester such that the same Rx queue will be used to receive packets if sockets are bound to these new ports. #. Create the second pair of connected sockets on IUT and Tester bound to these new ports. #. Send packets from Tester to IUT via the first connection, check that on IUT they are received by **init_queue** Rx queue. #. Send packets from Tester to IUT via the second connection, check that on IUT they are received by **init_queue** Rx queue. #. Add Rx classification rule directing packets received via the first connection to another Rx queue **new_queue**. #. Send packets from Tester to IUT via the first connection, check that on IUT they are received by **new_queue** Rx queue. #. Send packets from Tester to IUT via the second connection, check that on IUT they are received by **init_queue** Rx queue. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - env - Testing environment: * :ref:`env.peer2peer ` * :ref:`env.peer2peer_ipv6 ` * - sock_type - Socket type: * ``SOCK_STREAM`` * ``SOCK_DGRAM`` * - match_src - If ``FALSE``, source address/port should be omitted in Rx rule * - match_dst - If ``FALSE``, destination address/port should be omitted in Rx rule * - location - Location for the added rule: * ``first`` * ``last`` * ``any`` * ``specific`` (request specific place in rules table)