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 6791C45C24; Thu, 31 Oct 2024 16:51:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 57D4540273; Thu, 31 Oct 2024 16:51:47 +0100 (CET) Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) by mails.dpdk.org (Postfix) with ESMTP id 629F54025A for ; Thu, 31 Oct 2024 16:51:46 +0100 (CET) Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-7d4f85766f0so881227a12.2 for ; Thu, 31 Oct 2024 08:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1730389905; x=1730994705; 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=fJjeZr2ylLeKUiiAuUSvPmflUEvlpF6aERMu5PXaGvw=; b=RuqgJtJhBXQrHOruCScI1E7mpiecjiMrkPNGLkgTiIcxbXOiEeSAT7jRfmFdRE/ya1 xYtcyz/Uwcu3D7SiaXpMJi8Jl/z0PZ+NxuDf/c3iHYDTDTeYg1sAtzfjWyA7fHCH/fMy ZsNu4TFwtK8inF0h+jnou0noxXb3L4l+r1leBlYWDswSJgLl2wHr/xO/+OIKKkQqMXWC XSC68G8Yl6KfYjXL6XQkNXjg6/WtXva+Yb5dV+B7cSliPV6UqhjuPCDPuTP1PqV5dOf9 1nm0+oHZ3oQJyGk9w2cRRn8EE86mPOF7IbLsQWcEcyN+aT2uQc1PTgP2OF1RICrQQdpx kMBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730389905; x=1730994705; 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=fJjeZr2ylLeKUiiAuUSvPmflUEvlpF6aERMu5PXaGvw=; b=dwBBoImHa3JABGAf51RnshO/G2dySnfcNLRC1VHEUlecKPTRHO6h302DkB6eJDcO1Q uBYCaXbtg67mbPgIWbnduPBMBsPZgIsoXh8NGDl127lynJObbYpXRJ7z3Ax6DYtpjL23 +HWeEJyMCCWFdzx1nFlh2meOCp5nociZXUd2pMZOGgiIF3OtJBUni/g/DozcqrFe4d8s eA0eanILqPoZ3DLDe4weCUWaxwCtXNbH7dOC1XZGeNNfHI9mCTeAejglKrt/m/ZXn3iK U/6erarbqsdem2vBoPD+ES4fuKcklpvcCsWTlMfs8UPpviVXTp5buVtUcV/IOF50T6wi mveQ== X-Forwarded-Encrypted: i=1; AJvYcCXmKEvQm20xY4az7Bn0IOTmGVX8sjsHiqfFiYVbLj/VUlGHsTCl8XCeXZSsOdTwTEVPqqg=@dpdk.org X-Gm-Message-State: AOJu0YwJHc366eLk+QUhRrySXiVDNWt2M57N+nRLuZCrEiX3AhQoMGMD 7i2Y+Jbbc6Y6/uidlS9vSJKD+Tp9rLZnpnkmX5sVyDpOL4s+2lXQjHaiXa98wI0= X-Google-Smtp-Source: AGHT+IE9Z4iylQFUVfOrnbmowCVxDg1Sny/yc7TcZ+V0l6Lp+qkh2BUnRqHhXVdNdQrlfYp4Xc+SXA== X-Received: by 2002:a05:6a20:c998:b0:1d9:857a:585c with SMTP id adf61e73a8af0-1db91d89bc3mr3976450637.19.1730389905492; Thu, 31 Oct 2024 08:51:45 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7ee45a0eda2sm1189913a12.86.2024.10.31.08.51.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2024 08:51:45 -0700 (PDT) Date: Thu, 31 Oct 2024 08:51:41 -0700 From: Stephen Hemminger To: Gregory Etelson Cc: , , , , , , , Subject: Re: [PATCH v7] testpmd: add hairpin map parameter Message-ID: <20241031085141.5aee5ed4@hermes.local> In-Reply-To: <20241031045817.10497-1-getelson@nvidia.com> References: <20240922065053.996568-1-getelson@nvidia.com> <20241031045817.10497-1-getelson@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Thu, 31 Oct 2024 06:58:17 +0200 Gregory Etelson wrote: > Hairpin offloads packet forwarding between ports. > Packet is expected on Rx port , Rx queue and is forwarded > to Tx port Tx queue . > > Testpmd implements a static hairpin configuration scheme. > > The new parameter allows explicit selection of Rx and Tx ports and > queues in hairpin configuration. > The new `hairpin-map` parameter is provided with 5 parameters, > separated by `:` > > `--hairpin-map=Rx port id:Rx queue:Tx port id:Tx queue:queues number` > > Testpmd operator can provide several `hairpin-map` parameters for > different hairpin maps. > Example: > > dpdk-testpmd -- \ > \ > --rxq=2 --txq=2 --hairpinq=2 --hairpin-mode=0x12 \ > --hairpin-map=0:2:1:2:1 \ # [1] > --hairpin-map=0:3:2:2:3 # [2] > > Hairpin map [1] binds Rx port 0, queue 2 with Tx port 1, queue 2. > Hairpin map [2] binds > Rx port 0, queue 3 with Tx port 2, queue 2, > Rx port 0, queue 4 with Tx port 2, queue 3, > Rx port 0, queue 5 with Tx port 2, queue 4. > > The new `hairpin-map` parameter is optional. > If omitted, testpmd will create "default" hairpin maps. > > Signed-off-by: Gregory Etelson > Acked-by: Dariusz Sosnowski Acked-by: Stephen Hemminger