From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EEE6743256; Tue, 31 Oct 2023 23:09:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C836340294; Tue, 31 Oct 2023 23:09:26 +0100 (CET) Received: from mail-il1-f175.google.com (mail-il1-f175.google.com [209.85.166.175]) by mails.dpdk.org (Postfix) with ESMTP id 0169240285 for ; Tue, 31 Oct 2023 23:09:24 +0100 (CET) Received: by mail-il1-f175.google.com with SMTP id e9e14a558f8ab-35930447ae9so5327525ab.2 for ; Tue, 31 Oct 2023 15:09:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1698790164; x=1699394964; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=z/7HQyupJ3l1SHVsmhophmPEvbSg1OwsucdWpEbkWX4=; b=xnGdzsGlhO2mHA9zvvaM4bG2T876cOlJnyYEgb+00loYaQwFc1z5RoWmksxNQ0/w+O U77uH4Vpe4WBinCgfgwfp3AOak2gsKmzewIiJJaOh3YD0reAC2T0vAbHzWoD0wwbYpWp vjdXoiAOMINVQdQi0dGf8o+ysr3iVRAhqsNK4d5T55Su9QR9UDDj1Hptp7/iUtW6XnXS RgL8HZxju+MWZ2WH+H5zT/Sh1dEUWnnVFw3tbR4pj7xZzbt5ay9V8DGtOLRncHb0QVBe i6Xu4Ycr72gYErlFbql2XDDj+9ss3N048zfAJ0q5tmArsJk0GYAnwaWoc1iudPBKgXN0 uqcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698790164; x=1699394964; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=z/7HQyupJ3l1SHVsmhophmPEvbSg1OwsucdWpEbkWX4=; b=vb0SEuOr2ppaAYU3ojz/fOmJ5te7SKCZDG58XyQxGqLlchKExYGrdala6poY4n1qtP y4Npo0sEhagWkhLcQvqX/Fa6p9ft6YStlz7qkSk2/CSz6gMi/nUUdK3U5NUzYblJiDyT C2Op6NLawa37oHsbKX1jMgfyDvHRA1pLwdW8CQmuHnyHcYwFXUdpMqt1rH1lRHNSlfG1 jvuTdzg9K+j/VUDF5pKSSc13067nKdt+7mls70HlstmiWMz2oKPUpTBEI/YaVCS6E1tg FWm7bS9sHtA5/Jnuf7pvfIMFqBu7PSyzefArzmvhbBNLrRLWE2KfvMLa5kV633eFb5Is oY2A== X-Gm-Message-State: AOJu0Yzo57/obnl7Aa6hyL5zIZXeWDtyRf4m1s3mddIIARcH7ESREWTf i8qjhXf/wpUhCjuBwVzRPaIlM9L3pMvWIEfm/Sb9iPw5 X-Google-Smtp-Source: AGHT+IEIdyavgNyZkKrLd6pwqqtANoCm2NifREl9KfRtYh2lMprstb9qEBEhclLhwpb1z3NkPfWI5A== X-Received: by 2002:a05:6e02:12:b0:359:3285:1f19 with SMTP id bb18-20020a056e02001200b0035932851f19mr3682186ilb.31.1698790163987; Tue, 31 Oct 2023 15:09:23 -0700 (PDT) Received: from fedora.. ([38.142.2.14]) by smtp.gmail.com with ESMTPSA id ey2-20020a056a0038c200b0065a1b05193asm100750pfb.185.2023.10.31.15.09.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 15:09:23 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 0/3] net/tap: update and fix the BPF program Date: Tue, 31 Oct 2023 15:08:10 -0700 Message-ID: <20231031220921.96023-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230716212544.5625-1-stephen@networkplumber.org> References: <20230716212544.5625-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Update the documentation and tools to build the BPF program used by tap device. And apply fix to the RSS algorithm to correctly handle non-IP protocols. Madhuker Mythri (1): net/tap: Fixed RSS algorithm to support fragmented packets Stephen Hemminger (2): net/tap: support infrastructure to build the BPF filter net/tap; rebuild and update the BPF flow program doc/guides/nics/tap.rst | 11 +- drivers/net/tap/bpf/.gitignore | 1 + drivers/net/tap/bpf/Makefile | 18 + drivers/net/tap/bpf/bpf_api.h | 275 ++ drivers/net/tap/bpf/bpf_elf.h | 53 + drivers/net/tap/bpf/bpf_extract.py | 80 + drivers/net/tap/{ => bpf}/tap_bpf_program.c | 56 +- drivers/net/tap/tap_bpf_insns.h | 2992 ++++++++++--------- drivers/net/tap/tap_rss.h | 2 +- 9 files changed, 1995 insertions(+), 1493 deletions(-) create mode 100644 drivers/net/tap/bpf/.gitignore create mode 100644 drivers/net/tap/bpf/Makefile create mode 100644 drivers/net/tap/bpf/bpf_api.h create mode 100644 drivers/net/tap/bpf/bpf_elf.h create mode 100644 drivers/net/tap/bpf/bpf_extract.py rename drivers/net/tap/{ => bpf}/tap_bpf_program.c (79%) -- 2.41.0