Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3912549rdg; Wed, 18 Oct 2023 09:20:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHl+wsfcZJD4cu8bgJrRbfwTvzmWBrCevymoiK0OdupTxhgpNuJtZHZK2fOAkmoshFzLiQJ X-Received: by 2002:a05:6359:5e02:b0:134:e458:688d with SMTP id pw2-20020a0563595e0200b00134e458688dmr5581068rwb.15.1697646058181; Wed, 18 Oct 2023 09:20:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697646058; cv=none; d=google.com; s=arc-20160816; b=zDl5dNk4H0x+BpCqp/GcvVkzxzldsMmuOuswcE19nuLXw7IiBr2ZSO1z0OKGf+04nn S5hxa1n9xqZEhALPa8TLt6/ehTMV52evzhEEluKo/J7riQ6Kx8Hv7W7J9x8kxx14sWTu qtBEZJlO+Ou4M/fpD/Jy0ncKSDisUUxyNjuMGi5WIpw1HmfJizRQD4w2KJh8al+DZyWX yFkel7q1te2Dg/dgY+bu6YWBa26lctf0FIplYy0MPGi4zJQH+GNV5PJ8YDZV7QABa91F bNgKwe9Y+K/bxGRomrzNZFJL/ae51duYnaxEBJpsi9ljVurhGlYkHmCYRn5DAqcpLO/g 6S8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=5L0ftx8gbLC+xr2pL7y3oGFwZgyV4cm0SgTFI25QzVw=; fh=sHGIeHwa93/ImX3Rl76TWj7klzZOzRiZAA6W65kBbg8=; b=rBYTTt2W1311XA6bzk5O7BKdk3fk8jvZNE0qGNsxI/CkwYdx3IRIF9+J9kNfjxWOyz v/YxbsFT8ZX1fH8IR9j8GF8zTBfETOq392ZGQe3RBKwh3dXWCtWoulKi20mwzLko5HY4 2rkCGSQTVt0nQjPWVRd0d99ch30cUwwktJKEwp4Hzwoxg9gvMONM+vCHH4/Q6lUMyruR MlM25wGCGd7+/Stz1UJ4X40X6B4cDyRXjpFIP5ylW+Dw22YelM59ZVyrB2ms8ZQJhPoJ IGzVTHDsfXr0Cxq+FW/bV4BWaZXmc1SaDdgyuUuwklz/fXO30sY2fLp4Dj9ZzvbSCxYr HUqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=H4ctBjfJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id k36-20020a634b64000000b0056f8fdb4430si2427736pgl.893.2023.10.18.09.20.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 09:20:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=H4ctBjfJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 56FA5803AC90; Wed, 18 Oct 2023 09:20:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230233AbjJRQUU (ORCPT + 99 others); Wed, 18 Oct 2023 12:20:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229900AbjJRQUR (ORCPT ); Wed, 18 Oct 2023 12:20:17 -0400 Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BC05FA; Wed, 18 Oct 2023 09:20:15 -0700 (PDT) Received: by mail-yb1-xb36.google.com with SMTP id 3f1490d57ef6-d9ac9573274so7814911276.0; Wed, 18 Oct 2023 09:20:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697646014; x=1698250814; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5L0ftx8gbLC+xr2pL7y3oGFwZgyV4cm0SgTFI25QzVw=; b=H4ctBjfJOApHb2K06YBns1vSiagRI9hzPNaXtuMUyiIF6/9pzVQb9iLw9+cQYMcTnI qj/C+WpqbrsJ7/9Lp2So+Edvk0zw84KFRUKTXtxIPyBGkV05g9+rP7sV8f0zyXZsYowg VR4ZWZCsa2Q+3MOt2+SyWl4JZEa8J+w0dXzbIMTNxFgvHyRmRcR3r7zlagiYWcnsbqvq fruMyhQ8OCfmqvd70X0L25BGjuvuV+EGPWM03B9QyaAXqWItYKKwD3VlnTTeM9DvhSc7 z2rQ5/yR+7gNL3xgKjrWSv6QdakdL5CdhGsimnGOWD1HSsC+xr3hBUqUDYTVtssGMyr6 jTfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697646014; x=1698250814; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5L0ftx8gbLC+xr2pL7y3oGFwZgyV4cm0SgTFI25QzVw=; b=ZoFSlaHH0kp0SrrgBsqfiVBXqQNghDcm4oEIm/DS4LYK0uTMVy151B7HS1wlzIX1iD wEpsVqyuGQzbc/DfmO9n2SfyVKbxvi/3REBLlyMzA2r/f6+qyWw/jPA8aCktTv3saOyc HOsB3FsQ5h2AoAtmJXzZJyUTiikb1whWJb5+nyomEGoFvrQXmr8PaZTKXj+uWFutl3A5 1DbJK5GItMdbxBnXBPc846+jRpye5bLr3gvfYimsq1tWO3zXNaFqmL0pzlkzHdE44uT/ bQWu8K6B/YgEWOhU4lTAYZgqHGPd38J397nNln9AZu/EkOYzUMFQI+mseXCtxUTFCKFr 5TvQ== X-Gm-Message-State: AOJu0YymAQ68YMhpwhVRPtDxWdBcN/ow8+6+75h6nz1ZXf8MuHXcVjAX LBhfQ2yjq9P6VkCN74GKHq5Cdj842B1G6DBeevU= X-Received: by 2002:a25:f56:0:b0:d9b:90bf:e74b with SMTP id 83-20020a250f56000000b00d9b90bfe74bmr5775931ybp.7.1697646014247; Wed, 18 Oct 2023 09:20:14 -0700 (PDT) MIME-Version: 1.0 References: <20231012060115.107183-1-hayatake396@gmail.com> <20231016152343.1fc7c7be@kernel.org> In-Reply-To: From: takeru hayasaka Date: Thu, 19 Oct 2023 01:20:03 +0900 Message-ID: Subject: Re: [PATCH net-next v2] ethtool: ice: Support for RSS settings to GTP from ethtool To: Harald Welte Cc: Jakub Kicinski , Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Eric Dumazet , Paolo Abeni , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Willem de Bruijn , Pablo Neira Ayuso , osmocom-net-gprs@lists.osmocom.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 18 Oct 2023 09:20:46 -0700 (PDT) Hi Harald-san and all. Thank you for the review and comment! > So only in case the user intentionally configures their network to use > the same IP address for GTP-C and GTP-U traffic one will need to start > distinguishing GTP-C and GTP-U on one host/NIC with the RSS mechanism: > Steer the GTP-C traffic to the control plane instance on one CPU and > spread the GTP-U traffic via hash function to multiple other > queues/CPUs. I personally think it's short-sighted to use identical IPs > for control and user plane, as it means you can never scale out to > multiple machines without introducing some kind of dedicated load > balancer in front. But assuming some people still want to do it that > way: Yes, then you need the feature to split GTP-C form GTP-U via RSS to > scale well. I don't deny that using the same IP is short-sighted. However, in environments such as Private 5G and Private LTE, it is possible that a small mobile core OSS (e.g., NextEPC, Free5GC, etc.) is placed. Even if the addresses are separated, processing on the same computer instance is a possible scenario, so there are practical use cases. > agreed. Though I'm not entirely sure one would usually want to treat v4 > different from v6. I'd assume they would usually both follow the same > RSS scheme? Indeed, you might want them to be treated in the same way. But this follows the existing design of Ethtool. In fact, formats like tcp4, tcp6, etc... with the L3 version appended, are given, and the existing implementation of Ethtool is described in the format of IPv4|6 + L4. I don=E2=80=99t know why the existing implementation is divided into IPv4 and v6. > Don't worry, you were very clear in this e-mail. Thank you for your kind comment :) > Thanks for taking the time. As stated, I think it would be best to have > these or some other some brief comments about the different flow types > in the source code (and especially the documentation) of ethtool. Understood. I=E2=80=99m thinking of writing a definition in the Ethtool hea= der about this flow in the next version of the patch :) > Based on your explanation, I agree that indeed those are all different > flow types that occur in real-life on PGW/UPF and other 3GPP network > elements/functions. I can also very well imagine that there are use > cases to steer all of those separately, including the EH and UL/DL types > you mentioned. Thanks. I'm glad you understood. I appreciate your review and comments. I've been able to organize various comments and I think you've understood what is operated by the patch I sent. Now, here, I=E2=80=99d like to propose two policies for the next version of= the patch. 1. Keep this patch as is and write the necessary supplementary comments (of course, nits fix will be done). The good thing about this is that it can handle detailed use cases (as Harald-san understood) There might be something more pleasant than expected use cases. The bad thing is the multitude of flow formats. Considering 6G, it may increase a bit more. 2.Limit the rx-flow-hash flow type to gtpu4|6 and gtpc4|6, and rewrite to implicitly execute the previous function. we will add comments (There will be fewer comments than plan 1). In other words, in Intel Ice, the proposal has the following semantics. gtpu4|6: GTPU_V(4|6)_FLOW + GTPU_EH_V(4|6)_FLOW gtpc4|6: GTPC_V(4|6)_FLOW + GTPC_TEID_V(4|6)_FLOW The good thing is that it seems easy for users to use, and the format of the GTP-related flow is less likely to increase or decrease in the future. The bad thing is that it may not be able to handle detailed use cases. Please let me know which one, 1 or 2, you prefer. Also, I would be happy if there is any further feedback! Thanks 2023=E5=B9=B410=E6=9C=8818=E6=97=A5(=E6=B0=B4) 17:26 Harald Welte : > > Hi Takeru, > > On Wed, Oct 18, 2023 at 01:49:08AM +0900, takeru hayasaka wrote: > > I'm not very proficient in English, so I'm worried whether I can > > explain it well. > > Don't worry, you were very clear in this e-mail. > > > Therefore, I will try to briefly explain the flow and what kind of > > cases these are in a straightforward manner. > > Thanks for taking the time. As stated, I think it would be best to have > these or some other some brief comments about the different flow types > in the source code (and especially the documentation) of ethtool. > > Based on your explanation, I agree that indeed those are all different > flow types that occur in real-life on PGW/UPF and other 3GPP network > elements/functions. I can also very well imagine that there are use > cases to steer all of those separately, including the EH and UL/DL types > you mentioned. > > So I'm supporing your patch with all its many different flow types for RS= S. > > Thanks, > Harald > -- > - Harald Welte https://laforge.gnumonks.o= rg/ > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > "Privacy in residential applications is a desirable marketing option." > (ETSI EN 300 175-7 Ch. = A6)