Skip to content

Conversation

@sknat
Copy link
Collaborator

@sknat sknat commented Dec 5, 2025

No description provided.

@sknat sknat requested a review from aritrbas December 5, 2025 17:56
Signed-off-by: Nathan Skrzypczak <[email protected]>
@sknat sknat force-pushed the refact-vpp-manager branch from 608e6ad to 2e2237b Compare December 5, 2025 17:57
@sknat sknat self-assigned this Dec 8, 2025
Comment on lines +161 to +166
return &AFXDPDriver{
UplinkDriverData: UplinkDriverData{
name: NativeDriverAfXdp,
params: params,
intf: intf,
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't we also set conf here in the constructor? --> "conf: intf.State,"
This applies to all the drivers under vpp-manager/uplink. Various methods in the driver code read from d.conf, so without setting conf: intf.State, won't those function calls lead to an error?

}
intf.State = uplinkState
intf.Driver = uplink.NewUplinkDriver(
intf.Driver.GetName(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Won't this fail because when VppManagerInterface starts, there is no Driver instance yet? Here, we are creating that instance with NewUplinkDriver and we should be passing the configured driver name from the spec intf.Spec.VppDriver instead of intf.Driver.GetName().

PreconfigureLinux() error
CreateMainVppInterface(vpp *vpplink.VppLink, vppPid int, uplinkSpec *UplinkInterfaceSpec) error
RestoreLinux()
IsSupported(warn bool) bool
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unrelated to this PR, but this function for the AF_XDP driver seems to be broken. It is always returning false!

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.

2 participants