Skip to content

libnetwork: Clean up sysfs-based operations#44802

Merged
neersighted merged 1 commit intomoby:masterfrom
akerouanton:libnetwork-sysfs-cleanup
Jan 11, 2023
Merged

libnetwork: Clean up sysfs-based operations#44802
neersighted merged 1 commit intomoby:masterfrom
akerouanton:libnetwork-sysfs-cleanup

Conversation

@akerouanton
Copy link
Member

  • The oldest kernel version currently supported is v3.10. Bridge parameters can be set through netlink since v3.8 (see torvalds/linux@25c71c7). As such, we don't need to fallback to sysfs to set hairpin mode.
  • scanInterfaceStats() is never called, so no need to keep it alive.
  • Document why default_pvid is set through sysfs

@thaJeztah thaJeztah added this to the v-next milestone Jan 11, 2023
Copy link
Member

@neersighted neersighted left a comment

Choose a reason for hiding this comment

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

LGTM, one comment nit.

- The oldest kernel version currently supported is v3.10. Bridge
parameters can be set through netlink since v3.8 (see
torvalds/linux@25c71c7). As such, we don't need to fallback to sysfs to
set hairpin mode.
- `scanInterfaceStats()` is never called, so no need to keep it alive.
- Document why `default_pvid` is set through sysfs

Signed-off-by: Albin Kerouanton <albinker@gmail.com>
@akerouanton akerouanton force-pushed the libnetwork-sysfs-cleanup branch from 9da8c95 to ef161d4 Compare January 11, 2023 16:02
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@neersighted neersighted merged commit ffb2c1f into moby:master Jan 11, 2023
@akerouanton akerouanton deleted the libnetwork-sysfs-cleanup branch January 11, 2023 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/networking Networking impact/changelog kind/refactor PR's that refactor, or clean-up code status/4-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants