[PATCH v6 03/13] test: add test for hotplug and secondary process operations
Stephen Hemminger
stephen at networkplumber.org
Wed Jul 23 17:09:21 CEST 2025
On Wed, 23 Jul 2025 05:31:03 +0400 (+04)
Ivan Malov <ivan.malov at arknetworks.am> wrote:
> > +
> > + ret = rte_eth_dev_get_port_by_name(vdev_name, &port);
> > + TEST_ASSERT(ret == 0, "Lookup vdev '%s' failed", vdev_name);
> > +
> > + ret = rte_eth_dev_configure(port, 1, 1, &dev_conf);
> > + TEST_ASSERT(ret == 0, "Configure port %u failed", port);
>
> I may be very wrong here, but if this code is supposed to be run in the
> secondary process, then is 'rte_eth_dev_configure' allowed in such?
It works because the state in port structure for is in shared huge pages.
The issue with start/stop is that it causes state changes that are not shared.
More information about the dev
mailing list