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 default controller ID to 1 #43

Merged

Conversation

adrianchiris
Copy link
Collaborator

Kernel 5.10 or newer added support for encoding controler ID in the
physical port name of the representor in cases where external
controller exists (Smart-NICs).

This controller ID is by default 1 and not 0.

Signed-off-by: Adrian Chiris [email protected]

Kernel 5.10 or newer added support for encoding controler ID in the
physical port name of the representor  in cases where external
controller exists (Smart-NICs).

This controller ID is by default 1 and not 0.

Signed-off-by: Adrian Chiris <[email protected]>
@adrianchiris
Copy link
Collaborator Author

This commit introduced the change to devlink port: torvalds/linux@66b1708

This code determines the controller number: https://github.com/torvalds/linux/blob/9d31d2338950293ec19d9b095fbaa9030899dcb4/drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c#L42

when working with upstream kernel it seems the controller number is 1 and not 0

@zshi-redhat
Copy link

lgtm

@moshe010 moshe010 merged commit 0453bd4 into k8snetworkplumbingwg:master Jun 30, 2021
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.

4 participants