Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2700449pxu; Mon, 7 Dec 2020 13:14:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMyS/SOSy42V2/a3ku2Csbbz5Ks2SD8ryGYHPi5hKoc4/ibY8Zxu5pVmjfROppIJqdh87n X-Received: by 2002:a17:906:1151:: with SMTP id i17mr21113079eja.250.1607375662283; Mon, 07 Dec 2020 13:14:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607375662; cv=none; d=google.com; s=arc-20160816; b=UJc/gQRbPeWneVvXh4cPVIM2CGjs0YniD2Z1VW9dEst6PWjuMWEazSnPSUoc4vZ/6w C0UckTKsNwMZsWr1ooZ5Gim/v6+VSu5B2ABe/nU8IxfIz7h6lpteJg4AdHndHNiiCncO f1JSgWsj6LNqscE82LprJwg/wNHIpXV4xnNc7dy6r2SSTLNmalJ1NZGwKr/QrvNBqgy4 VLD+QgvANxyRlTQpKvjAKlYjrpsBnfDpZ1sBuFMWiwi5D1g4qx6N7eF89rl0WabOv5Cv j5MlP9QFxlcwntxVBQ0WTswsBkoPc22DUBsWAfZTbPYj3LxC6Wo9Ln2MeyhoEDdPPZBG sNyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:subject :references:in-reply-to:message-id:cc:to:from:date:dkim-signature; bh=P/ijqFbV8KBugVxLlNX1Y58zrs/i9xvHOBeofNv4zLg=; b=a0AIhBhWN+8K7WDt9VmErVylyvfcJEqwH1c15C1tx9LP3YKiOcfORnQBJTcRMP9EV4 pyQ6GWpCGk4so1E1G9BQ0a+rIWs4RyTb3/xLiBH0jz/MHvHIC0D3cS+y9C3iJ1Lq5mVS HH0YzooiRrjUbGkntatgllT2d7RTcbI9agOlkm9F2IQlhQ9wmxfUjLCWp100PxD8sm/u o6VF3rlXlSrS9YRug1KVvtWYwU/V6RbmU8bL/J5ou+sGIB94A5VgYnUzG50U5UmdNNAk XH/K4e//sHUWoVxSa6MxWnYmwBwTzWUyH34BgP9F8ATox/IfCzcHIPZZ+eWpvRh81wfI 7ywA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FS5Jxu9N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b5si8877372edz.214.2020.12.07.13.13.59; Mon, 07 Dec 2020 13:14:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FS5Jxu9N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726164AbgLGVJq (ORCPT + 99 others); Mon, 7 Dec 2020 16:09:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725885AbgLGVJp (ORCPT ); Mon, 7 Dec 2020 16:09:45 -0500 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6EC1C0617B0; Mon, 7 Dec 2020 13:08:59 -0800 (PST) Received: by mail-ot1-x32b.google.com with SMTP id y24so13912139otk.3; Mon, 07 Dec 2020 13:08:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-transfer-encoding; bh=P/ijqFbV8KBugVxLlNX1Y58zrs/i9xvHOBeofNv4zLg=; b=FS5Jxu9NzE+gitHHvefNFkAi9gWtnK/8Qje+xEm7QmROmRpVjEeUVS3CM1sEuXNAd0 IATXAWwgIOy/dXpXWZpGsLA26HGjj0+zfCtIRlFabIZiE5P30MroKOXwtxoo9g6w9ahJ L13jJXjLAG0/MZl3gNr4Ei1JWo6b5Mp1+8UOmv8UUNO6UAYYUxaX+sjvDzOqsi6jw7Ic tfEfWGLEFkF8/Cy6PBx0DKArdGUPmN0I1I2RMIotWNM3jUiedTbwZCadJ3fqNtSMWOEB vQgm1lKmawiEpbNISuk13M51Aza93wqfoVapAS5o8xu50PNPVLLWUhBwJ1f+RatcaMBW ww1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version:content-transfer-encoding; bh=P/ijqFbV8KBugVxLlNX1Y58zrs/i9xvHOBeofNv4zLg=; b=PRNu2jqvs0Cm+ffxFisJ+LETtW6U3upDlN1DTuU8CtUuHNYaoMJ3ryCUkZCWjlMuf5 l2pGEjPHOTYaef5VNMpQ/4FmQFunWy6UsyL3upxT9phRJNyAFdNOzQZWD8+nGnUUtLvu 3hxHDIL4J7ajOAEZmBxsLIvCwFiFUy32oXcdH90cMcWl0NLozaP8OyhcnxmmeH0Eu+OF gnqIZcaYFXEDDNLtyaLT55G+RtRyrrg5lWLaFVahmoXk7fNCkaHjIzLquNn59djj7+HT sBytafdfn1OSvyTCu03PwBsLXVfQUY8krVQykR5s8u2zQcMLFrJjV+nb40VwWaS+J5ov Alag== X-Gm-Message-State: AOAM533r353EicNUF4rrdPV0w2zwDv1AsMetT8jyhxbAC7Yjvsfhc/4Z PDCdpOTARqvtJ57RvPFEToc= X-Received: by 2002:a05:6830:3154:: with SMTP id c20mr15098765ots.286.1607375338793; Mon, 07 Dec 2020 13:08:58 -0800 (PST) Received: from localhost ([184.21.204.5]) by smtp.gmail.com with ESMTPSA id t25sm2905926otj.13.2020.12.07.13.08.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Dec 2020 13:08:58 -0800 (PST) Date: Mon, 07 Dec 2020 13:08:52 -0800 From: John Fastabend To: Brendan Jackman , bpf@vger.kernel.org Cc: Alexei Starovoitov , Yonghong Song , Daniel Borkmann , KP Singh , Florent Revest , linux-kernel@vger.kernel.org, Jann Horn , Brendan Jackman Message-ID: <5fce99e440d06_5a962088e@john-XPS-13-9370.notmuch> In-Reply-To: <20201207160734.2345502-4-jackmanb@google.com> References: <20201207160734.2345502-1-jackmanb@google.com> <20201207160734.2345502-4-jackmanb@google.com> Subject: RE: [PATCH bpf-next v4 03/11] bpf: x86: Factor out a lookup table for some ALU opcodes Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Brendan Jackman wrote: > A later commit will need to lookup a subset of these opcodes. To > avoid duplicating code, pull out a table. > > The shift opcodes won't be needed by that later commit, but they're > already duplicated, so fold them into the table anyway. > > Signed-off-by: Brendan Jackman > --- Acked-byy: John Fastabend