[PATCH v5 2/2] dts: add VF configuration and workflow
Patrick Robb
probb at iol.unh.edu
Thu Mar 13 13:56:41 CET 2025
On Wed, Mar 12, 2025 at 11:40 PM Patrick Robb <probb at iol.unh.edu> wrote:
>
> + def set_vfs(self):
> + """Create virtual functions for the port."""
> + self.node.main_session.create_vfs(self)
> + addr_list = self.node.main_session.get_pci_addr_of_vfs(self)
> + for addr in addr_list:
> + vf_port_config = PortConfig(
> + name=f"{self.name}-vf-{addr}",
> + pci=addr,
> + os_driver_for_dpdk=self.config.os_driver_for_dpdk,
> + os_driver=self.config.os_driver,
> + )
> + self.virtual_functions.append(Port(self.node, vf_port_config))
>
>From doing additional runs from this patch, I am seeing for some reason
like 10% of the time there will be some StopIteration error on a VF port
init from get_port_info(pci), when it is indeed being provided with a pci
address (I think but I can debug).
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20250313/80c2b1f7/attachment.htm>
More information about the dev
mailing list