From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mail.toke.dk (Postfix) with ESMTPS id 4CD4A9C3407 for ; Fri, 18 Nov 2022 01:29:21 +0100 (CET) Authentication-Results: mail.toke.dk; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=i0ONzmrU DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668731360; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+itpjDcga9mH0LamyY/OkXi7TD9WUdNLP2cV3k9ii9k=; b=i0ONzmrUpE9/3Q43a/TClHQOF/8AkP1SbZL3inSKq+L91TQ2dkqYUfSkfrpIhQwoK+fd6X h2JhdjYXrqH5eDiVdGH2GPl+8hRCV/gEDG1NWtS+U9eyaEtIqN68HmE1WFO68AC7CoKm8x 11aGwaQlk1H/o18a7uqLaYIRai1gXi4= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-42-unZA_RzXMRGd8KcQMDZGLg-1; Thu, 17 Nov 2022 19:29:19 -0500 X-MC-Unique: unZA_RzXMRGd8KcQMDZGLg-1 Received: by mail-ej1-f70.google.com with SMTP id dn14-20020a17090794ce00b007ae5d040ca8so1985960ejc.17 for ; Thu, 17 Nov 2022 16:29:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+itpjDcga9mH0LamyY/OkXi7TD9WUdNLP2cV3k9ii9k=; b=sJ6ra4W8UFdN+GEB2aRLmRjee5ODJWBlbiYIaeCLPTq+ToEXfRjaJ6ObmtjgEFa4MP 5X2UxLz+K/tlFaIQjO6vr75hLb7eVRe48UU9igFv7AmQ1xp61unuRbddtxWN+gxyvddu TMUrRTZn//AhmQENwWLQcO3duFGETAaL27eKsg4OJ6rCJ7MNn9ObEr3BO74Udeky0XqU +wf8d8yEs0DbWuzMAJiGnQdYpkOyeLC9mQuo1Bd7eV6eVW+F+aQX1Fc4mMHk4WwhOZ2L BfqDbL6iYvW6yssLTtZ1JYvLKbSuW7cVtLpJ5Di3zrdFo+6njR2j88CDxWc3IfIIEwCZ ++bA== X-Gm-Message-State: ANoB5pnIWbB2hYy6g0WhxHY7v4EHP1dihOmIfU3oc/6SBtCShLgE7gFu 47GTDffJ+bPm2Lv8eFSBqBrN+IbfXpu+xliRcIbhhC2DgOfP+0dpkXKWT4ITeeLubydOgceBdo+ 8Cv36KzRxseVhSKLAsYHO X-Received: by 2002:a05:6402:e0d:b0:466:4168:6ea7 with SMTP id h13-20020a0564020e0d00b0046641686ea7mr4041700edh.273.1668731357199; Thu, 17 Nov 2022 16:29:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf7JF1PQRWwlPFnvVEFf83RM2J/Pz35scEZj/jJa/EJHPfBYm4P9LtURCOCKlui+6HqGeE+lxA== X-Received: by 2002:a05:6402:e0d:b0:466:4168:6ea7 with SMTP id h13-20020a0564020e0d00b0046641686ea7mr4041673edh.273.1668731356233; Thu, 17 Nov 2022 16:29:16 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id en17-20020a056402529100b00467960d7b62sm1131575edb.35.2022.11.17.16.29.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 16:29:15 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 0F97E7A702D; Fri, 18 Nov 2022 01:29:15 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Alexei Starovoitov In-Reply-To: References: <20221115030210.3159213-1-sdf@google.com> <20221115030210.3159213-6-sdf@google.com> <87h6z0i449.fsf@toke.dk> <8735ajet05.fsf@toke.dk> <6374854883b22_5d64b208e3@john.notmuch> <34f89a95-a79e-751c-fdd2-93889420bf96@linux.dev> <878rkbjjnp.fsf@toke.dk> <6375340a6c284_66f16208aa@john.notmuch> <637576962dada_8cd03208b0@john.notmuch> <87wn7t4y0g.fsf@toke.dk> <874juxywih.fsf@toke.dk> X-Clacks-Overhead: GNU Terry Pratchett Date: Fri, 18 Nov 2022 01:29:15 +0100 Message-ID: <87sfihxfz8.fsf@toke.dk> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: LMCD3PS6T56JMA6TXQSCTPZW4HJ3TLBI X-Message-ID-Hash: LMCD3PS6T56JMA6TXQSCTPZW4HJ3TLBI X-MailFrom: toke@redhat.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: Stanislav Fomichev , John Fastabend , Martin KaFai Lau , bpf , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Song Liu , Yonghong Song , KP Singh , Hao Luo , Jiri Olsa , David Ahern , Jakub Kicinski , Willem de Bruijn , Jesper Dangaard Brouer , Anatoly Burakov , Alexander Lobakin , Magnus Karlsson , Maryam Tahhan , xdp-hints@xdp-project.net, Network Development X-Mailman-Version: 3.3.6 Precedence: list Subject: [xdp-hints] Re: [PATCH bpf-next 05/11] veth: Support rx timestamp metadata for xdp List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Alexei Starovoitov writes: > On Thu, Nov 17, 2022 at 3:46 PM Toke H=C3=B8iland-J=C3=B8rgensen wrote: >> >> > >> > Ack. I can replace the unrolling with something that just resolves >> > "generic" kfuncs to the per-driver implementation maybe? That would at >> > least avoid netdev->ndo_kfunc_xxx indirect calls at runtime.. >> >> As stated above, I think we should keep the unrolling. If we end up with >> an actual CALL instruction for every piece of metadata that's going to >> suck performance-wise; unrolling is how we keep this fast enough! :) > > Let's start with pure kfuncs without requiring drivers > to provide corresponding bpf asm. > If pure kfuncs will indeed turn out to be perf limiting > then we'll decide on how to optimize them. I'm ~90% sure we'll need that optimisation, but OK, we can start from a baseline of having them be function calls... -Toke