From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Fastabend Subject: [bpf-next v2 0/3] sockmap, bpf_msg_push_data helper Date: Fri, 19 Oct 2018 19:56:48 -0700 Message-ID: <1540004211-7647-1-git-send-email-john.fastabend@gmail.com> Cc: john.fastabend@gmail.com, netdev@vger.kernel.org To: ast@kernel.org, daniel@iogearbox.net Return-path: Received: from mail-it1-f195.google.com ([209.85.166.195]:52372 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726604AbeJTLFz (ORCPT ); Sat, 20 Oct 2018 07:05:55 -0400 Received: by mail-it1-f195.google.com with SMTP id 134-v6so6455346itz.2 for ; Fri, 19 Oct 2018 19:57:05 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: This series adds a new helper bpf_msg_push_data to be used by sk_msg programs. The helper can be used to insert extra bytes into the message that can then be used by the program as metadata tags among other things. The first patch adds the helper, second patch the libbpf support, and last patch updates test_sockmap to run msg_push_data tests. v2: rebase after queue map and in filter.c convert int -> u32 John Fastabend (3): bpf: sk_msg program helper bpf_msg_push_data bpf: libbpf support for msg_push_data bpf: test_sockmap add options to use msg_push_data include/linux/skmsg.h | 5 + include/uapi/linux/bpf.h | 20 +++- net/core/filter.c | 134 ++++++++++++++++++++++++ tools/include/uapi/linux/bpf.h | 20 +++- tools/testing/selftests/bpf/bpf_helpers.h | 2 + tools/testing/selftests/bpf/test_sockmap.c | 58 +++++++++- tools/testing/selftests/bpf/test_sockmap_kern.h | 97 +++++++++++++---- 7 files changed, 308 insertions(+), 28 deletions(-) -- 1.9.1