diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2014-09-12 23:12:46 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-13 17:37:15 -0400 |
commit | 3fc8867740b4a0bf56f372c6f5ddd14970962fb1 (patch) | |
tree | 1fab7c33ce22cff7aff0f47f300f646b6f6cd171 /include/linux | |
parent | 5879823fc66decc1c0416cad6cd506adbbda6a7f (diff) |
netdevice: Support DSA tagging when DSA is built as a module
This change corrects an error seen when DSA tagging is built as a module.
Without this change it is not possible to get XDSA tagged frames as the
test for tagging is stripped by the #ifdef check.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/netdevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index ee38b948d9a0..f9e81d10a3b9 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -1789,7 +1789,7 @@ void dev_net_set(struct net_device *dev, struct net *net) static inline bool netdev_uses_dsa(struct net_device *dev) { -#ifdef CONFIG_NET_DSA +#if IS_ENABLED(CONFIG_NET_DSA) if (dev->dsa_ptr != NULL) return dsa_uses_tagged_protocol(dev->dsa_ptr); #endif |