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

mlx5: fix max length of hostname #1535

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leoncamel
Copy link

The current length of mlx5_context.hostname is a 40 bytes long. According to gethostname's man-page, and also the standard of POSIX. The maximum length is HOST_NAME_MAX, which is 64 bytes.

And also, the RFC1034, the maximum length is also about 64 bytes.

So, I made this patch to follow the standards.

@leoncamel leoncamel force-pushed the fixing-hostname-length branch from 1a3e006 to b57fc8a Compare December 31, 2024 13:01
@rleon
Copy link
Member

rleon commented Jan 9, 2025

We use kernel coding style.

Please add description to commit message and set Fixes line.

Thanks

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