Changeset 47993


Ignore:
Timestamp:
2015-12-23T19:24:43+01:00 (2 years ago)
Author:
blogic
Message:

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 <blogic@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/lantiq/patches-4.1/0025-NET-MIPS-lantiq-adds-xrx200-net.patch

    r47766 r47993  
    1717--- a/drivers/net/ethernet/Kconfig 
    1818+++ b/drivers/net/ethernet/Kconfig 
    19 @@ -101,7 +101,13 @@ config LANTIQ_ETOP 
     19@@ -101,7 +101,13 @@ 
    2020        tristate "Lantiq SoC ETOP driver" 
    2121        depends on SOC_TYPE_XWAY 
     
    3434--- a/drivers/net/ethernet/Makefile 
    3535+++ b/drivers/net/ethernet/Makefile 
    36 @@ -43,6 +43,7 @@ obj-$(CONFIG_IP1000) += icplus/ 
     36@@ -43,6 +43,7 @@ 
    3737 obj-$(CONFIG_JME) += jme.o 
    3838 obj-$(CONFIG_KORINA) += korina.o 
     
    210210--- /dev/null 
    211211+++ b/drivers/net/ethernet/lantiq_xrx200.c 
    212 @@ -0,0 +1,1798 @@ 
     212@@ -0,0 +1,1797 @@ 
    213213+/* 
    214214+ *   This program is free software; you can redistribute it and/or modify it 
     
    249249+#define SW_POLLING 
    250250+#define SW_ROUTING 
    251 +#define SW_PORTMAP 
     251+/* #define SW_PORTMAP */ 
    252252+ 
    253253+#ifdef SW_ROUTING 
     
    942942+static int xrx200_set_port_attr(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) 
    943943+{ 
    944 +       printk("%s %s(%d)\n", __FILE__, __func__, __LINE__); 
    945944+       if (val->port_vlan >= XRX200_MAX_PORT) 
    946945+               return -EINVAL; 
Note: See TracChangeset for help on using the changeset viewer.