From: Gabor Juhos Date: Fri, 20 Dec 2013 11:41:23 +0000 (+0000) Subject: ar71xx: allow to use large ethernet frames on AR934x SoCs X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f2cd3399f729332fa3359266d57e441c9888cffe;p=openwrt%2Fstaging%2Frmilecki.git ar71xx: allow to use large ethernet frames on AR934x SoCs The hardware supports large ethernet frames. Override the maximum frame length and packet lenght mask in the platform data to allow to use large MTU on the ethernet interfaces. Limit the feature to AR934x SoCs for now. It should work on some other SoCs as well, but those has not been tested yet. Signed-off-by: Gabor Juhos SVN-Revision: 39149 --- diff --git a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c index 8b54d0c817f..da67478fe68 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include @@ -958,6 +959,9 @@ void __init ath79_register_eth(unsigned int id) pdata->has_gbit = 1; pdata->is_ar724x = 1; + pdata->max_frame_len = SZ_16K - 1; + pdata->desc_pktlen_mask = SZ_16K - 1; + if (!pdata->fifo_cfg1) pdata->fifo_cfg1 = 0x0010ffff; if (!pdata->fifo_cfg2)