From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1FA2C31E47 for ; Wed, 12 Jun 2019 16:03:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B7EC821734 for ; Wed, 12 Jun 2019 16:03:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="I19GNgrC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730232AbfFLQDy (ORCPT ); Wed, 12 Jun 2019 12:03:54 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:60559 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727111AbfFLQDx (ORCPT ); Wed, 12 Jun 2019 12:03:53 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id B8C7E220F4; Wed, 12 Jun 2019 12:03:52 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 12 Jun 2019 12:03:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=A1j1bAJmy08T5h2IJCNTSQiFw3SBRP+6L7SLEibO1rY=; b=I19GNgrC 3nv5kO9SRVZVa58r1PUz4vKlCHR0XvyEofwR92jnkFqUhLcKR6J0f9aOn4ABHWCn 25IT1UE+Mt3WVaMC9IGDMP9xNTlIY5hUwT6BxQoY6fD6nn43Olvx2EanY/u3sw2F gjvMIChv6Afeg0Oqf/wM/W4BRwKHQMEVl16xBQMfSUnf+pneWeALSGbEU0bSHskz NAhF3yqd9jHRYLIcYYiR0tErIiSIJP8QJznoJVBYqNhppBym+Vnm+j87VSxZCwHV eo39/Bk+n/5xpACei7iWdqqr1petfb0958XeE2pLEUnDVJy6r6x9MQMH0jErMAiY zwDp69PLakA/oQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudehjedguddtudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpeforghrthihnhgrshcurfhumhhpuhhtihhsuceomheslhgr mhgsuggrrdhltheqnecukfhppeefuddrudeigedruddvuddrfedvnecurfgrrhgrmhepmh grihhlfhhrohhmpehmsehlrghmsggurgdrlhhtnecuvehluhhsthgvrhfuihiivgepud X-ME-Proxy: Received: from localhost.localdomain (xdsl-31-164-121-32.adslplus.ch [31.164.121.32]) by mail.messagingengine.com (Postfix) with ESMTPA id A718638008C; Wed, 12 Jun 2019 12:03:51 -0400 (EDT) From: Martynas Pumputis To: netdev@vger.kernel.org Cc: bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net, m@lambda.lt Subject: [PATCH bpf v2 2/2] bpf: sync BPF_FIB_LOOKUP flag changes with BPF uapi Date: Wed, 12 Jun 2019 18:05:41 +0200 Message-Id: <20190612160541.2550-2-m@lambda.lt> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190612160541.2550-1-m@lambda.lt> References: <20190612160541.2550-1-m@lambda.lt> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Sync the changes to the flags made in "bpf: simplify definition of BPF_FIB_LOOKUP related flags" with the BPF uapi headers. Doing in a separate commit to ease syncing of github/libbpf. Signed-off-by: Martynas Pumputis --- tools/include/uapi/linux/bpf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index 63e0cf66f01a..a8f17bc86732 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h @@ -3376,8 +3376,8 @@ struct bpf_raw_tracepoint_args { /* DIRECT: Skip the FIB rules and go to FIB table associated with device * OUTPUT: Do lookup from egress perspective; default is ingress */ -#define BPF_FIB_LOOKUP_DIRECT BIT(0) -#define BPF_FIB_LOOKUP_OUTPUT BIT(1) +#define BPF_FIB_LOOKUP_DIRECT (1U << 0) +#define BPF_FIB_LOOKUP_OUTPUT (1U << 1) enum { BPF_FIB_LKUP_RET_SUCCESS, /* lookup successful */ -- 2.21.0