]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
This commit expands tcp_ratelimit to be able to handle cards
authorrrs <rrs@FreeBSD.org>
Wed, 26 Feb 2020 13:48:33 +0000 (13:48 +0000)
committerrrs <rrs@FreeBSD.org>
Wed, 26 Feb 2020 13:48:33 +0000 (13:48 +0000)
commitcac424b2914736ad0b7958cbcd0cb2a876d8fcde
tree8b639f9e665deca877725af8ead3b57ccb694f71
parent7eb60bc21c7828533af68925dc4ad8e2f83b1794
This commit expands tcp_ratelimit to be able to handle cards
like the mlx-c5 and c6 that require a "setup" routine before
the tcp_ratelimit code can declare and use a rate. I add the
setup routine to if_var as well as fix tcp_ratelimit to call it.
I also revisit the rates so that in the case of a mlx card
of type c5/6 we will use about 100 rates concentrated in the range
where the most gain can be had (1-200Mbps). Note that I have
tested these on a c5 and they work and perform well. In fact
in an unloaded system they pace right to the correct rate (great
job mlx!). There will be a further commit here from Hans that
will add the respective changes to the mlx driver to support this
work (which I was testing with).

Sponsored by: Netflix Inc.
Differential Revision: ttps://reviews.freebsd.org/D23647
sys/net/if_var.h
sys/netinet/tcp_ratelimit.c
sys/netinet/tcp_ratelimit.h