Skip to content

Dpdk: add a uevent listener helper app - #4661

Open
mcgov (mcgov) wants to merge 1 commit into
mcgov/stack-7-dpdk-installer-rollbackfrom
mcgov/stack-8-dpdk-uevent-app
Open

Dpdk: add a uevent listener helper app#4661
mcgov (mcgov) wants to merge 1 commit into
mcgov/stack-7-dpdk-installer-rollbackfrom
mcgov/stack-8-dpdk-uevent-app

Conversation

@mcgov

Copy link
Copy Markdown
Collaborator

Part 8 of 9 of a stacked series that reworks the DPDK SRIOV hot plug tests. Stacked on #4660, review only the last commit. This adds a single new C source file and changes no Python.

Hot plug tests need to know exactly when the kernel adds or removes a VF, its uverbs node, its ib device and its netdev. DPDK's own rte_dev_event_monitor only parses pci, uio and vfio events that carry PCI_SLOT_NAME, so it drops every vmbus, net and infiniband uevent that matters on Azure.

This helper listens on NETLINK_KOBJECT_UEVENT directly and prints a tagged, single line per event that the tests can match on. It is consumed by the next PR in the stack.

Key Test Cases:
verify_dpdk_sriov_rescind_failover_send_only

Impacted LISA Features:
Sriov, NetworkInterface

Tested Azure Marketplace Images:

  • canonical 0001-com-ubuntu-server-jammy 22_04-lts latest

Hot plug tests need to know exactly when the kernel adds or removes a
VF, its uverbs node, its ib device and its netdev, but DPDK's own
rte_dev_event_monitor only parses pci, uio and vfio events that carry
PCI_SLOT_NAME, so it drops every vmbus, net and infiniband uevent that
matters on Azure.

Add a small helper that listens on NETLINK_KOBJECT_UEVENT directly and
prints a tagged, single line per event that tests can match on.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5d5f58ad-b9df-4420-ad37-22caee78e925
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant