Author: blogic
Date: 2015-12-23 19:24:43 +0100 (Wed, 23 Dec 2015)
New Revision: 47993

Modified:
   
trunk/target/linux/lantiq/patches-4.1/0025-NET-MIPS-lantiq-adds-xrx200-net.patch
Log:
lantiq: disable SW_PORTMAP usage in the ethernet driver

using the special tag in this way lead to port mirroring for certain types of 
traffic.
fallback to using th PMAC_EWAN register for the wan portmap.

Signed-off-by: John Crispin <[email protected]>

Modified: 
trunk/target/linux/lantiq/patches-4.1/0025-NET-MIPS-lantiq-adds-xrx200-net.patch
===================================================================
--- 
trunk/target/linux/lantiq/patches-4.1/0025-NET-MIPS-lantiq-adds-xrx200-net.patch
    2015-12-23 17:13:04 UTC (rev 47992)
+++ 
trunk/target/linux/lantiq/patches-4.1/0025-NET-MIPS-lantiq-adds-xrx200-net.patch
    2015-12-23 18:24:43 UTC (rev 47993)
@@ -16,7 +16,7 @@
 
 --- a/drivers/net/ethernet/Kconfig
 +++ b/drivers/net/ethernet/Kconfig
-@@ -101,7 +101,13 @@ config LANTIQ_ETOP
+@@ -101,7 +101,13 @@
        tristate "Lantiq SoC ETOP driver"
        depends on SOC_TYPE_XWAY
        ---help---
@@ -33,7 +33,7 @@
  source "drivers/net/ethernet/mellanox/Kconfig"
 --- a/drivers/net/ethernet/Makefile
 +++ b/drivers/net/ethernet/Makefile
-@@ -43,6 +43,7 @@ obj-$(CONFIG_IP1000) += icplus/
+@@ -43,6 +43,7 @@
  obj-$(CONFIG_JME) += jme.o
  obj-$(CONFIG_KORINA) += korina.o
  obj-$(CONFIG_LANTIQ_ETOP) += lantiq_etop.o
@@ -209,7 +209,7 @@
 +};
 --- /dev/null
 +++ b/drivers/net/ethernet/lantiq_xrx200.c
-@@ -0,0 +1,1798 @@
+@@ -0,0 +1,1797 @@
 +/*
 + *   This program is free software; you can redistribute it and/or modify it
 + *   under the terms of the GNU General Public License version 2 as published
@@ -248,7 +248,7 @@
 +
 +#define SW_POLLING
 +#define SW_ROUTING
-+#define SW_PORTMAP
++/* #define SW_PORTMAP */
 +
 +#ifdef SW_ROUTING
 +  #ifdef SW_PORTMAP
@@ -941,7 +941,6 @@
 +
 +static int xrx200_set_port_attr(struct switch_dev *dev, const struct 
switch_attr *attr, struct switch_val *val)
 +{
-+      printk("%s %s(%d)\n", __FILE__, __func__, __LINE__);
 +      if (val->port_vlan >= XRX200_MAX_PORT)
 +              return -EINVAL;
 +
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to