This patch adds support to enable per-queue Rx offloads so that
it can convey the configuration to PMD.
Signed-off-by: Simei Su <simei.su@intel.com>
/* Allocate and set up 1 RX queue per Ethernet port. */
for (q = 0; q < rx_rings; q++) {
+ struct rte_eth_rxconf *rxconf;
+
+ rxconf = &dev_info.default_rxconf;
+ rxconf->offloads = port_conf.rxmode.offloads;
+
retval = rte_eth_rx_queue_setup(port, q, nb_rxd,
- rte_eth_dev_socket_id(port), NULL, mbuf_pool);
+ rte_eth_dev_socket_id(port), rxconf, mbuf_pool);
if (retval < 0)
return retval;