From patchwork Tue Mar 24 18:12:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= X-Patchwork-Id: 221951 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=-6.9 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS 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 8CA53C43331 for ; Tue, 24 Mar 2020 18:13:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6AFCF2076E for ; Tue, 24 Mar 2020 18:13:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="WczF8mfM" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727668AbgCXSM7 (ORCPT ); Tue, 24 Mar 2020 14:12:59 -0400 Received: from us-smtp-delivery-74.mimecast.com ([216.205.24.74]:53759 "EHLO us-smtp-delivery-74.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727334AbgCXSM7 (ORCPT ); Tue, 24 Mar 2020 14:12:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585073578; 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=tSq0g3BWcscqwecq9OzTA1nIWwl388abRfl7XMKFSlI=; b=WczF8mfMJvFs4IxXJwssO/34NHR4Fo5+9mOrpvHQgt5XLBcLbVxqah9plUKabmdg4TiYju wDC9Tld9PhnVlrwhRjFDFXg2cWvsSpQ3YUErRKU1B7n54zp0IAHb0JR1ObUh96krUbnp65 4JDpVQF2V1YCUYosHhXVJgIancgRtk4= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-81-d93FnSG7PzqWKIEfAXXXDg-1; Tue, 24 Mar 2020 14:12:57 -0400 X-MC-Unique: d93FnSG7PzqWKIEfAXXXDg-1 Received: by mail-wr1-f72.google.com with SMTP id e10so6853088wrm.2 for ; Tue, 24 Mar 2020 11:12:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=tSq0g3BWcscqwecq9OzTA1nIWwl388abRfl7XMKFSlI=; b=BmSCguHE6TcRspZ2tkVQUCmYgMDWXq/zNHu45SspWcsKnGLPS/M8d2l9bfy93nj+Il g2jBvdXYbTbY1bvvSXKvTAWAxCR79dHvB26XWKMjeActDTR3NLUXIqI34z42KGCXsfJC nNiCSAFcwOjK7/9XXQ/br5VUrWXlY462MjsOXK8kYRom6IScatmvMQTsoIbm4ZPa59n4 DBVXJFUux0kNJn7HX5u7EOupE+UtK7H53GsSHjoCpyYwOh9xOvBWUg94H6jAWyTtRFF6 siaHMiz6Y+1Iv7rNEeP4mTGgNREi42kXdRVygijlPHfFY2XH1058oqhGBaTNlgHJy2kF tLjw== X-Gm-Message-State: ANhLgQ2SC3kW5kTCn9gwl7fZ+X5h7IfCdqoJn0lGQNzMTWLbLcPMhqF3 SpKKDBHFb9OJWx/FXpf3ifuytOPuLf7VX4VwBukNXZTHl1dIwXEWgMhKnsTZDKFo6qeHB3vTQL+ UfvCEnZZOhKole82A X-Received: by 2002:a05:600c:da:: with SMTP id u26mr7434896wmm.117.1585073575823; Tue, 24 Mar 2020 11:12:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtE2snWQd3U9Jm0nj2e7Xx4XiNovziigWM+YrFQhUJ7b6xuztOVXe52JbbBukTeNQtkOKfgkA== X-Received: by 2002:a05:600c:da:: with SMTP id u26mr7434876wmm.117.1585073575644; Tue, 24 Mar 2020 11:12:55 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id p22sm5281840wmg.37.2020.03.24.11.12.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Mar 2020 11:12:54 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 4002018158B; Tue, 24 Mar 2020 19:12:54 +0100 (CET) Subject: [PATCH bpf-next v3 2/4] tools: Add EXPECTED_ID-related definitions in if_link.h From: =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= To: netdev@vger.kernel.org Cc: bpf@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , Lorenz Bauer , Andrey Ignatov Date: Tue, 24 Mar 2020 19:12:54 +0100 Message-ID: <158507357420.6925.493303763242155249.stgit@toke.dk> In-Reply-To: <158507357205.6925.17804771242752938867.stgit@toke.dk> References: <158507357205.6925.17804771242752938867.stgit@toke.dk> User-Agent: StGit/0.22 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Toke Høiland-Jørgensen This adds the IFLA_XDP_EXPECTED_ID netlink attribute definition and the XDP_FLAGS_EXPECT_ID flag to if_link.h in tools/include. Signed-off-by: Toke Høiland-Jørgensen --- tools/include/uapi/linux/if_link.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/include/uapi/linux/if_link.h b/tools/include/uapi/linux/if_link.h index 024af2d1d0af..a6c14ae083e3 100644 --- a/tools/include/uapi/linux/if_link.h +++ b/tools/include/uapi/linux/if_link.h @@ -960,11 +960,12 @@ enum { #define XDP_FLAGS_SKB_MODE (1U << 1) #define XDP_FLAGS_DRV_MODE (1U << 2) #define XDP_FLAGS_HW_MODE (1U << 3) +#define XDP_FLAGS_EXPECT_ID (1U << 4) #define XDP_FLAGS_MODES (XDP_FLAGS_SKB_MODE | \ XDP_FLAGS_DRV_MODE | \ XDP_FLAGS_HW_MODE) #define XDP_FLAGS_MASK (XDP_FLAGS_UPDATE_IF_NOEXIST | \ - XDP_FLAGS_MODES) + XDP_FLAGS_MODES | XDP_FLAGS_EXPECT_ID) /* These are stored into IFLA_XDP_ATTACHED on dump. */ enum { @@ -984,6 +985,7 @@ enum { IFLA_XDP_DRV_PROG_ID, IFLA_XDP_SKB_PROG_ID, IFLA_XDP_HW_PROG_ID, + IFLA_XDP_EXPECTED_ID, __IFLA_XDP_MAX, };