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=-10.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,USER_AGENT_GIT autolearn=ham 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 76EE4C43387 for ; Fri, 18 Jan 2019 06:13:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3DD2A2086D for ; Fri, 18 Jan 2019 06:13:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547791984; bh=vqgWLFQDWGoaq8kWoomu6NBz6rnnUtP6ZQUDhoVS/EA=; h=From:To:CC:Subject:Date:In-Reply-To:References:List-ID:From; b=pvuLS5pEw/BymFyGKy0hvIE918FYmtvxydXmFsb2/l5VKBFywW34j3PMG8o2p6V7p ge3qlcKHXlOBLGQ71sPLDd9i2wGDrcWxMzJtwrvYKx2SkJpXqZd3ay4GUjj3rGJO55 yn0iCoqILQmeer00meLsB+b9yfY40wRgp6maEkWI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727158AbfARGND (ORCPT ); Fri, 18 Jan 2019 01:13:03 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:46314 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727084AbfARGND (ORCPT ); Fri, 18 Jan 2019 01:13:03 -0500 Received: from pps.filterd (m0001255.ppops.net [127.0.0.1]) by mx0b-00082601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x0I6CkYg024362 for ; Thu, 17 Jan 2019 22:13:02 -0800 Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0b-00082601.pphosted.com with ESMTP id 2q317a9cav-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 17 Jan 2019 22:13:01 -0800 Received: from mx-out.facebook.com (2620:10d:c0a1:3::13) by mail.thefacebook.com (2620:10d:c021:18::175) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.1.1531.3; Thu, 17 Jan 2019 22:13:00 -0800 Received: by devbig007.ftw2.facebook.com (Postfix, from userid 572438) id 5D4C5760E16; Thu, 17 Jan 2019 22:13:00 -0800 (PST) Smtp-Origin-Hostprefix: devbig From: Alexei Starovoitov Smtp-Origin-Hostname: devbig007.ftw2.facebook.com To: CC: , , , Smtp-Origin-Cluster: ftw2c04 Subject: [PATCH v2 bpf-next 7/9] tools/bpf: sync uapi/bpf.h Date: Thu, 17 Jan 2019 22:12:58 -0800 Message-ID: <20190118061300.2538144-8-ast@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190118061300.2538144-1-ast@kernel.org> References: <20190118061300.2538144-1-ast@kernel.org> X-FB-Internal: Safe MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-18_04:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org add BPF_F_LOCK definition to tools/include/uapi/linux/bpf.h Signed-off-by: Alexei Starovoitov --- tools/include/uapi/linux/bpf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index 30f9dfd40f13..c23eaa284a45 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h @@ -266,6 +266,7 @@ enum bpf_attach_type { #define BPF_ANY 0 /* create new element or update existing */ #define BPF_NOEXIST 1 /* create new element if it didn't exist */ #define BPF_EXIST 2 /* update existing element */ +#define BPF_F_LOCK 4 /* spin_lock-ed map_lookup/map_update */ /* flags for BPF_MAP_CREATE command */ #define BPF_F_NO_PREALLOC (1U << 0) -- 2.17.1