[PATCH] net/tap: Bug fix to populate fds in secondary process
Stephen Hemminger
stephen at networkplumber.org
Mon Jan 17 23:16:55 CET 2022
On Fri, 26 Nov 2021 09:45:15 +0530
Kumara Parameshwaran <kumaraparamesh92 at gmail.com> wrote:
> + ret = rte_eth_dev_get_port_by_name(request_param->port_name, &port_id);
> + if (ret) {
> + TAP_LOG(ERR, "Failed to get port id for %s",
> + request_param->port_name);
> + return -1;
> + }
> + dev = &rte_eth_devices[port_id];
> + process_private = dev->process_private;
> + dev->data->nb_rx_queues = request_param->rxq_count;
> + dev->data->nb_tx_queues = request_param->txq_count;
Why is this necessary? dev->data is already in memory shared between primary
and secondary process.
More information about the dev
mailing list