aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ahci/ahci.c
diff options
context:
space:
mode:
authorAymeric Wibo <obiwac@FreeBSD.org>2025-08-25 22:40:16 +0000
committerAymeric Wibo <obiwac@FreeBSD.org>2025-08-25 22:40:17 +0000
commit431856c868de12d7af127cdf7e9aeb1b99d0ac99 (patch)
tree67474adc4e0c1a2321a37a7312cb76d40b57fadd /sys/dev/ahci/ahci.c
parent5bd5774ff63c735087ff3a6604e4066a265d9b6c (diff)
netlink: Bypass refcounting when setting promiscuityHEADmain
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
Diffstat (limited to 'sys/dev/ahci/ahci.c')
0 files changed, 0 insertions, 0 deletions