From ed33e9dab87e2d32792e0ad28b2d0885acb869c9 Mon Sep 17 00:00:00 2001 From: kevlo Date: Sat, 3 Feb 2007 07:46:26 +0000 Subject: ether_ifattach() sets if_mtu to ETHERMTU, don't bother set it again. Approved by: imp, cognet --- sys/arm/at91/if_ate.c | 1 - sys/arm/xscale/ixp425/if_npe.c | 1 - 2 files changed, 2 deletions(-) (limited to 'sys') diff --git a/sys/arm/at91/if_ate.c b/sys/arm/at91/if_ate.c index 79530d1..16b13a0 100644 --- a/sys/arm/at91/if_ate.c +++ b/sys/arm/at91/if_ate.c @@ -203,7 +203,6 @@ ate_attach(device_t dev) ifp->if_softc = sc; if_initname(ifp, device_get_name(dev), device_get_unit(dev)); - ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_capabilities |= IFCAP_VLAN_MTU; ifp->if_capenable |= IFCAP_VLAN_MTU; /* the hw bits already set */ diff --git a/sys/arm/xscale/ixp425/if_npe.c b/sys/arm/xscale/ixp425/if_npe.c index db4afb9..8f8babe 100644 --- a/sys/arm/xscale/ixp425/if_npe.c +++ b/sys/arm/xscale/ixp425/if_npe.c @@ -325,7 +325,6 @@ npe_attach(device_t dev) ifp->if_softc = sc; if_initname(ifp, device_get_name(dev), device_get_unit(dev)); - ifp->if_mtu = ETHERMTU; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_start = npestart; ifp->if_ioctl = npeioctl; -- cgit v1.1