1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-11-18 22:43:53 +01:00

let 802.1q tagged frames go in and out from cpmac (#6730)

SVN-Revision: 20023
This commit is contained in:
Florian Fainelli 2010-03-06 22:33:30 +00:00
parent ac0b6ee559
commit 876105bf8b
2 changed files with 22 additions and 0 deletions

@ -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 */

@ -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 */