Return-Path: Subject: Re: [PATCH bluetooth-next 07/10] ipv6: introduce neighbour discovery ops To: linux-wpan@vger.kernel.org References: <1460977108-4675-1-git-send-email-aar@pengutronix.de> <1460977108-4675-8-git-send-email-aar@pengutronix.de> Cc: kernel@pengutronix.de, marcel@holtmann.org, jukka.rissanen@linux.intel.com, hannes@stressinduktion.org, stefan@osg.samsung.com, mcr@sandelman.ca, werner@almesberger.net, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, "David S . Miller" , Alexey Kuznetsov , James Morris , Hideaki YOSHIFUJI , Patrick McHardy From: Alexander Aring Message-ID: <5714E0E2.7040004@pengutronix.de> Date: Mon, 18 Apr 2016 15:28:02 +0200 MIME-Version: 1.0 In-Reply-To: <1460977108-4675-8-git-send-email-aar@pengutronix.de> Content-Type: text/plain; charset=iso-8859-15 Sender: netdev-owner@vger.kernel.org List-ID: Hi, Am 04/18/2016 um 12:58 PM schrieb Alexander Aring: > This patch introduces neighbour discovery ops callback structure. The > structure contains at first receive and transmit handling for NS/NA and > userspace option field functionality. > > These callback offers 6lowpan different handling, such as 802.15.4 short > address handling or RFC6775 (Neighbor Discovery Optimization for IPv6 over > 6LoWPANs). > > Cc: David S. Miller > Cc: Alexey Kuznetsov > Cc: James Morris > Cc: Hideaki YOSHIFUJI > Cc: Patrick McHardy > Signed-off-by: Alexander Aring > --- > include/linux/netdevice.h | 3 ++ > include/net/ndisc.h | 73 ++++++++++++++++++++++++++++++++++++++++++----- > net/ipv6/addrconf.c | 1 + > net/ipv6/ndisc.c | 71 +++++++++++++++++++++++++++++++-------------- > net/ipv6/route.c | 2 +- > 5 files changed, 121 insertions(+), 29 deletions(-) > > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h > index 0052c42..4f1b3f2 100644 > --- a/include/linux/netdevice.h > +++ b/include/linux/netdevice.h > @@ -1677,6 +1677,9 @@ struct net_device { > #ifdef CONFIG_NET_L3_MASTER_DEV > const struct l3mdev_ops *l3mdev_ops; > #endif > +#ifdef CONFIG_IPV6 > + const struct ndisc_ops *ndisc_ops; > +#endif Need to change it to: #if IS_ENABLED(CONFIG_IPV6) as well also on other configs which can be builded as tristate. Sorry for the noise, I will fix that in v2. :-) - Alex