| b986aa05 | 08-Dec-2025 |
Gleb Smirnoff <glebius@FreeBSD.org> |
lltable: use own lock
Add struct mtx to struct lltable and stop using IF_AFDATA_LOCK, that was created for a completely different purpose. No functional change intended.
Reviewed by: zlei, melifa
lltable: use own lock
Add struct mtx to struct lltable and stop using IF_AFDATA_LOCK, that was created for a completely different purpose. No functional change intended.
Reviewed by: zlei, melifaro Differential Revision: https://reviews.freebsd.org/D54086
show more ...
|
| 431856c8 | 26-Aug-2025 |
Aymeric Wibo <obiwac@FreeBSD.org> |
netlink: Bypass refcounting when setting promiscuity
When asking for IFF_PROMISC when modifying interfaces with netlink, set permanent flag instead (IFF_PPROMISC) as netlink interface modification h
netlink: Bypass refcounting when setting promiscuity
When asking for IFF_PROMISC when modifying interfaces with netlink, set permanent flag instead (IFF_PPROMISC) as netlink interface modification has no way of doing promiscuity reference counting through ifpromisc(). We can't do reference counting because every netlink interface modification necessarily either sets or unsets IFF_PROMISC in ifi_flags, and ifi_change is usually set to 0xFFFFFFFF.
This logic was the same between this and SIOCSIFFLAGS, so factor out if_setppromisc() function.
Reviewed by: melifaro, saheed, kp, mckusick (mentor) Approved by: melifaro, saheed, mckusick (mentor) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D52056
show more ...
|
| 5bd5774f | 26-Aug-2025 |
Aymeric Wibo <obiwac@FreeBSD.org> |
netlink: Handle `ifhwioctl(SIOCSIFMTU)` failure
Print out error message if setting MTU fails when modifying interface using netlink.
Reviewed by: saheed, melifaro, mckusick (mentor) Approved by: sa
netlink: Handle `ifhwioctl(SIOCSIFMTU)` failure
Print out error message if setting MTU fails when modifying interface using netlink.
Reviewed by: saheed, melifaro, mckusick (mentor) Approved by: saheed, melifaro, mckusick (mentor) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D52132
show more ...
|