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 5198D43B1F for ; Wed, 14 Feb 2024 04:34:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CA1AB42E51; Wed, 14 Feb 2024 04:34:47 +0100 (CET) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mails.dpdk.org (Postfix) with ESMTP id 5591F42DF9 for ; Wed, 14 Feb 2024 04:34:46 +0100 (CET) Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1db5212e2f6so2812215ad.1 for ; Tue, 13 Feb 2024 19:34:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1707881685; x=1708486485; 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=RoVNV0/9omlqm9tAjEI2OorfZhup3nELE/9pgd5H10A=; b=JFPuUhsGii8MekUIOcPd6RRe/9oIPZfic4hgDO8Bft7IaLoOnMm79ImMrQVbGthicE wQc6hioEy8155uU3ythaRn8xW/4koqp1nELb0ZGAnpdmvxJ+mbtrnxc1NV+lHisVKFud QDNAQ2BI6UMyWust73OC+HrgIjxnOTQcyfijnN/NTvByQEHl7910PCIPvLuZi0A+4hae Q9dp6apYKksusFAc27rpxT3zxRsPZ0/vndVOakmhDHpTlzSkKGan4BN++Jx4+rQOzclg +B5dG4578Lk13FhBoSZdaD4uspEP9fLZBGgHgySb73AuDxhyRb/MWlWSGCwVPHjicPIf fWTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707881685; x=1708486485; 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=RoVNV0/9omlqm9tAjEI2OorfZhup3nELE/9pgd5H10A=; b=g1Gt+hoByr2zSudAJrqLIerbCgrNOGnepbQNazu9zS/WYPvfKuUn3MwH0/0KxRA7FH U0K3kTyXSF7/ev9H2dcxI2gX3KQSs2s6pyvMeUnWF6Ntc8FBPoRR70Ih5l0wHGdpa7pM jnou00BlZf6FnTk1qu7ZbdgqDkRgo0vwZ/k+idAdCd6uepGXDlBUe2olLUuLXEGpp8fU qECf5LFmaFXg1HEeoslnBRISXi09EqGyUpxtvip3JXUCkldc1Ag49jPj5fjQ1RQMmWSW Yy+fF17euUd/qEbSbEEd6gdUKxyV6U54kN8F5wdQfPfXbMXsVcY8McdS6nilJX9adDpW 4AQQ== X-Gm-Message-State: AOJu0Yz0Bjg0GkwMeQs4XJQP7OfWgl1KBm0DKhn2H0nBiKfzBqSzUlzn E8vRWJwyFmUSXDhCdqw7NVXs4LrYCAkmklxRwTEBzrwFDl1u0YQgPYENPNNe1zE= X-Google-Smtp-Source: AGHT+IGnV1vDI4+DFrQfX7//pLWq8XJt9RMUOvYKNVWmh1BZzzEE+CfrQkd2LGXwkrZG9an1bCHo1g== X-Received: by 2002:a17:903:32c6:b0:1d9:adc9:2962 with SMTP id i6-20020a17090332c600b001d9adc92962mr1019911plr.20.1707881685286; Tue, 13 Feb 2024 19:34:45 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id kl6-20020a170903074600b001db40c0ed23sm1632987plb.62.2024.02.13.19.34.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 19:34:45 -0800 (PST) Date: Tue, 13 Feb 2024 19:33:14 -0800 From: Stephen Hemminger To: =?UTF-8?B?0JLQuNC60YLQvtGA0LjRjyDQlNC+0LzQvtC20LDQutC+0LLQsA==?= Cc: "users@dpdk.org" Subject: Re: DDP and symmetric RSS hash Message-ID: <20240213193247.5c493f03@hermes.local> In-Reply-To: <2329101706545029@mail.yandex.ru> References: <2329101706545029@mail.yandex.ru> 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 Mon, 29 Jan 2024 19:18:38 +0300 =D0=92=D0=B8=D0=BA=D1=82=D0=BE=D1=80=D0=B8=D1=8F =D0=94=D0=BE=D0=BC=D0=BE= =D0=B6=D0=B0=D0=BA=D0=BE=D0=B2=D0=B0 wrote: > Hi, > I'm trying to set toeplitz symmetric hash function for packets from DDP. > I've created flows for pppoe/pppol2tpv2/l2tpv2 headers in=C2=A0patterns a= nd=C2=A0PCtypes as RSS hash types. But it is not working. > What should I do to configure=C2=A0toeplitz symmetric hash function for p= ackets from ddp? > =C2=A0 > Best regards, > Viktoriya Domozhakova >=20 With most hardware you have to use a Toeplitz key which results in the symm= etric hash. Some hardware does symmetric hash by setting /** * Symmetric Toeplitz: src, dst will be replaced by * xor(src, dst). For the case with src/dst only, * src or dst address will xor with zero pair. */ RTE_ETH_HASH_FUNCTION_SYMMETRIC_TOEPLITZ, /** * Symmetric Toeplitz: L3 and L4 fields are sorted prior to * the hash function. * If src_ip > dst_ip, swap src_ip and dst_ip. * If src_port > dst_port, swap src_port and dst_port. */ RTE_ETH_HASH_FUNCTION_SYMMETRIC_TOEPLITZ_SORT, But that is restricted to newer smart NICs.