[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100602080730.53abea6d@nehalam>
Date: Wed, 2 Jun 2010 08:07:30 -0700
From: Stephen Hemminger <shemminger@...tta.com>
To: Jiri Pirko <jpirko@...hat.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net, kaber@...sh.net,
eric.dumazet@...il.com
Subject: Re: [PATCH net-next-2.6] net: replace hooks in __netif_receive_skb
V5
On Wed, 2 Jun 2010 09:52:08 +0200
Jiri Pirko <jpirko@...hat.com> wrote:
> +
> + err = netdev_rx_handler_register(dev, macvlan_handle_frame);
> + if (err) {
> + rcu_assign_pointer(dev->macvlan_port, NULL);
> + kfree(port);
> + }
> +
> + return err;
> }
Rcu assign is not necessary here for because the hook didn't
get registered so there is no way for other CPU to see it.
--
--
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