generic: ar8216: Enable jumbo frames on AR8327 by default
authorGabor Juhos <juhosg@openwrt.org>
Sun, 15 Dec 2013 22:18:04 +0000 (22:18 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 15 Dec 2013 22:18:04 +0000 (22:18 +0000)
This patch enables jumbo frames on AR8327 switch by default.
I have tested it on TP-Link TL-WDR3600.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 39076

target/linux/generic/files/drivers/net/phy/ar8216.c

index 02fa401066ae4c198e124c5056a815737e3dedfb..952dee27ecd66fd9de9c42b0fea724c3ce6c0ea6 100644 (file)
@@ -1230,9 +1230,9 @@ ar8327_init_globals(struct ar8xxx_priv *priv)
            (AR8327_PORTS_ALL << AR8327_FWD_CTRL1_BC_FLOOD_S);
        priv->write(priv, AR8327_REG_FWD_CTRL1, t);
 
-       /* setup MTU */
+       /* enable jumbo frames */
        ar8xxx_rmw(priv, AR8327_REG_MAX_FRAME_SIZE,
-                  AR8327_MAX_FRAME_SIZE_MTU, 1518 + 8 + 2);
+                  AR8327_MAX_FRAME_SIZE_MTU, 9018 + 8 + 2);
 
        /* Enable MIB counters */
        ar8xxx_reg_set(priv, AR8327_REG_MODULE_EN,