Skip to content

Commit

Permalink
sunrpc: don't register UDP port with rpcbind when version needs conge…
Browse files Browse the repository at this point in the history
…stion control

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
Jeff Layton authored and J. Bruce Fields committed Feb 24, 2017
1 parent 5283b03 commit 7259f1d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions net/sunrpc/svc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7259f1d

Please sign in to comment.