Test to check device dev_reconfigure
Reconfigure the device in stopped state and check that RSS configuration are applied and all queues could transmit packets.
Check maximum number of Rx/Tx queues
Prepare stopped Ethernet device using nb_rx_queue Rx queues and nb_tx_queue Tx queues
Reconfigure the device using nb_rx_queue_reconf Rx queues, nb_tx_queue_reconf Tx queues and RSS configuration
Setup all Rx and Tx queues if all_queues_reconf is
TRUE
, otherwise setup only those queues that were not setup beforeStart the Ethernet device
Prepare templates for test using rx_tmpl and tx_tmpl
Establish effective RSS hash configuration
Get RSS Redirection Table. If the corresponding RPC is not supported, use default Redirection Table
Ensure that interface is UP on Tester side
Change templates to be sure that packets will be received on specific queues using Redirection Table and RSS hash configuration
Transmit and sniff packet from tst_if
Receive packets on port iut_port on all Rx queues and check that received packets are on corresponding queues
Prepare tx_mbufs to be sent and patterns to match it by Tx template
Create Ethernet-based CSAP which starts to listen to network immediately
Validate and send tx_mbufs from all queues to iut_port and make sure that all are sent
Receive packets on tst_if and check that the received packet matches the sent from iut_port
Check that no extra packets are received on Tester
Check that number of received packets equal to sent
Roman Zhukov Roman.Zhukov@oktetlabs.ru
Parameters:
rx_tmpl |
Rx traffic template |
tx_tmpl |
Tx traffic template |
nb_rx_queue |
The number of Rx queues |
nb_tx_queue |
The number of Tx queues |
nb_rx_queue_reconf |
The number of Rx queues after reconfiguring |
nb_tx_queue_reconf |
The number of Tx queues after reconfiguring |
all_queues_reconf |
Re-setup all Rx and Tx queues if |