Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144503305
D30639.1775072026.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
585 B
Referenced Files
None
Subscribers
None
D30639.1775072026.diff
View Options
diff --git a/sys/dev/virtio/network/if_vtnet.c b/sys/dev/virtio/network/if_vtnet.c
--- a/sys/dev/virtio/network/if_vtnet.c
+++ b/sys/dev/virtio/network/if_vtnet.c
@@ -1302,9 +1302,13 @@
if ((ifp->if_flags ^ sc->vtnet_if_flags) &
(IFF_PROMISC | IFF_ALLMULTI)) {
- if ((sc->vtnet_flags & VTNET_FLAG_CTRL_RX) == 0)
- return (ENOTSUP);
- vtnet_rx_filter(sc);
+ if (sc->vtnet_flags & VTNET_FLAG_CTRL_RX)
+ vtnet_rx_filter(sc);
+ else {
+ if ((ifp->if_flags ^ sc->vtnet_if_flags) & IFF_ALLMULTI)
+ return (ENOTSUP);
+ ifp->if_flags |= IFF_PROMISC;
+ }
}
out:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 1, 7:33 PM (13 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28239701
Default Alt Text
D30639.1775072026.diff (585 B)
Attached To
Mode
D30639: if_vtnet(4): Restore the ability to set promisc mode.
Attached
Detach File
Event Timeline
Log In to Comment