Lines Matching defs:mtu

98 	uint32_t *mtu);
211 extern int vnet_mtu_update(vnet_t *vnetp, uint32_t mtu);
283 static char vgen_mtu_propname[] = "mtu";
311 uint32_t vgen_ldc_mtu = VGEN_LDC_MTU; /* ldc mtu */
1354 * Read the mtu. Note that we set the mtu of vnet device within
1357 vgen_mtu_read(vgenp, mdp, listp[i], &vnetp->mtu);
1358 if (vnetp->mtu < ETHERMTU || vnetp->mtu > VNET_MAX_MTU) {
1359 vnetp->mtu = ETHERMTU;
1361 vgenp->max_frame_size = vnetp->mtu +
1667 vgen_mtu_read(vgen_t *vgenp, md_t *mdp, mde_cookie_t node, uint32_t *mtu)
1678 *mtu = vnet_ethermtu;
1681 *mtu = val & 0xFFFF;
1683 vgenp->instance, *mtu);
1993 uint32_t mtu;
2015 /* Read mtu */
2016 vgen_mtu_read(vgenp, mdp, mdex, &mtu);
2017 if (mtu != vnetp->mtu) {
2018 if (mtu >= ETHERMTU && mtu <= VNET_MAX_MTU) {
2021 cmn_err(CE_NOTE, "!vnet%d: Unable to process mtu update"
2023 vnetp->instance, mtu);
2064 vnetp->mtu, mtu);
2066 rv = vnet_mtu_update(vnetp, mtu);
2068 vgenp->max_frame_size = mtu +
2494 attr.mtu = vgen_ldc_mtu;
3310 attrmsg.mtu = ldcp->local_hparams.mtu;
3689 * Support), set the mtu in our attributes to max_frame_size.
3691 lp->mtu = vgenp->max_frame_size;
3695 * Support) set the attr.mtu to ETHERMAX + VLAN_TAGSZ.
3697 lp->mtu = ETHERMAX + VLAN_TAGSZ;
3711 lp->mtu = ETHERMAX;
3842 ldcp->local_hparams.mtu = vgenp->max_frame_size;
4564 uint32_t mtu;
4570 rp->mtu = msg->mtu;
4651 * Validate mtu of the peer is at least ETHERMAX. Then, the mtu
4652 * is negotiated down to the minimum of our mtu and peer's mtu.
4654 if (msg->mtu < ETHERMAX) {
4658 mtu = MIN(msg->mtu, vgenp->max_frame_size);
4662 * that we sent, then check if the mtu computed
4663 * above matches the mtu that the peer had ack'd
4668 if (mtu != lp->mtu) {
4674 * Save the mtu computed above in our
4678 lp->mtu = mtu;
4681 /* save the MIN mtu in the msg to be replied */
4682 msg->mtu = mtu;
4685 /* versions < 1.4, mtu must match */
4686 if (msg->mtu != lp->mtu) {
4774 * our mtu (that we had sent in our attr info) and the
4775 * peer's mtu.
4778 * the peer, check if the mtu that was computed then
4779 * (saved in local hparams) matches the mtu that the
4784 if (lp->mtu != msg->mtu) {
4789 * If the mtu ack'd by the peer is > our mtu
4790 * fail handshake. Otherwise, save the mtu, so
4794 if (msg->mtu > lp->mtu) {
4797 if (msg->mtu <= lp->mtu) {
4798 lp->mtu = msg->mtu;
5337 if (size < ETHERMIN || size > lp->mtu) {