From patchwork Tue Oct 31 22:42:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 338 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 44FEE43256; Tue, 31 Oct 2023 23:44:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A94AD4064E; Tue, 31 Oct 2023 23:44:35 +0100 (CET) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mails.dpdk.org (Postfix) with ESMTP id 7EBBD40285 for ; Tue, 31 Oct 2023 23:44:34 +0100 (CET) Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-1cc29f39e7aso28242055ad.0 for ; Tue, 31 Oct 2023 15:44:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1698792273; x=1699397073; 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=ggLHxshjN4ZscW1OrG71Bjubc//n/xP2Nb8XLrmHVcw=; b=sNp89NxZx6MJbylMlBcTQ1EyWCvlSwP4P8rVWcLlL++/fx87Ngq0R21bZUfI6985Hj rWh5zM0++vy3uCWETC1+Mso4EO29jh3piosrP0nPQHm9/sZS9HChbdB9iloxkvWaQoQK phNbQ7mOWzH6vtLwk1JaEe++IQ5Xt8FKGZn0b7fcYMFc20/WsIBGRYPVea5DdbO9WdsZ O2EfTSmusZ5imySWATCEjCB2HODKXINPSFO4j20iP3Uo/n4/O48bOXF6iNS7/haggz5n 1CyI3EPzt49MVnRBKBk0Rmv4rwwONzYbsILwwvFtAk64J/sr2qpIjJUGkuLeRZ0VMvzM fDag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698792273; x=1699397073; 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=ggLHxshjN4ZscW1OrG71Bjubc//n/xP2Nb8XLrmHVcw=; b=dfQ/VKpGTSBcmFBVcrVmBtEawT7OJEktvlhD8qMvgMoGLw6tbGFH5SSiT4zEhwDWID 8gh+KgrUSN75H6TPEVdOGu8JHw46FNNErmQZuT2JhzGlJYFRYJYpCdrg0HbwLhQ1fYuj pVr3hOmcNc1jWQX/fu0Oea25GsYtSMrLF5Q95koPry94sjKAbxppxnRHMVCIJQAWlHxm q4LVC4o0eAsxZY9h9sgFYu1RoccMTaWiKbnbSQDInpx2dpG9VjU1VZxPNyzU6bvF+8e/ xO0BM/M38ORSqVPIkFhT4rLR/z6bTRjQL2/EV7Yzh4ZtBN2bHXZXNlh53uPYW58oLCs/ mi6Q== X-Gm-Message-State: AOJu0YwhXI6XkryApR2SXOyn8yHF0nrroS39ZYK+mBePAAN/YJ/IDt9P KNHx2tpY/YJpS0JZx/d+Bn+VUWhiPmsO7MkIbQgD8hAJ X-Google-Smtp-Source: AGHT+IHMQDo0G53e2CLennsO1gZGx8kH++hbtRvPwgtkqfg1BvPIuO3tDMDNObb/Sg40/bWJTUCHhQ== X-Received: by 2002:a17:902:6b89:b0:1cc:630d:8a56 with SMTP id p9-20020a1709026b8900b001cc630d8a56mr3940209plk.14.1698792273025; Tue, 31 Oct 2023 15:44:33 -0700 (PDT) Received: from fedora.. ([38.142.2.14]) by smtp.gmail.com with ESMTPSA id b1-20020a170902d30100b001cc131c65besm70485plc.168.2023.10.31.15.44.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 15:44:32 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v5 0/3] net/tap: build and fix for BPF program Date: Tue, 31 Oct 2023 15:42:21 -0700 Message-ID: <20231031224429.150002-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 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. v5 - merge patches into series and fix rebuild 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 | 2988 ++++++++++--------- drivers/net/tap/tap_rss.h | 2 +- 9 files changed, 2000 insertions(+), 1491 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%)