[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201202202925.165803-1-prankgup@fb.com>
Date: Wed, 2 Dec 2020 12:29:23 -0800
From: Prankur gupta <prankgup@...com>
To: <bpf@...r.kernel.org>
CC: <kernel-team@...com>, <netdev@...r.kernel.org>
Subject: [PATCH v3 bpf-next 0/2] Add support to set window_clamp from bpf setsockops
This patch contains support to set tcp window_field field from bpf setsockops.
v2: Used TCP_WINDOW_CLAMP setsockopt logic for bpf_setsockopt (review comment addressed)
v3: Created a common function for duplicated code (review comment addressed)
Prankur gupta (2):
bpf: Adds support for setting window clamp
selftests/bpf: Add Userspace tests for TCP_WINDOW_CLAMP
include/net/tcp.h | 1 +
net/core/filter.c | 3 ++
net/ipv4/tcp.c | 23 ++++++++-----
tools/testing/selftests/bpf/bpf_tcp_helpers.h | 1 +
.../selftests/bpf/prog_tests/tcpbpf_user.c | 4 +++
.../selftests/bpf/progs/test_tcpbpf_kern.c | 33 +++++++++++++++++++
tools/testing/selftests/bpf/test_tcpbpf.h | 2 ++
7 files changed, 58 insertions(+), 9 deletions(-)
--
2.24.1
Powered by blists - more mailing lists