aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/stmmac/common.h
diff options
context:
space:
mode:
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>2010-04-13 16:21:16 -0400
committerDavid S. Miller <davem@davemloft.net>2010-04-14 07:49:52 -0400
commit8f617541750e9b81ec50e31169e9994d7bc3aaae (patch)
treeccdf51a634fa63148812518eb98ff86131a59e44 /drivers/net/stmmac/common.h
parent3d90c508dc6737d5b241a1f8807e1287f015f7f8 (diff)
stmmac: fix vlan support setup
Moved STMMAC_VLAN_TAG_USED from stmmac.h to common.h header because it is used within the device and descriptor cores. Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/stmmac/common.h')
-rw-r--r--drivers/net/stmmac/common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/stmmac/common.h b/drivers/net/stmmac/common.h
index 27a05b443ec3..144f76fd3e39 100644
--- a/drivers/net/stmmac/common.h
+++ b/drivers/net/stmmac/common.h
@@ -23,6 +23,11 @@
23*******************************************************************************/ 23*******************************************************************************/
24 24
25#include <linux/netdevice.h> 25#include <linux/netdevice.h>
26#if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE)
27#define STMMAC_VLAN_TAG_USED
28#include <linux/if_vlan.h>
29#endif
30
26#include "descs.h" 31#include "descs.h"
27 32
28#undef CHIP_DEBUG_PRINT 33#undef CHIP_DEBUG_PRINT