OSDN Git Service

tcp: define macros for a couple reclaim thresholds
authorPaolo Abeni <pabeni@redhat.com>
Tue, 26 Oct 2021 23:29:13 +0000 (16:29 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 Oct 2021 01:20:29 +0000 (18:20 -0700)
commit5823fc96d754d824bb298622055e8dd5e1252122
tree4580981d96cdbb330324800e1ba98989a7ec0c2f
parent9dfc685e0262d4c5e44e13302f89841fa75173ca
tcp: define macros for a couple reclaim thresholds

A following patch is going to implement a similar reclaim schema
for the MPTCP protocol, with different locking.

Let's define a couple of macros for the used thresholds, so
that the latter code will be more easily maintainable.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/sock.h