hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/net/bridge/br_if.c
....@@ -157,8 +157,9 @@
157157 * This lets us disable promiscuous mode and write
158158 * this config to hw.
159159 */
160
- if (br->auto_cnt == 0 ||
161
- (br->auto_cnt == 1 && br_auto_port(p)))
160
+ if ((p->dev->priv_flags & IFF_UNICAST_FLT) &&
161
+ (br->auto_cnt == 0 ||
162
+ (br->auto_cnt == 1 && br_auto_port(p))))
162163 br_port_clear_promisc(p);
163164 else
164165 br_port_set_promisc(p);