Home
last modified time | relevance | path

Searched refs:if_getmtu (Results 1 – 25 of 81) sorted by relevance

1234

/freebsd/sys/dev/iicbus/
H A Dif_ic.c243 ifr->ifr_mtu = if_getmtu(sc->ic_ifp); in icioctl()
322 if (sc->ic_xfercnt >= if_getmtu(sc->ic_ifp) + ICHDRLEN) { in icintr()
386 if (len + mm->m_len > if_getmtu(sc->ic_ifp)) { in icoutput()
/freebsd/sys/dev/cxgbe/iw_cxgbe/
H A Dprovider.c354 if (if_getmtu(ifp) >= 4096) in c4iw_query_port()
356 else if (if_getmtu(ifp) >= 2048) in c4iw_query_port()
358 else if (if_getmtu(ifp) >= 1024) in c4iw_query_port()
360 else if (if_getmtu(ifp) >= 512) in c4iw_query_port()
/freebsd/sys/dev/ppbus/
H A Dif_plip.c377 sc->sc_ifbuf = malloc(if_getmtu(sc->sc_ifp) + MLPIPHDRLEN, in lpinit_locked()
443 ifr->ifr_mtu = if_getmtu(sc->sc_ifp); in lpioctl()
544 if (len > if_getmtu(sc->sc_ifp) + MLPIPHDRLEN) in lp_intr()
587 len = if_getmtu(sc->sc_ifp) + LPIPHDRLEN; in lp_intr()
/freebsd/sys/ofed/drivers/infiniband/ulp/ipoib/
H A Dipoib_main.c221 if (if_getmtu(ifp) == new_mtu) in ipoib_propagate_ifnet_mtu()
622 switch (roundup_pow_of_two(if_getmtu(dev) + IPOIB_ENCAP_LEN)) { in path_rec_start()
989 priv->mcast_mtu = priv->admin_mtu = if_getmtu(priv->dev); in ipoib_add_port()
1316 priv->mcast_mtu = priv->admin_mtu = if_getmtu(parent->dev); in ipoib_config_vlan()
/freebsd/sys/dev/re/
H A Dif_re.c1926 if (if_getmtu(sc->rl_ifp) > RL_MTU && in re_discard_rxbuf()
2178 if (if_getmtu(ifp) > RL_MTU && (sc->rl_flags & RL_FLAG_JUMBOV2) != 0) in re_rxeof()
3115 if (if_getmtu(ifp) > RL_MTU) { in re_init_locked()
3133 re_set_jumbo(sc, if_getmtu(ifp) > RL_MTU); in re_init_locked()
3142 if (if_getmtu(ifp) > RL_MTU) in re_init_locked()
3182 if (if_getmtu(ifp) > RL_TSO_MTU && (if_getcapenable(ifp) & IFCAP_TSO4) != 0) { in re_init_locked()
3326 if (if_getmtu(ifp) > RL_MTU) in re_init_locked()
3418 if (if_getmtu(ifp) != ifr->ifr_mtu) { in re_ioctl()
3425 if (if_getmtu(ifp) > RL_TSO_MTU && in re_ioctl()
3512 if (if_getmtu(ifp) > RL_TSO_MTU && in re_ioctl()
[all …]
/freebsd/sys/dev/mii/
H A Dbrgphy.c1012 brgphy_jumbo_settings(sc, if_getmtu(ifp)); in brgphy_reset()
1121 brgphy_jumbo_settings(sc, if_getmtu(ifp)); in brgphy_reset()
1125 brgphy_jumbo_settings(sc, if_getmtu(ifp)); in brgphy_reset()
H A Dtruephy.c263 if (TRUEPHY_FRAMELEN((if_getmtu(sc->mii_pdata->mii_ifp)) > 2048)) { in truephy_reset()
/freebsd/sys/net/
H A Dethernet.h36 (if_getmtu(ifp) + ETHER_HDR_LEN + \
/freebsd/sys/compat/linsysfs/
H A Dlinsysfs_net.c162 error = sbuf_printf(sb, "%u\n", if_getmtu(ifp)); in linsysfs_if_mtu()
/freebsd/sys/dev/qlxgbe/
H A Dql_os.c872 ha->max_frame_size = if_getmtu(ifp) + ETHER_HDR_LEN + ETHER_CRC_LEN; in qla_init_ifnet()
1076 if_getmtu(ifp) + ETHER_HDR_LEN + ETHER_CRC_LEN; in qla_ioctl()
1080 ha->max_frame_size, if_getmtu(ifp), 0); in qla_ioctl()
1086 if (if_getmtu(ifp) > ETHERMTU) in qla_ioctl()
1112 ha->max_frame_size = if_getmtu(ifp) + in qla_ioctl()
/freebsd/sys/dev/usb/net/
H A Dif_ure.c1082 reg = URE_8153_RX_BUFSZ - (URE_FRAMELEN(if_getmtu(ifp)) + in ure_init()
1088 reg = URE_8153_RX_BUFSZ - (URE_FRAMELEN(if_getmtu(ifp)) + in ure_init()
1096 reg = URE_8156_RX_BUFSZ - (URE_FRAMELEN(if_getmtu(ifp)) + in ure_init()
1495 if (if_getmtu(ifp) != ifr->ifr_mtu) in ure_ioctl()
1912 val = if_getmtu(ifp); in ure_rtl8153b_nic_reset()
/freebsd/sys/dev/axgbe/
H A Dxgbe-txrx.c140 max_len = if_getmtu(pdata->netdev) + ETH_HLEN; in axgbe_calculate_tx_parms()
/freebsd/sys/dev/qlxge/
H A Dqls_os.c733 ha->max_frame_size = if_getmtu(ifp) + ETHER_HDR_LEN + ETHER_CRC_LEN; in qls_init_ifnet()
896 if_getmtu(ifp) + ETHER_HDR_LEN + ETHER_CRC_LEN; in qls_ioctl()
922 ha->max_frame_size = if_getmtu(ifp) + in qls_ioctl()
/freebsd/sys/dev/qlxgb/
H A Dqla_os.c674 ha->max_frame_size = if_getmtu(ifp) + ETHER_HDR_LEN + ETHER_CRC_LEN; in qla_init_ifnet()
824 if_getmtu(ifp) + ETHER_HDR_LEN + ETHER_CRC_LEN; in qla_ioctl()
853 ha->max_frame_size = if_getmtu(ifp) + in qla_ioctl()
/freebsd/sys/dev/ixl/
H A Dixl_iw.c167 pf_info->mtu = if_getmtu(pf->vsi.ifp); in ixl_iw_pf_init()
/freebsd/sys/dev/cxgbe/
H A Dt4_sched.c178 if (!in_range(p->pktsize, 64, if_getmtu(pi->vi[0].ifp))) in set_sched_class_params()
509 pktsize = if_getmtu(pi->vi[0].ifp); in t4_reserve_cl_rl_kbps()
957 * limits depend on the burstsize, pktsize (if_getmtu(ifp) ultimately) and in cxgbe_ratelimit_query()
/freebsd/sys/dev/sk/
H A Dif_sk.c1052 else if (if_getmtu(ifp) != ifr->ifr_mtu) { in sk_ioctl()
2995 if (if_getmtu(ifp0) > SK_MAX_FRAMELEN) in sk_intr()
3162 if (if_getmtu(ifp) > SK_MAX_FRAMELEN) { in sk_init_xmac()
3300 if (if_getmtu(ifp) > SK_MAX_FRAMELEN) in sk_init_yukon()
3470 if (if_getmtu(ifp) > SK_MAX_FRAMELEN) { in sk_init_locked()
3489 if (if_getmtu(ifp) > SK_MAX_FRAMELEN) in sk_init_locked()
/freebsd/sys/dev/liquidio/
H A Dlio_ioctl.c406 lio_dev_info(oct, "MTU Changed from %d to %d\n", if_getmtu(ifp), in lio_change_mtu()
/freebsd/sys/dev/bnxt/bnxt_en/
H A Dbnxt_mgmt.c359 dev_info.nic_info.mtu = if_getmtu(ifp); in bnxt_mgmt_get_dev_info()
/freebsd/sys/dev/ath/
H A Dif_ath_tdma.c291 if_getmtu(vap->iv_ifp) + IEEE80211_MAXOVERHEAD, rix, AH_TRUE, in ath_tdma_config()
/freebsd/sys/dev/ale/
H A Dif_ale.c1958 else if (if_getmtu(ifp) != ifr->ifr_mtu) { in ale_ioctl()
2703 if (if_getmtu(ifp) < ETHERMTU) in ale_init_locked()
2706 sc->ale_max_frame_size = if_getmtu(ifp); in ale_init_locked()
2729 if (if_getmtu(ifp) < ETHERMTU) in ale_init_locked()
2731 else if (if_getmtu(ifp) < 6 * 1024) in ale_init_locked()
/freebsd/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_rx.c344 int eff_mtu = if_getmtu(dev) + ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN + in mlx4_en_calc_rx_buf()
348 en_err(priv, "MTU(%u) is too big\n", (unsigned)if_getmtu(dev)); in mlx4_en_calc_rx_buf()
/freebsd/sys/dev/neta/
H A Dif_mvneta.c1148 reg |= MVNETA_PMACC0_FRAMESIZELIMIT(if_getmtu(ifp) + MVNETA_ETHER_SIZE); in mvneta_initreg()
2082 if (if_getmtu(ifp) > sc->tx_csum_limit && in mvneta_ioctl()
2136 if (if_getmtu(ifp) + MVNETA_ETHER_SIZE <= MCLBYTES) { in mvneta_ioctl()
2141 if (if_getmtu(ifp) > sc->tx_csum_limit) { in mvneta_ioctl()
2217 reg |= MVNETA_PMACC0_FRAMESIZELIMIT(if_getmtu(ifp) + MVNETA_ETHER_SIZE); in mvneta_init_locked()
/freebsd/sys/dev/e1000/
H A Dif_em.c3152 if ((hw->mac.type == e1000_82575) && (if_getmtu(ifp) > ETHERMTU)) { in em_reset()
3220 if (if_getmtu(ifp) > ETHERMTU) { in em_reset()
3242 if (if_getmtu(ifp) > ETHERMTU) in em_reset()
3264 if (if_getmtu(ifp) > ETHERMTU) { in em_reset()
3803 if (if_getmtu(ifp) > ETHERMTU) in em_initialize_receive_unit()
3910 hw->mac.type == e1000_ich10lan) && if_getmtu(ifp) > ETHERMTU) { in em_initialize_receive_unit()
3925 if (if_getmtu(ifp) > ETHERMTU) { in em_initialize_receive_unit()
3985 if (if_getmtu(ifp) > ETHERMTU) in em_initialize_receive_unit()
/freebsd/sys/dev/msk/
H A Dif_msk.c1069 else if (if_getmtu(ifp) != ifr->ifr_mtu) { in msk_ioctl()
1159 if (if_getmtu(ifp) > ETHERMTU && in msk_ioctl()
3735 if (if_getmtu(ifp) > ETHERMTU) { in msk_set_tx_stfwd()
3784 if (if_getmtu(ifp) < ETHERMTU) in msk_init_locked()
3787 sc_if->msk_framesize = if_getmtu(ifp); in msk_init_locked()
3789 if (if_getmtu(ifp) > ETHERMTU && in msk_init_locked()
3834 if (if_getmtu(ifp) > ETHERMTU) in msk_init_locked()

1234