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

Change to use internal interface->enp0s1f0d4(d4), on ACC, for host<->ACC communication #219

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

sudhar-krishnakumar
Copy link
Contributor

Change to use internal interface->enp0s1f0d4(d4), on ACC, for host<->ACC communication. Previously d2 interface was used on ACC, which was meant for external network interface. Using external interface D2 also caused issue when fixed(unique) MAC was set thro fixboard script, since VSP checks for vportid in MAC. Since above change would reduce the number of APFs returned by GetDevices by 1, value of ->acc_apf in node-policy has been increased to 16.

@SalDaniele
Copy link

LGTM, tested and verified pod-2-pod is working with these updates / vsp is able to communicate from host to card.

return status.Error(codes.Internal, err.Error())
}

pf, err := getCommPf(mode, pfList)

if pf == nil {
// Address already set - we don't proceed with setting the ip
fmt.Printf("configureChannel: pf nil from getCommPf")

Choose a reason for hiding this comment

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

Can we add the log level to the additional printf traces or is it intended to show up as part of configure channel?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, I have removed one of the debug print, the rest are for mostly for error cases.

Copy link

@vkannapp vkannapp left a comment

Choose a reason for hiding this comment

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

Approved. The changes looks good. Please remove the debug printf if it is not intended.

for host<->ACC communication. Previously d2 interface
was used on ACC, which was meant for external network interface.
Using external interface D2 also caused issue when fixed(unique) MAC
was set thro fixboard script, since VSP checks for vportid in MAC.
Since above change would reduce the number of APFs returned by GetDevices by 1,
value of ->acc_apf in node-policy has been increased to 16.
@sudhar-krishnakumar sudhar-krishnakumar merged commit 9baac7f into intel:main Aug 15, 2024
10 checks passed
@sudhar-krishnakumar
Copy link
Contributor Author

Approved. The changes looks good. Please remove the debug printf if it is not intended.
@vkannapp thanks, I have removed one of the debug print. Current VSP code uses fmt.* mostly, will have a separate PR, to convert them to log.* wherever applicable.

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.

3 participants