Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7259f1df authored by Jeff Layton's avatar Jeff Layton Committed by J. Bruce Fields
Browse files

sunrpc: don't register UDP port with rpcbind when version needs congestion control

parent 5283b03e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -976,6 +976,13 @@ int svc_register(const struct svc_serv *serv, struct net *net,
			if (vers->vs_hidden)
				continue;

			/*
			 * Don't register a UDP port if we need congestion
			 * control.
			 */
			if (vers->vs_need_cong_ctrl && proto == IPPROTO_UDP)
				continue;

			error = __svc_register(net, progp->pg_name, progp->pg_prog,
						i, family, proto, port);