Lines Matching full:mtu
101 * Handle an MTU/fragmentation problem.
103 static void rxrpc_adjust_mtu(struct rxrpc_peer *peer, unsigned int mtu) in rxrpc_adjust_mtu() argument
105 /* wind down the local interface MTU */ in rxrpc_adjust_mtu()
106 if (mtu > 0 && peer->if_mtu == 65535 && mtu < peer->if_mtu) in rxrpc_adjust_mtu()
107 peer->if_mtu = mtu; in rxrpc_adjust_mtu()
109 if (mtu == 0) { in rxrpc_adjust_mtu()
111 mtu = peer->if_mtu; in rxrpc_adjust_mtu()
112 if (mtu > 1500) { in rxrpc_adjust_mtu()
113 mtu >>= 1; in rxrpc_adjust_mtu()
114 if (mtu < 1500) in rxrpc_adjust_mtu()
115 mtu = 1500; in rxrpc_adjust_mtu()
117 mtu -= 100; in rxrpc_adjust_mtu()
118 if (mtu < peer->hdrsize) in rxrpc_adjust_mtu()
119 mtu = peer->hdrsize + 4; in rxrpc_adjust_mtu()
123 if (mtu < peer->mtu) { in rxrpc_adjust_mtu()
125 peer->mtu = mtu; in rxrpc_adjust_mtu()
126 peer->maxdata = peer->mtu - peer->hdrsize; in rxrpc_adjust_mtu()