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 160A243F6C; Thu, 2 May 2024 23:36:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8F270402C9; Thu, 2 May 2024 23:36:30 +0200 (CEST) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mails.dpdk.org (Postfix) with ESMTP id 51793402C4 for ; Thu, 2 May 2024 23:36:29 +0200 (CEST) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-6f43015b763so859385b3a.0 for ; Thu, 02 May 2024 14:36:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1714685788; x=1715290588; 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=ADq6qW73GfLBUcSK6wUR160yhVmIT2w97th1KcxIcX0=; b=KTmWSWQe1TwFPb/wgdwUnKcICf74wa+IPQbAV2fROoia/giYkSSzuS5aP06ioe7ZVz g1pQC5xrwLqTA6oL6RrxxiC07t1rH/RYSXuR0EuYcBpN1cKZ2OX0ghCid1C8JhsJACts VJ2OZFJIDqh5sGsM4JbVyHYqX/wcKFPoSmTqDncARJZGJOCpYczxx0sjOWGJMSLjvg2P L50OtXZdvvbPAvwMf6CwQAQ/pdBlTPI/n50SiHhadlezyANX8HvAMG/uS8KD257OJy9n TYsK1peq4IsphUcrGvBXbdHwJisk+mlrl7s+LarNBk8eVFHmximvirz+JkCwgLI9zW+H cmIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714685788; x=1715290588; 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=ADq6qW73GfLBUcSK6wUR160yhVmIT2w97th1KcxIcX0=; b=rzwXCKDE1IJxfu1izkVO6yr7jLFhjmpuzGwtgx7/wEh+vgzBYSuMTe7GXue1IqwTpI R55jGe0a8vYM7XgvjbLwJzBko+3hd7AnLOWbwPWNsnFbADod6N5BQFKh/v87p23GPOUa 2FwQIsi7F8mAl7mjk7+oLhUR0Dxvm1hIee0zq7R142HAHBckTEBoKdCEL4uPuWny7XGt QRum07B9cDvr1t34SfPdzsA2qseiE75lhFmF8eL0lfv/sJHz6DKczCasY4d6YGy5QT4J 2bXBeDwnp5Q20/6ZaVJVbR+Rn0KhDooKLuyaXqN5+ZxhOCcUnh/ibjObfjaJzELEfcjY ba8A== X-Gm-Message-State: AOJu0YzCZfM/jqRGE8w9FFtcsV408bggmxwvWjKHw5xMCamjT1H6d7Xh jv1eHzVTzTdIFn4GSRtDx3gX4c5Fdk2XCCsaWxasjC9N6/ziXR5ZpslU7ezlpaMjgfnhJYSdZlj C7N4Gvg== X-Google-Smtp-Source: AGHT+IGeCaCgbBPaYiD+WL5Si1SQFlQG6J8ayqTr8sSD+twjP7hUXCv9e2SJ9O2tzqPDKA/s+LkB0g== X-Received: by 2002:a05:6a20:7f86:b0:1ad:8f18:8625 with SMTP id d6-20020a056a207f8600b001ad8f188625mr1133657pzj.28.1714685788271; Thu, 02 May 2024 14:36:28 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id f14-20020a056a001ace00b006f3eee787d5sm1804829pfv.18.2024.05.02.14.36.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 14:36:27 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v12 00/12] net/tap: RSS and other fixes Date: Thu, 2 May 2024 14:31:36 -0700 Message-ID: <20240502213618.11391-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240130034925.44869-1-stephen@networkplumber.org> References: <20240130034925.44869-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 The support of doing RSS for rte_flow_action was a cool idea but it has been broken for several releases of DPDK as the kernel and BPF infrastructure changed. This series cleans up the BPF program, implements several features that were never completed in the original code and changes to use the current BPF tool chain. The result should be easier to read and maintain. I do not intend to support backporting this to stable releases due to lack of demand and dealing with older distros. v12 - separate out the fix for rxq fd in flow_isolate cleanup log messages bug fix for queue full Stephen Hemminger (12): net/tap: fix fd check in flow_isolate net/tap: do not duplicate fd's net/tap: remove unused fields net/tap: validate and setup parameters for BPF RSS net/tap: do not build flow support if header is out of date net/tap: rewrite the RSS BPF program net/tap: use libbpf to load new BPF program net/tap: remove no longer used files net/tap: simplify internals net/tap: remove extraneous newlines net/tap: do not mark queue full as error net/tap: update documentation .gitignore | 3 - doc/guides/nics/tap.rst | 274 ++-- doc/guides/rel_notes/release_24_07.rst | 7 + drivers/net/tap/bpf/Makefile | 19 - drivers/net/tap/bpf/README | 49 + drivers/net/tap/bpf/bpf_api.h | 276 ---- drivers/net/tap/bpf/bpf_elf.h | 53 - drivers/net/tap/bpf/bpf_extract.py | 86 -- drivers/net/tap/bpf/meson.build | 107 ++ drivers/net/tap/bpf/tap_bpf_program.c | 255 ---- drivers/net/tap/bpf/tap_rss.c | 267 ++++ drivers/net/tap/meson.build | 42 +- drivers/net/tap/rte_eth_tap.c | 384 +++--- drivers/net/tap/rte_eth_tap.h | 42 +- drivers/net/tap/tap_bpf.h | 121 -- drivers/net/tap/tap_bpf_api.c | 190 --- drivers/net/tap/tap_bpf_insns.h | 1743 ------------------------ drivers/net/tap/tap_flow.c | 557 ++------ drivers/net/tap/tap_flow.h | 17 +- drivers/net/tap/tap_intr.c | 7 +- drivers/net/tap/tap_rss.h | 21 +- drivers/net/tap/tap_tcmsgs.h | 4 +- 22 files changed, 907 insertions(+), 3617 deletions(-) delete mode 100644 drivers/net/tap/bpf/Makefile create mode 100644 drivers/net/tap/bpf/README delete mode 100644 drivers/net/tap/bpf/bpf_api.h delete mode 100644 drivers/net/tap/bpf/bpf_elf.h delete mode 100644 drivers/net/tap/bpf/bpf_extract.py create mode 100644 drivers/net/tap/bpf/meson.build delete mode 100644 drivers/net/tap/bpf/tap_bpf_program.c create mode 100644 drivers/net/tap/bpf/tap_rss.c delete mode 100644 drivers/net/tap/tap_bpf.h delete mode 100644 drivers/net/tap/tap_bpf_api.c delete mode 100644 drivers/net/tap/tap_bpf_insns.h -- 2.43.0