Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp235385ybi; Fri, 7 Jun 2019 07:15:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEibLvvrpPMTRQQkAwmABTBhvZYzpAP5AJkw1axiHfrGbFIcIBxf/w0KS1vI7G4QRRu0IK X-Received: by 2002:a63:2ad2:: with SMTP id q201mr2758346pgq.94.1559916919695; Fri, 07 Jun 2019 07:15:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559916919; cv=none; d=google.com; s=arc-20160816; b=GiDh9ECoBxcNtESzN+mcOb6h7fwzmJcaqb1RpDl4nOF86rLnMsfKYmWZb3uuhgH62g Xf6OEFFhxU8FCAjtlEFmfAwMGauUe86FlFxUGqGjLoBI6gAnv1XdLIYSXumAMTNQFMDj AHUoOMzelwdyfuKSdXxlafLz6UWSI4wWFPJNvqdqycBqAB0ViFE6QH4C3WuXhrnkjoKm qkkrK4TjzSNn0Dgmtef3MW3oaoNmjIP+9+32+jf1lr6YGehUvXDY73SDfBGY1jI29JDI bTjq4w4WBHRNqANXIKv7pGSojS7kkZ2eBbdaRFWl3/QVyuDdwPE+QOypKGEHPTvQ2+rt TerA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Xp4rSZI5WhV+6Sat4AULJy3MtrPBifsfu9gUED/8PtM=; b=d8vFr/4mgmxhSSFz4vzqllY3/yeQGADSrqxQteRbQAwaknYo2l2WIAedzc9J1Kh9pD 5tdk5oegyMWqMHPw2UC9T7vNqw4eUe7fsfi3u9HMn+QpnzZsfTfPFHa2k0NRyX6ezBcK I1h0ZUcSm207yKuDpJkwPCTBA76OZiaLi9kjvAdRGvNHirpiIcZV4KbdVjF4nDxVjKVP D4HCvHvMb3qqPDU7em+E+CxYrD48JYy5AFdy7KVVyvlTNUhvB6iPf0NopO2L+fKy7GqG p4RclbjE7D4rN3sSvPGVGniNx2s0jfhbD5MD9FndpdpGO0ASL+tyXov5EtdiBazNHVOa j0DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kinvolk.io header.s=google header.b=j5fa4Xr7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o4si1725521pfo.92.2019.06.07.07.15.02; Fri, 07 Jun 2019 07:15:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kinvolk.io header.s=google header.b=j5fa4Xr7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729496AbfFGOLS (ORCPT + 99 others); Fri, 7 Jun 2019 10:11:18 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:43826 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729459AbfFGOLP (ORCPT ); Fri, 7 Jun 2019 10:11:15 -0400 Received: by mail-ed1-f65.google.com with SMTP id w33so3213748edb.10 for ; Fri, 07 Jun 2019 07:11:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kinvolk.io; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Xp4rSZI5WhV+6Sat4AULJy3MtrPBifsfu9gUED/8PtM=; b=j5fa4Xr7EV3n7eHh1YEh37F4gLNUjhYvDUz4lIuHeMDiEgRSAkv6SQOiAxlkqObRJs jPFxqQI4VqeibG3Mb/hOzrk2jSsXV46nL/yVFNtre5PROvxr3dwiMwLpacpOipTz70EQ IMFUGoSJBNeL82mmABWec4P0UZrCcMTylCJSI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Xp4rSZI5WhV+6Sat4AULJy3MtrPBifsfu9gUED/8PtM=; b=IIIHqI5pKYuuGwlIGIirDc+XzjxLMupfs6Ol3FMUKHdUJUbp4ZbwC8Y1EckBdrUzpt Y5LUpHp9KRpousmSBQGUGtJbylQSk4pIGTtgRJWHv2PiudqOuRXiSjMaULGtT+TMT9o1 1HAjamCplKM9duoQJRljWzUMzjZv0M10R+wLZY7u6B4NCmz4hgwNutOyctKXVk9rI4kT +ljS3hexezLOPf2j2DFh2D4lrfkhLq0xfYO5sqlWweZySh1VxF0PAQIOxOjYX2othwsS VfLvd5udtf1XagHesTGfIAP6v2j0AcvfiMAi1a2YL4P6gDy7WW/kTIbL/EaOQ0np5NBN 9H0w== X-Gm-Message-State: APjAAAX0jV4ksgk2N9VU6/Lgeabqp3BLkR+VJ5nl0rCzEgT4AepzGbmv uWUkzQNV2mMgpMztuSG/0vXlBA== X-Received: by 2002:a50:ec8e:: with SMTP id e14mr17918728edr.153.1559916673628; Fri, 07 Jun 2019 07:11:13 -0700 (PDT) Received: from locke-xps13.fritz.box (dslb-002-205-069-198.002.205.pools.vodafone-ip.de. [2.205.69.198]) by smtp.gmail.com with ESMTPSA id a40sm546116edd.1.2019.06.07.07.11.12 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 07 Jun 2019 07:11:13 -0700 (PDT) From: =?UTF-8?q?Iago=20L=C3=B3pez=20Galeiras?= To: john.fastabend@gmail.com, ast@kernel.org, daniel@iogearbox.net Cc: alban@kinvolk.io, krzesimir@kinvolk.io, bpf@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH bpf-next v5 2/4] bpf: sync bpf.h to tools/ for bpf_sock_ops->netns* Date: Fri, 7 Jun 2019 16:11:04 +0200 Message-Id: <20190607141106.32148-3-iago@kinvolk.io> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190607141106.32148-1-iago@kinvolk.io> References: <20190607141106.32148-1-iago@kinvolk.io> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alban Crequy The change in struct bpf_sock_ops is synchronised from: include/uapi/linux/bpf.h to: tools/include/uapi/linux/bpf.h Signed-off-by: Alban Crequy --- Changes since v2: - standalone patch for the sync (requested by Y Song) Changes since v4: - add netns_dev comment on uapi header (review from Y Song) --- tools/include/uapi/linux/bpf.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index 63e0cf66f01a..41f54ac3db95 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h @@ -3261,6 +3261,12 @@ struct bpf_sock_ops { __u32 sk_txhash; __u64 bytes_received; __u64 bytes_acked; + /* + * netns_dev might be zero if there's an error getting it + * when loading the BPF program. This is very unlikely. + */ + __u64 netns_dev; + __u64 netns_ino; }; /* Definitions for bpf_sock_ops_cb_flags */ -- 2.21.0