Skip to content

Commit

Permalink
net: remove SK_RECLAIM_THRESHOLD and SK_RECLAIM_CHUNK
Browse files Browse the repository at this point in the history
There are no more users for the mentioned macros, just
drop them.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Paolo Abeni authored and David S. Miller committed Jul 1, 2022
1 parent 69d93da commit e918c13
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions include/net/sock.h
Original file line number Diff line number Diff line change
Expand Up @@ -1619,11 +1619,6 @@ static inline void sk_mem_charge(struct sock *sk, int size)
sk->sk_forward_alloc -= size;
}

/* the following macros control memory reclaiming in mptcp_rmem_uncharge()
*/
#define SK_RECLAIM_THRESHOLD (1 << 21)
#define SK_RECLAIM_CHUNK (1 << 20)

static inline void sk_mem_uncharge(struct sock *sk, int size)
{
if (!sk_has_account(sk))
Expand Down

0 comments on commit e918c13

Please sign in to comment.