don't call in_ratelmit detach when RATELIMIT is not

compiled in the kernel.
This commit is contained in:
rrs 2019-09-24 20:11:55 +00:00
parent b84f1569d1
commit 5c5e5b0ec5

View File

@ -14784,10 +14784,12 @@ bbr_set_sockopt(struct socket *so, struct sockopt *sopt,
bbr->bbr_attempt_hdwr_pace = 0;
} else {
bbr->bbr_hdw_pace_ena = 0;
#ifdef RATELIMIT
if (bbr->bbr_hdrw_pacing) {
bbr->bbr_hdrw_pacing = 0;
in_pcbdetach_txrtlmt(bbr->rc_inp);
}
#endif
}
break;