Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8eac8bf authored by Niranjana Vishwanathapura's avatar Niranjana Vishwanathapura
Browse files

msm: emac: Modify default MTU



Set default MTU to standard 1500 bytes.
Larger MTU size will have more demand for memory
and can lower the performance in some platforms.

Change-Id: I983f3f6b70fbbd3e8dc941b2b15025cf96d250d0
Signed-off-by: default avatarNiranjana Vishwanathapura <nvishwan@codeaurora.org>
parent dc077d46
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
/* MSM EMAC Ethernet Controller driver.
 */

#include <linux/if_ether.h>
#include <linux/if_vlan.h>
#include <linux/interrupt.h>
#include <linux/ip.h>
@@ -1899,7 +1900,7 @@ static void emac_init_adapter(struct emac_adapter *adpt)
	adpt->num_rxdescs = EMAC_DEF_RX_DESCS;

	/* mtu */
	adpt->netdev->mtu = EMAC_MAX_JUMBO_PKT_SIZE;
	adpt->netdev->mtu = ETH_DATA_LEN;
	hw->mtu = adpt->netdev->mtu;
	max_frame = adpt->netdev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN;
	adpt->rxbuf_size = adpt->netdev->mtu > EMAC_DEF_RX_BUF_SIZE ?