Lines Matching defs:mtu
101 uint32_t *mtu);
102 static int vsw_mtu_update(vsw_t *vswp, uint32_t mtu);
196 uint32_t vsw_ethermtu = 1500; /* mtu of the device */
449 static char vsw_mtu_propname[] = "mtu";
1099 macp->m_max_sdu = vswp->mtu;
1777 /* read mtu */
1778 vsw_mtu_read(vswp, mdp, node, &vswp->mtu);
1779 if (vswp->mtu < ETHERMTU || vswp->mtu > VNET_MAX_MTU) {
1780 vswp->mtu = ETHERMTU;
1782 vswp->max_frame_size = vswp->mtu + sizeof (struct ether_header) +
1986 vsw_mtu_read(vsw_t *vswp, md_t *mdp, mde_cookie_t node, uint32_t *mtu)
1999 *mtu = vsw_ethermtu;
2002 *mtu = val & 0xFFFF;
2004 mtu_propname, inst, *mtu);
2009 * Update the mtu of the vsw device. We first check if the device has been
2010 * plumbed and if so fail the mtu update. Otherwise, we continue to update the
2011 * new mtu and reset all ports to initiate handshake re-negotiation with peers
2012 * using the new mtu.
2015 vsw_mtu_update(vsw_t *vswp, uint32_t mtu)
2025 cmn_err(CE_NOTE, "!vsw%d: Unable to process mtu update"
2032 __func__, vswp->mtu, mtu);
2034 vswp->mtu = mtu;
2035 vswp->max_frame_size = vswp->mtu +
2038 rv = mac_maxsdu_update(vswp->if_mh, mtu);
2041 "!vsw%d: Unable to update mtu with mac"
2047 /* Reset ports to renegotiate with the new mtu */
2150 uint32_t mtu;
2249 /* Read mtu */
2250 vsw_mtu_read(vswp, mdp, node, &mtu);
2251 if (mtu != vswp->mtu) {
2252 if (mtu >= ETHERMTU && mtu <= VNET_MAX_MTU) {
2255 cmn_err(CE_NOTE, "!vsw%d: Unable to process mtu update"
2257 vswp->instance, mtu);
2352 /* Update mtu */
2354 rv = vsw_mtu_update(vswp, mtu);