From 876105bf8b0895ac184d0ed9ec3d508cb6759343 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sat, 6 Mar 2010 22:33:30 +0000 Subject: [PATCH] let 802.1q tagged frames go in and out from cpmac (#6730) SVN-Revision: 20023 --- .../ar7/patches-2.6.30/950-cpmac_allow_vlan.patch | 11 +++++++++++ .../ar7/patches-2.6.32/960-cpmac_allow_vlan.patch | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 target/linux/ar7/patches-2.6.30/950-cpmac_allow_vlan.patch create mode 100644 target/linux/ar7/patches-2.6.32/960-cpmac_allow_vlan.patch diff --git a/target/linux/ar7/patches-2.6.30/950-cpmac_allow_vlan.patch b/target/linux/ar7/patches-2.6.30/950-cpmac_allow_vlan.patch new file mode 100644 index 0000000000..022da4fab5 --- /dev/null +++ b/target/linux/ar7/patches-2.6.30/950-cpmac_allow_vlan.patch @@ -0,0 +1,11 @@ +--- a/drivers/net/cpmac.c 2010-02-11 23:52:19.000000000 +0000 ++++ b/drivers/net/cpmac.c 2010-02-20 20:32:58.000000000 +0000 +@@ -57,7 +57,7 @@ + + #define CPMAC_VERSION "0.5.0" + /* frame size + 802.1q tag */ +-#define CPMAC_SKB_SIZE (ETH_FRAME_LEN + 4) ++#define CPMAC_SKB_SIZE (ETH_FRAME_LEN + ETH_FCS_LEN + 4) + #define CPMAC_QUEUES 8 + + /* Ethernet registers */ diff --git a/target/linux/ar7/patches-2.6.32/960-cpmac_allow_vlan.patch b/target/linux/ar7/patches-2.6.32/960-cpmac_allow_vlan.patch new file mode 100644 index 0000000000..022da4fab5 --- /dev/null +++ b/target/linux/ar7/patches-2.6.32/960-cpmac_allow_vlan.patch @@ -0,0 +1,11 @@ +--- a/drivers/net/cpmac.c 2010-02-11 23:52:19.000000000 +0000 ++++ b/drivers/net/cpmac.c 2010-02-20 20:32:58.000000000 +0000 +@@ -57,7 +57,7 @@ + + #define CPMAC_VERSION "0.5.0" + /* frame size + 802.1q tag */ +-#define CPMAC_SKB_SIZE (ETH_FRAME_LEN + 4) ++#define CPMAC_SKB_SIZE (ETH_FRAME_LEN + ETH_FCS_LEN + 4) + #define CPMAC_QUEUES 8 + + /* Ethernet registers */ -- 2.30.2