[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130828091329.32065ec2@nehalam.linuxnetplumber.net>
Date: Wed, 28 Aug 2013 09:13:29 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Cong Wang <amwang@...hat.com>
Cc: netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>,
David Stevens <dlstevens@...ibm.com>
Subject: Re: [PATCH net-next v10 09/11] vxlan: add ipv6 proxy support
On Wed, 28 Aug 2013 13:22:57 +0800
Cong Wang <amwang@...hat.com> wrote:
> +#if IS_ENABLED(CONFIG_IPV6)
> +static int neigh_reduce(struct net_device *dev, struct sk_buff *skb)
> +{
> + struct vxlan_dev *vxlan = netdev_priv(dev);
> + struct neighbour *n;
> + union vxlan_addr ipa;
> + const struct ipv6hdr *iphdr;
> + const struct in6_addr *saddr, *daddr;
> + struct nd_msg *msg;
> + struct inet6_dev *in6_dev = NULL;
> +
> + WARN_ON(!rcu_read_lock_held() && !rcu_read_lock_bh_held());
You may have needed warn during debugging, but you should be able
to audit all the codepaths (this is a static function) to be sure
that this code is correct (ie rcu lock always held).
--
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