summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJason Jin <Jason.jin@freescale.com>2012-10-12 16:59:47 +0800
committerAndy Voltz <andy.voltz@timesys.com>2012-10-17 14:37:26 -0400
commit7974a95ddfa0ad24e6d3684f350b7bfd84feb816 (patch)
tree780cca7aeca872dea59814dcdf9b1c8396a87536 /net
parente6610495a8c388f60c129dffd264141ef304508d (diff)
ENGR00216078-2: switch: add L2 switch driver for Vybrid3.0-mvf-201210121659
Port the L2 switch driver from CF platform for Vybridi plaform. This driver usually should work together with the RSTP demo applications provided by fsl. Signed-off-by: Alison Wang <b18965@freescale.com> Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Diffstat (limited to 'net')
-rw-r--r--net/core/dev.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index f14f6015a7ab..3b07343de83e 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -4876,6 +4876,10 @@ static int dev_ifsioc(struct net *net, struct ifreq *ifr, unsigned int cmd)
default:
if ((cmd >= SIOCDEVPRIVATE &&
cmd <= SIOCDEVPRIVATE + 15) ||
+#if defined(CONFIG_FSL_L2_SWITCH)
+ (cmd >= 0x9101 &&
+ cmd <= 0x92ff) ||
+#endif
cmd == SIOCBONDENSLAVE ||
cmd == SIOCBONDRELEASE ||
cmd == SIOCBONDSETHWADDR ||
@@ -5068,6 +5072,10 @@ int dev_ioctl(struct net *net, unsigned int cmd, void __user *arg)
*/
default:
if (cmd == SIOCWANDEV ||
+#if defined(CONFIG_FSL_L2_SWITCH)
+ (cmd >= 0x9101 &&
+ cmd <= 0x92ff) ||
+#endif
(cmd >= SIOCDEVPRIVATE &&
cmd <= SIOCDEVPRIVATE + 15)) {
dev_load(net, ifr.ifr_name);