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 4419043895 for ; Thu, 11 Jan 2024 18:05:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BF90E402AD; Thu, 11 Jan 2024 18:05:00 +0100 (CET) Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) by mails.dpdk.org (Postfix) with ESMTP id 5766140269 for ; Thu, 11 Jan 2024 18:04:59 +0100 (CET) Received: by mail-pj1-f49.google.com with SMTP id 98e67ed59e1d1-28be024282bso3876021a91.3 for ; Thu, 11 Jan 2024 09:04:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1704992698; x=1705597498; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=0UXpB4wlzW4IKAw321/uUtN0qzVKeGP9qE6M81FIDA8=; b=F2Dh626licIhMqq1/VvIATvKi2qknYjGEQC5pu2W8EK54OPsloKhDTMPFSfRxIMKvY HZX7AoGcs4CMX5Z+OIzupMweqhCqWF1ZoOEitGYEZmoiWoVKa/VZeSxGz43B3p1p74bc 3PjBXZIt/0jFVXwdlXxi73wdP2jW20frjdqnlUwoJXrFo9BT2GALH7byExPU67rdgrZA ZzwulbiRlSoRCidsmtJGYlty8lGc9j2COnvykaqtEnXVFXn/GSJoOc8DoA4QE+oCeIWN wW7/0L/33XK/aXBuaXabiyu3kvflJqtgUCeAkDmpJheF4k9gHofl/FCWvq/l9lbpviIT Q9rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704992698; x=1705597498; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0UXpB4wlzW4IKAw321/uUtN0qzVKeGP9qE6M81FIDA8=; b=CgEys4b5D3k5VmRd/HEcsHZVz2XtHWFBHfGFaAGBI/YKWs8p5NfLn2vz1N4b/YrBdy nMWo8/p+6WM7xJ1k/QKp+PiGu35aDAe4GJN2RQzzXLgPJTD5FaNOy2vwwoUaHGVU6WR2 u/EBFVA9uOebeKkPb2P/b0GptvTtKl55yifO+lZkXnb91hOXRxF39PAO85j/AW1kUMlN rKBcetADzNMCor6jD8HzwGcuuVR8l8tI3XIxgDkUbxIZ8XmVIswzZlk6Ti82S3ZjUqyB BLbSNmEJXwGcqLjy/B4ee39FA6sNf6VUZU+agD+oLKDqIIbEfOS2T7mxHYU7lfvEdSzc DBAw== X-Gm-Message-State: AOJu0YwCA5WkmM/tNSQS2A3sb8JvNL6N1Diz40u53sd7Od8BoQ8ZRqFq IpcgjU0pL6R+pNu6lWZy4N5Jg40tm92n1Q== X-Google-Smtp-Source: AGHT+IFdeQwTZAiHsoMAf36Wdlbzog4Vkz3M8Gm+DQcXALUFYHIZpt8mu1PKXs0rnFQhlc4UzrniSg== X-Received: by 2002:a17:90b:70e:b0:28b:fa2e:ca56 with SMTP id s14-20020a17090b070e00b0028bfa2eca56mr95401pjz.29.1704992697865; Thu, 11 Jan 2024 09:04:57 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id qd5-20020a17090b3cc500b0028ca92ab09asm1823904pjb.56.2024.01.11.09.04.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 09:04:57 -0800 (PST) Date: Thu, 11 Jan 2024 09:04:55 -0800 From: Stephen Hemminger To: "Nicolson Ken (=?UTF-8?B?44OL44Kz44Or44K944OzIOOCseODsw==?=)" Cc: "users@dpdk.org" Subject: Re: Tapping a Tx port to access all the packets being Txed Message-ID: <20240111090455.28273784@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org On Thu, 11 Jan 2024 05:55:53 +0000 Nicolson Ken (=E3=83=8B=E3=82=B3=E3=83=AB=E3=82=BD=E3=83=B3 =E3=82=B1=E3=83= =B3) wrote: > Hi all, >=20 > I'm wanting to basically tap a DPDK stream and for instance save all pack= ets being Txed by a PMD to a separate file. >=20 > I know I could relatively easily modify an existing PMD to have two outpu= t ports, but is there either an existing PMD that does this, or a programma= tic way to graft a second port onto an arbitrary PMD, or is there another s= impler way that I haven't realised yet. As mbufs are already reference coun= ted, I would hope, and require, that such a solution would be zero copy. RS= S-friendly would also be a plus. >=20 > Thanks, > Ken You could use Tx callback to do this, or pdump, or pcap PMD.