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: Fri, 15 Nov 2013 06:26:05 +0100 From: Michal Kubecek <mkubecek@...e.cz> To: David Miller <davem@...emloft.net> Cc: vyasevich@...il.com, netdev@...r.kernel.org, kaber@...sh.net, john.r.fastabend@...el.com Subject: Re: [PATCH net v2 1/2] macvlan: introduce macvlan_dev_real_dev() helper function On Thu, Nov 14, 2013 at 05:03:58PM -0500, David Miller wrote: > >> On 11/14/2013 09:00 AM, Michal Kubecek wrote: > >> >+#if IS_ENABLED(CONFIG_MACVLAN) > >> >+static inline struct net_device * > >> >+macvlan_dev_real_dev(const struct net_device *dev) > >> >+{ > >> >+ struct macvlan_dev *macvlan = netdev_priv(dev); > >> >+ > >> >+ return macvlan->lowerdev; > >> >+} > >> >+#else > >> >+static inline struct net_device * > >> >+macvlan_dev_real_dev(const struct net_device *dev) > >> >+{ > >> >+ return NULL; > >> >+} > >> >+#endif > >> >+ > > At least for the time being use BUG(), to be consistent with the same > way how VLAN handles this situation. OK, v3 sent. Michal Kubecek -- 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