From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by mail.toke.dk (Postfix) with ESMTPS id 5C8D9A4245D for ; Sat, 2 Dec 2023 15:15:47 +0100 (CET) Authentication-Results: mail.toke.dk; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=DSuohkHo Received: by mail-qk1-x734.google.com with SMTP id af79cd13be357-77f0479029cso3485585a.2 for ; Sat, 02 Dec 2023 06:15:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701526543; x=1702131343; darn=xdp-project.net; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=cHjT/29o2cHv+uPSUDloG/9K5z+4mwtqcKQnCHqcHPk=; b=DSuohkHoK5O0iMDPh+zl7p+o/lvd3ZSwLhdYIlxL+0MHGLLOZ+ob3iny/zxTCKdYP9 ECGg1s4FjRDYD8i+aBkesrZK6fAt+lVA8idUakcsbzBL/tb+WiDh6ecogofWsNak2KWK vJygPRvR3KKNmqC7G4FCvxoz/v+J+eGs2SDEricUSZJONbE6+/LuT0gmx8H86XLeg96G wWTpCA6YY2dUHhord8RFNSrm0N9YBsRiGPdJaZTBsmPtfkkoWrjVKi+X1psMLMn1Opvr F7jNnrcF83RD144HXzkThCpqOXLWM3r9P2DZHEhiJW2ol59dmYJXk83649Y8QqQAewkN GVoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701526543; x=1702131343; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=cHjT/29o2cHv+uPSUDloG/9K5z+4mwtqcKQnCHqcHPk=; b=Fsp67OUQPAkKetbyNPnRQBA9D14f0AXH3KCw4fSjVz5uRmdKoJx5sSm59CEMz8qH6v ac+Y7eEGR01Nu0wj95SuPczQIBpYBx72aKmoKM9iadiFOTQyT4EajDIEdwfJ07U/xRyZ 5RAeQO4fsJfBoc1hz+gU/dPPkONK57E3mWOCMEuQfZ1Sa810pb2wXQJowmJ1ysdgz39E NpeLvZdT0/lnl23Wj1wE3LYH/Ms6LHBQUk00Oa3zS14NAz027qwMaTTnd+BySs2EdtUG ceaTm5golWv+aOuW3mxC/aoQ05gAtKTF/dIpTjEeYds+yDqyNUQnmf3WPpMAkHKMzFuM D2hA== X-Gm-Message-State: AOJu0YxayzLXhzH+fozjVbQRrZzATEN0pF35UZrkco9wEeWOSf3sxoyX rM4IhH0KFdavnz3l7pUMDbk= X-Google-Smtp-Source: AGHT+IFMroJHDqq6Ir9gZVJ3R728hRmkVYJHVfNaHzVnIzw/nmWz3p78L6RXN42OK1k/cU3B+r7M9w== X-Received: by 2002:ae9:f812:0:b0:77e:fba3:4f32 with SMTP id x18-20020ae9f812000000b0077efba34f32mr1152322qkh.136.1701526543353; Sat, 02 Dec 2023 06:15:43 -0800 (PST) Received: from localhost (114.66.194.35.bc.googleusercontent.com. [35.194.66.114]) by smtp.gmail.com with ESMTPSA id br30-20020a05620a461e00b0077d742fb27esm2452534qkb.49.2023.12.02.06.15.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 06:15:42 -0800 (PST) Date: Sat, 02 Dec 2023 09:15:42 -0500 From: Willem de Bruijn To: Jesper Dangaard Brouer , Willem de Bruijn , "Song, Yoong Siang" , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Bjorn Topel , "Karlsson, Magnus" , "Fijalkowski, Maciej" , Jonathan Lemon , Alexei Starovoitov , Daniel Borkmann , John Fastabend , Stanislav Fomichev , Lorenzo Bianconi , Tariq Toukan , Willem de Bruijn , Maxime Coquelin , Andrii Nakryiko , Mykola Lysenko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Hao Luo , Jiri Olsa , Shuah Khan , Alexandre Torgue , Jose Abreu , Andre Fredette Message-ID: <656b3c0ebb103_1a6a2c2947d@willemb.c.googlers.com.notmuch> In-Reply-To: <179a4581-f7df-4eb1-ab67-8d65f856a2fe@kernel.org> References: <20231201062421.1074768-1-yoong.siang.song@intel.com> <6569f71bad00d_138af5294d@willemb.c.googlers.com.notmuch> <179a4581-f7df-4eb1-ab67-8d65f856a2fe@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Message-ID-Hash: 4XJCAKJD4GCBOX3HL5XQF7TEN3EOCLVR X-Message-ID-Hash: 4XJCAKJD4GCBOX3HL5XQF7TEN3EOCLVR X-MailFrom: willemdebruijn.kernel@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-doc@vger.kernel.org" , "bpf@vger.kernel.org" , "xdp-hints@xdp-project.net" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kselftest@vger.kernel.org" X-Mailman-Version: 3.3.8 Precedence: list Subject: [xdp-hints] Re: [PATCH bpf-next v2 0/3] xsk: TX metadata txtime support List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Jesper Dangaard Brouer wrote: > > > On 12/1/23 16:09, Willem de Bruijn wrote: > > Song, Yoong Siang wrote: > >> On Friday, December 1, 2023 6:46 PM, Jesper Dangaard Brouer wrote: > >>> On 12/1/23 07:24, Song Yoong Siang wrote: > >>>> This series expands XDP TX metadata framework to include ETF HW offload. > >>>> > >>>> Changes since v1: > >>>> - rename Time-Based Scheduling (TBS) to Earliest TxTime First (ETF) > >>>> - rename launch-time to txtime > >>>> > >>> > >>> I strongly disagree with this renaming (sorry to disagree with Willem). > >>> > >>> The i210 and i225 chips call this LaunchTime in their programmers > >>> datasheets, and even in the driver code[1]. > >>> > >>> Using this "txtime" name in the code is also confusing, because how can > >>> people reading the code know the difference between: > >>> - tmo_request_timestamp and tmo_request_txtime > >>> > >> > >> Hi Jesper and Willem, > >> > >> How about using "launch_time" for the flag/variable and > >> "Earliest TxTime First" for the description/comments? > > > > I don't follow why you are calling the feature: > - "Earliest TxTime First" (ETF). > - AFAIK this just reference an qdisc name (that most don't know exists) > > > > I don't particularly care which term we use, as long as we're > > consistent. Especially, don't keep introducing new synonyms. > > > > The fact that one happens to be one vendor's marketing term does not > > make it preferable, IMHO. On the contrary. > > > > These kind of hardware features are defined as part of Time Sensitive > Networking (TSN). > I believe these TSN features are defined as part of IEEE 802.1Qbv (2015) > and according to Wikipedia[2] incorporated into IEEE 802.1Q. > > [2] https://en.wikipedia.org/wiki/Time-Sensitive_Networking > > > > SO_TXTIME is in the ABI, and EDT has been used publicly in kernel > > patches and conference talks, e.g., Van Jacobson's Netdev 0x12 > > keynote. Those are vendor agnostic commonly used terms. > > > > I agree that EDT (Earliest Departure Time) have become a thing and term > in our community. > We could associate this feature with this. > I do fear what hardware behavior will be it if I e.g. ask it to send a > packet 2 sec in the future on i225 which max support 1 sec. > Will hardware send it at 1 sec? > Because then I'm violating the *Earliest* Departure Time. That should definitely not happen. At least not on a device that implements EDT semantics. This relates to Jakub's question in the previous thread on whether this mechanism allows out-of-order transmission or maintains FIFO behavior. That really is device specific. Older devices only support this for low rate (PTP) and with a small fixed number of outstanding requests. For pacing offload, devices need to support up to linerate and out-of-order. I don't think we want to enforce either in software, as the hardware is already out there. But it would be good if drivers can somehow label these capabilities. Including programmable horizon. It is up to the qdisc to ensure that it does not pass packets to the device beyond its horizon. ETF and FQ already have a concept of horizon. And a way to queue errors for packets out of bound (SO_EE_CODE_TXTIME_..). > > > But as long as Launch Time is not an Intel only trademark, fine to > > select that. > > The IEEE 802.1Qbv is sometimes called Time-Aware Shaper (TAS), but I > don't like to for us to name this after this. This features is simply > taking advantage of exposing one of the hardware building blocks > (controlling/setting packet "launch time") that can be used for > implementing a TAS. > > I like the name "launch time" because it doesn't get easily confused > with other timestamps, and intuitively describes packet will be send at > a specific time (likely in future). > > --Jesper Understood on your point that txtime and tx_timestamp are too similar. As said, I don't care strongly. Launch time sounds fine to me. Others can speak up if they disagree. I take launch time as a less strict than EDT: it is a request to send at a certain time, with no strict definition on uncertainty. While EDT more strictly ensures that a packet is not sent before the timestamp.