Go to file
Yauheni Kaliuta f9bc572e34 selftests/bpf: Test bpf_skc_to_mptcp_sock
Bugzilla: https://bugzilla.redhat.com/2120968

commit 3bc48b56e345e2ed83841dd08a00c6a9f112be6c
Author: Geliang Tang <geliang.tang@suse.com>
Date:   Thu May 19 16:30:13 2022 -0700

    selftests/bpf: Test bpf_skc_to_mptcp_sock
    
    This patch extends the MPTCP test base, to test the new helper
    bpf_skc_to_mptcp_sock().
    
    Define struct mptcp_sock in bpf_tcp_helpers.h, use bpf_skc_to_mptcp_sock
    to get the msk socket in progs/mptcp_sock.c and store the infos in
    socket_storage_map.
    
    Get the infos from socket_storage_map in prog_tests/mptcp.c. Add a new
    function verify_msk() to verify the infos of MPTCP socket, and rename
    verify_sk() to verify_tsk() to verify TCP socket only.
    
    v2: Add CONFIG_MPTCP check for clearer error messages
    
    v4:
     - use ASSERT_* instead of CHECK_FAIL (Andrii)
     - drop bpf_mptcp_helpers.h (Andrii)
    
    v5:
     - some 'ASSERT_*' were replaced in the next commit by mistake.
     - Drop CONFIG_MPTCP (Martin)
     - Use ASSERT_EQ (Andrii)
    
    Signed-off-by: Geliang Tang <geliang.tang@suse.com>
    Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
    Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
    Acked-by: Matthieu Baerts <matthieu.baerts@tessares.net>
    Link: https://lore.kernel.org/bpf/20220519233016.105670-5-mathew.j.martineau@linux.intel.com

Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>
2022-11-30 12:47:05 +02:00
Documentation bpf, docs: Fix typo "respetively" to "respectively" 2022-11-30 12:47:01 +02:00
LICENSES LICENSES/dual/CC-BY-4.0: Git rid of "smart quotes" 2021-07-15 06:31:24 -06:00
arch bpf, x86: Attach a cookie to fentry/fexit/fmod_ret/lsm. 2022-11-30 12:47:03 +02:00
block blk-mq: avoid double ->queue_rq() because of early timeout 2022-11-04 10:52:11 +08:00
certs certs: Move load_certificate_list() to be with the asymmetric keys code 2022-06-23 11:32:02 +01:00
crypto crypto: af_alg - get rid of alg_memory_allocated 2022-11-08 17:10:55 +01:00
drivers bpf: Move rcu lock management out of BPF_PROG_RUN routines 2022-11-28 16:52:09 +02:00
fs Merge: Rebase rhel9 kernel kexec/kdump code to upstream kernel 6.0 2022-11-28 04:58:31 -05:00
include bpf: Add bpf_skc_to_mptcp_sock_proto 2022-11-30 12:47:05 +02:00
init Merge: BPF and XDP rebase to v5.18 2022-11-21 05:30:47 -05:00
ipc mm,hugetlb: remove mlock ulimit for SHM_HUGETLB 2022-10-12 07:27:31 -04:00
kernel bpf: Add bpf_skc_to_mptcp_sock_proto 2022-11-30 12:47:05 +02:00
lib bpf, tests: Add load store test case for tail call 2022-11-28 16:48:55 +02:00
mm mm, oom: do not trigger out_of_memory from the #PF 2022-11-15 21:29:36 -05:00
net bpf: Add bpf_skc_to_mptcp_sock_proto 2022-11-30 12:47:05 +02:00
redhat [redhat] kernel-5.14.0-202.el9 2022-11-28 04:59:28 -05:00
samples samples/bpf: Detach xdp prog when program exits unexpectedly in xdp_rxq_info_user 2022-11-30 12:47:00 +02:00
scripts bpf: Add bpf_skc_to_mptcp_sock_proto 2022-11-30 12:47:05 +02:00
security Merge: Rebase rhel9 kernel kexec/kdump code to upstream kernel 6.0 2022-11-28 04:58:31 -05:00
sound Merge: Update kernel's PCI subsystem to v6.0 2022-11-02 03:26:51 -04:00
tools selftests/bpf: Test bpf_skc_to_mptcp_sock 2022-11-30 12:47:05 +02:00
usr .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
virt KVM: Drop unnecessary initialization of "ops" in kvm_ioctl_create_device() 2022-10-25 13:53:38 +02:00
.clang-format clang-format: Update with the latest for_each macro list 2021-05-12 23:32:39 +02:00
.cocciconfig
.get_maintainer.conf get_maintainer.conf: Update with new location of RHMAINTAINERS 2022-01-19 14:26:16 -05:00
.get_maintainer.ignore
.gitattributes gitattributes: Remove unnecesary export restrictions 2021-08-30 10:50:35 -04:00
.gitignore gitlab: Add CI job for packaging scripts 2021-08-30 10:49:13 -04:00
.gitlab-ci.yml Merge: Updates for automotive_full pipeline 2022-11-23 02:46:02 -05:00
.mailmap mailmap: remove my redhat.com address from RHEL9's .mailmap file 2022-09-26 09:34:38 -04:00
COPYING
CREDITS MAINTAINERS: move Murali Karicheri to credits 2021-04-29 15:47:30 -07:00
Kbuild
Kconfig Introduce CONFIG_RH_DISABLE_DEPRECATED 2021-08-30 10:50:55 -04:00
Kconfig.redhat Rename RH_DISABLE_DEPRECATED to RHEL_DIFFERENCES 2021-08-30 14:29:36 -04:00
MAINTAINERS selftests/bpf: Add MPTCP test base 2022-11-30 12:47:05 +02:00
Makefile objtool: Add CONFIG_OBJTOOL 2022-10-27 15:26:51 -04:00
Makefile.rhelver [redhat] kernel-5.14.0-202.el9 2022-11-28 04:59:28 -05:00
README
makefile redhat: Change Makefile target names to dist- 2021-08-30 10:50:11 -04:00

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.