[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHXqBFJL+y3TOj-OX4wXT-H1Z9R3EqJLnA64t5_ocCKLx6tPUQ@mail.gmail.com>
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