sunrpc: don't register UDP port with rpcbind when version needs congestion control
Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
5283b03ee5
commit
7259f1dfe7
|
@ -976,6 +976,13 @@ int svc_register(const struct svc_serv *serv, struct net *net,
|
||||||
if (vers->vs_hidden)
|
if (vers->vs_hidden)
|
||||||
continue;
|
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,
|
error = __svc_register(net, progp->pg_name, progp->pg_prog,
|
||||||
i, family, proto, port);
|
i, family, proto, port);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue