From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 69DE7111E; Tue, 27 Jun 2023 13:35:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1E91C433C8; Tue, 27 Jun 2023 13:35:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687872914; bh=TV1qg0oAArUuXRSZzw89Zq1glYP5kqNzvG4JVxR8jsc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ZVWM2DOQTPyNLM0jr058t8nyoWeZx05XtSj1kMXwvZrs61+O+oyOFvIBHWxgrptg+ EKxgkemPvjy1WtQU8bj2F7sRSvuU27r704GrrYiHomnpkte0s5pS3DZ7QU7o1OssMf ZgW7efuqCNMjYII3JmF+rlQnWN+YCrqdut4G47FvJhbKbyGLKZfS5+0o0fjKSzULuC o54npEkZQsItYBoSplxxv+92odkF9rpKxSJ/M5PLnXxY3M3+8wySjPJshDr5PJV65S wNZVQifM2lPH76Qgt0DJOTc+kIOhRE+v98W5f1iE+PWk8r8P1a6bXQKaRZDk7Lhp4o sIsTwrgxz5Jrg== Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 16905BBFF5A; Tue, 27 Jun 2023 15:35:12 +0200 (CEST) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Stanislav Fomichev , Alexei Starovoitov Cc: Jakub Kicinski , John Fastabend , Donald Hunter , bpf , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Hao Luo , Jiri Olsa , Network Development Subject: Re: [RFC bpf-next v2 11/11] net/mlx5e: Support TX timestamp metadata In-Reply-To: References: <20230622195757.kmxqagulvu4mwhp6@macbook-pro-8.dhcp.thefacebook.com> <649637e91a709_7bea820894@john.notmuch> <20230624143834.26c5b5e8@kernel.org> X-Clacks-Overhead: GNU Terry Pratchett Date: Tue, 27 Jun 2023 15:35:12 +0200 Message-ID: <878rc5hvu7.fsf@toke.dk> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Stanislav Fomichev writes: > Ack, let me see if I can fit tx csum into the picture. I still feel > like we need these dev-bound tracing programs if we want to trigger > kfuncs safely, but maybe we can simplify further.. FWIW, I absolutely think we should go with "attach to ifindex + dev bound" model instead of the "attach to driver kfunc and check ifindex in BPF". The latter may be fine for BPF kernel devs, but it's a terrible API for a dataplane, which IMO is what we're building here... -Toke