Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix - move fd store time and mtu set #79

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

kailiangz1
Copy link
Collaborator

No description provided.

snprintf(args + offset, RTE_DEV_NAME_MAX_LEN, ",%s=%s", VIRTIO_ARG_VDPA_STAGE, VIRTIO_ARG_VDPA_VALUE_STAGE);
offset += snprintf(args + offset, RTE_DEV_NAME_MAX_LEN, ",%s=%s", VIRTIO_ARG_VDPA_STAGE, VIRTIO_ARG_VDPA_VALUE_STAGE);

offset += snprintf(args + offset, MAX_PATH_LEN, ",%s=%s", VIRTIO_ARG_VDPA_SOCK_PATH, ifname);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this 'offset +=' seems not needed as offset is not used later

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just in case we add another line , needed add + again.

@@ -2034,6 +2018,14 @@ virtio_pci_devargs_parse(struct rte_devargs *devargs, int *vdpa, rte_uuid_t vm_u
DRV_LOG(ERR, "Failed to parse %s", VIRTIO_ARG_VDPA_STAGE);
}

if (rte_kvargs_count(kvlist, VIRTIO_ARG_VDPA_SOCK_PATH) == 1) {
/* stage mode selected, debug only
*/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

above comment is wrong due to copy-paste

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

After customer probe the device, we should noitfy HA, and
vfs will recover after probe instead of only after device
config.

Signed-off-by: Kailiang <kailiangz@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants