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

linux: cleanup inclusions and update uapi header to 6.0 #943

Merged
merged 9 commits into from Jan 12, 2023

Conversation

mtomaschewski
Copy link
Member

No description provided.

mtomaschewski and others added 9 commits November 23, 2022 17:32
Remove the nwords pre-calculation from the link mode constants
in the linux/ethtool.h header. We have to query it and use the
nwords value of the kernel for subsequent calls and already do.
Further, don't limit the list of advertise link modes on dbus
to mode count in a potentially outdated header file, but just
apply to the bitfield; we filter driver supported modes later.
Keeping conditional __KERNEL_DIV_ROUND_UP macro definition
needed by the ethtool.h header to maintain compatibility.
Cleaned up SLE-11 compatibility artefacts
Avoid direct if_nametoindex and also if_nametoindex calls
using the ni_netdev_name_to_index utility where possible
to prepare for (net/if*.h) header file inclusion cleanup.
The the old net/if*.h glibc header files conflict with the
linux kernel uapi header files and don't provide all the
constants we need to use kernel features (via rtnetlink).
@mtomaschewski mtomaschewski self-assigned this Dec 21, 2022
mtomaschewski added a commit that referenced this pull request Dec 22, 2022
linux: cleanup inclusions and update uapi header to 6.0
Copy link
Collaborator

@cfconrad cfconrad left a comment

Choose a reason for hiding this comment

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

LGTM, thx

@cfconrad cfconrad merged commit 0e69280 into openSUSE:master Jan 12, 2023
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.

None yet

2 participants