mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-29 08:08:37 +00:00
This takes Warners suggested approach to making it so that
platforms that for whatever reason cannot include the RATELIMIT option can still work with rack. It adds two dummy functions that rack will call and find out that the highest hw supported b/w is 0 (which kinda makes sense and rack is already prepared to handle). Reviewed by: Michael Tuexen, Warner Losh Sponsored by: Netflix Inc Differential Revision: https://reviews.freebsd.org/D30163
This commit is contained in:
parent
aad59c79f5
commit
5a4333a537
@ -147,6 +147,20 @@ tcp_rel_pacing_rate(const struct tcp_hwrate_limit_table *crte,
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
static uint64_t inline
|
||||
tcp_hw_highest_rate(const struct tcp_hwrate_limit_table *rle)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
||||
static uint64_t inline
|
||||
tcp_hw_highest_rate_ifp(struct ifnet *ifp, struct inpcb *inp)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
/*
|
||||
* Given a b/w and a segsiz, and optional hardware
|
||||
|
Loading…
Reference in New Issue
Block a user