lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 16 Aug 2011 12:03:42 +0200 From: Michał Mirosław <mirqus@...il.com> To: Jiri Pirko <jpirko@...hat.com> Cc: netdev@...r.kernel.org, davem@...emloft.net, fubar@...ibm.com, andy@...yhouse.net Subject: Re: [patch net-next-2.6] bonding: use ndo_change_rx_flags callback 2011/8/16 Jiri Pirko <jpirko@...hat.com>: > Benefit from use of ndo_change_rx_flags in handling change of promisc > and allmulti. No need to store previous state locally. [...] > diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c > index 854aa8d..731763a 100644 > --- a/drivers/net/bonding/bond_main.c > +++ b/drivers/net/bonding/bond_main.c [...] > -static void bond_set_multicast_list(struct net_device *bond_dev) > +static void bond_change_rx_flags(struct net_device *bond_dev, int change) > { [...] > + if (change & IFF_PROMISC) > + bond_set_promiscuity(bond, > + bond_dev->flags & IFF_ALLMULTI ? 1 : -1); Typo: flags & IFF_PROMISC ? Best Regards, Michał Mirosław -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists