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 1A95343263; Wed, 1 Nov 2023 19:05:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DA7F840282; Wed, 1 Nov 2023 19:05:32 +0100 (CET) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mails.dpdk.org (Postfix) with ESMTP id C302F400EF for ; Wed, 1 Nov 2023 19:05:30 +0100 (CET) Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-6b709048d8eso120801b3a.2 for ; Wed, 01 Nov 2023 11:05:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1698861929; x=1699466729; 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=wykHHejVetKK3Yn5ovh5CvXaNTxFZHJzz3eYcaqSBbg=; b=UZLc/W1VN2JNOGtLurIpegufPHtjVJMHbwya1Bva6Ng211/tcsCVVB6vq/p/BrLKpX yQNuwRnOVX0WA4pIXpWeWh/QA8reOnXjsg/FRIRU0O/afCGZR4zz+4YEWVX8DSLg+dza zrjSFTAuMUXekqYmvZkrP+ueyjcNVyKM3nDwFg81Rec8DyP1YM5PNWme5aAUL0enGuMG 3HKv/nLd6FPCQei6Es0qhdq+coFhwwxH17Z3h54WqgieroGN1d/E19bE/mlRbRycdIA5 8eKgS8H5Nn6+Npcc3z0PiakruamlvuxLemb8CeGY3+10HtnvL0D1d4LOmTZG3maXwLs0 lHUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698861929; x=1699466729; 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=wykHHejVetKK3Yn5ovh5CvXaNTxFZHJzz3eYcaqSBbg=; b=YTbvF855zM5/jOJLnLKwR/I+mdaX45NKilDzBfOlQL8bZ6vZWVeEWVfft3xGJxP9SA /0xXg/B8AhxoVWy5qwhdyaSV9C3oioE4mr+dMdyLeSSgFIQ7ySRUO4Kd/Eny9HP8gc8g WWh/WuevwPVo3znrs4EGUT6ji9a3WJBXhSStkx8K1gBeNkEmCpCsRifk7d4+pJbhncSO GLSw7vMheqG3sep01HZDbuxxqd+ti8TM6BCfwLyKCv2PpPeK+f8g3tDlvnQhZ8JkdP38 Rtw9f3eDM5tlJIL2st9/xFmJAvUUq6jCxbIpEyCL2g/gOu5+noeTQO/OC0OVD8AKnEzZ UUhg== X-Gm-Message-State: AOJu0YxS6jNrHvUvgnHccjE1u5s5cZbVglZZej+OI3ObPiueEIPh9JNr ihjB/WZQX0IwCTMj8yu/A0x3aawIhPDZrfLATxJUg3aN1dE= X-Google-Smtp-Source: AGHT+IGURpjnx/3e2LDW4QmYpNf5hbxr1bpHgLbZmJvT1uTrDz18cvgRgpsdx9/T9hr/o8OQzplEwQ== X-Received: by 2002:a05:6a00:3a08:b0:6bd:2c0a:e82 with SMTP id fj8-20020a056a003a0800b006bd2c0a0e82mr15830109pfb.7.1698861929572; Wed, 01 Nov 2023 11:05:29 -0700 (PDT) Received: from fedora.. ([38.142.2.14]) by smtp.gmail.com with ESMTPSA id d9-20020a056a0010c900b006be7d407a11sm1575286pfu.178.2023.11.01.11.05.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 11:05:29 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v6 0/3] net/tap: build and fix for BPF program Date: Wed, 1 Nov 2023 11:02:45 -0700 Message-ID: <20231101180526.214773-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. v6 - cosmetic improvements to extract process add better boilerplate and fix python lint warnings 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 | 86 + drivers/net/tap/{ => bpf}/tap_bpf_program.c | 57 +- drivers/net/tap/tap_bpf_insns.h | 2959 ++++++++++--------- drivers/net/tap/tap_rss.h | 2 +- 9 files changed, 1986 insertions(+), 1476 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