Received: by 10.223.176.46 with SMTP id f43csp319949wra; Fri, 19 Jan 2018 18:28:50 -0800 (PST) X-Google-Smtp-Source: AH8x2245W1hngIGcdw++wVh0/jWGRbmG2H7zPQ0Wi3zyuaX4aehVGpEk5Tyw1W263UHLUYss+qb8 X-Received: by 10.101.82.1 with SMTP id o1mr508765pgp.259.1516415330132; Fri, 19 Jan 2018 18:28:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516415330; cv=none; d=google.com; s=arc-20160816; b=z4LOCdMKikie+Uykqx/SQriCuHzWEZUBh8iPFbMKrAxbc7o73MF/0mz6ZsJ0DFXDSU EC7QPuNfTnEd7bCTlZ9IgJ2Xw96NGqYAOgPqiHXqQcZ91QPwBPFK/grLmvJc54Ry6xpQ q8eusWgGz3600fMaWTrIO/SVB5yz5VyZMQ90qJDZLTM787Gbmn29odUsxHAeO7HoG8Jk NoTZMu/Xio1YSNi1rXKmfJd+19l5AxgXKVSfZ6etgLhM5tobQA/a/iRnu0jxlvRQuuyP K2g1QX5hNDiIk0u76rmbhK7kRDii4otoZE7qIyuq1nKWflAyuP2FwNy6X1tTCg8qVs7G ubTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=pSjD1oVgsC4YuX5cfY3zl5lxdBAUXk0+7O3mDT3ma+A=; b=S4/q/+vsXkZBu+S8cWT+Axa83oz7X2rDyvpc/Tn86QSY0vDnZYfYmlnUMKOTmiMynw cxEN4OSOR3CXw83e2BFN16G2Yok5STpWI973hKywHOEpiQYSxJaeC002244XgIuVxeI0 pPEQTHy+rQ9oN7kriDen8kRiFCRN2GJ1R+n1MZys9OSkdIXhvzrtu43fpsNwXoqY8Aro b6KvdfmtG0amQf8xEKHF2SwWT47Oq6vLmd3BRncnxPTDKuBmVn1GoVDubeJV7XTOJeKf TOOqcFUl+d0rXUIiKXjyoz80ZRS2ct+OH+RivohCGCCSrzCrEnNKIPfROdmFhsNI7lOT eMag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kbU5iaYz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q24-v6si1313477pll.825.2018.01.19.18.28.35; Fri, 19 Jan 2018 18:28:50 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=kbU5iaYz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756446AbeATC2E (ORCPT + 99 others); Fri, 19 Jan 2018 21:28:04 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:39508 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756249AbeATC17 (ORCPT ); Fri, 19 Jan 2018 21:27:59 -0500 Received: by mail-pf0-f193.google.com with SMTP id e11so2730529pff.6; Fri, 19 Jan 2018 18:27:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=pSjD1oVgsC4YuX5cfY3zl5lxdBAUXk0+7O3mDT3ma+A=; b=kbU5iaYzT8XGpOt/5jjw5ZZhXjtWVDu5mSGFcKcTL2p4M7HIBYWI3Dkm2rq2Divmrh Zx1TXq8+hwHbDRF6vr1EEHi8l18if+WSVh9BWMphPp/KqNorhBcVcYEZMPwG0O9oOJIV GLVdwUMQRdZ3ckRhtVoG07cYEVMrEBDf5ApQXK/p6pej6bcc60OepI07DnvclEf1YYt8 N7KFFbAi4tM+50paz5KbBlPLfIsjdxRoTM5n4V6eUY3ILLgmCGZwhyWdUJvURxHtFoYt HAOcoI81/zhR00vpFQxcMtFixt1gtr8yCeXtZkZg1M1MkvtT5LMc1sQp13DZxcZKR1uE OLmg== 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:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=pSjD1oVgsC4YuX5cfY3zl5lxdBAUXk0+7O3mDT3ma+A=; b=BAKqLPZTGJjGpqZ3vYT/5Z9F9hvIEaaeOU8YJANKxJ4SIrOmj16Cfb3B+yn6vmhT/O mJTUH+nnEVN+MTAkP+PQt0ISHQGv6/ys9RMeC3BhwV6cNR8JlNlOLOp6OszXv6eQ1UvK bp37NC8CcNYLaTGHIMsIXBbiKav5r9c7biVduQ5pqLbKlxzGAzYqwhv4EKMGCtzWZbVv ls8Piw4g8596C+NlGHdue0T9zBQmZzVVkt7RiXNH+aW05rivAHmtfMUw7TH0TWZJ2SUh 6IlGe9xoJh7pIHVUry1SOgY6q4drmpFaOFsCprU/xjS85JCbOOEH0SzKDp28vtRm1Ao8 waGA== X-Gm-Message-State: AKwxytcOHPKabrH3uZVducaJ26ugZB3zfVP8zZ7BR5b1T1NMeXcXIfnQ YZnJcgjeLk/A5QT+KV/9dng= X-Received: by 10.98.102.135 with SMTP id s7mr590121pfj.209.1516415278777; Fri, 19 Jan 2018 18:27:58 -0800 (PST) Received: from ast-mbp ([2620:10d:c090:180::dd55]) by smtp.gmail.com with ESMTPSA id k13sm20145584pfj.38.2018.01.19.18.27.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jan 2018 18:27:57 -0800 (PST) Date: Fri, 19 Jan 2018 18:27:55 -0800 From: Alexei Starovoitov To: Daniel Borkmann Cc: Eric Leblond , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH bpf-next 0/4] libbpf: add XDP binding support Message-ID: <20180120022753.psuzgzmxqaubh5t3@ast-mbp> References: <1516318537.24936.7.camel@regit.org> <20180118234332.28996-1-eric@regit.org> <2a008274-a09d-71ed-4c1e-5d7aa2bb8797@iogearbox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2a008274-a09d-71ed-4c1e-5d7aa2bb8797@iogearbox.net> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 20, 2018 at 03:00:37AM +0100, Daniel Borkmann wrote: > On 01/19/2018 12:43 AM, Eric Leblond wrote: > > Hello, > > > > This patchset rebases the libbpf code on latest bpf-next code and addresses > > remarks by Daniel. > > Ok, I think it's a good start. We should later on clean up the > netlink handling code a bit, but that's all internal and can be > done in a second step. Applied to bpf-next, thanks Eric. Sorry, Eric, Daniel. I had to revert this patch set. It breaks build on systems where headers are not the most recent. Since libbpf is used by perf it has to be built cleanly on centos7 at least. The errors I got: bpf.c: In function ‘bpf_set_link_xdp_fd’: bpf.c:456:23: error: ‘SOL_NETLINK’ undeclared (first use in this function) if (setsockopt(sock, SOL_NETLINK, NETLINK_EXT_ACK, ^~~~~~~~~~~ bpf.c:456:23: note: each undeclared identifier is reported only once for each function it appears in bpf.c:456:36: error: ‘NETLINK_EXT_ACK’ undeclared (first use in this function) if (setsockopt(sock, SOL_NETLINK, NETLINK_EXT_ACK, ^~~~~~~~~~~~~~~ nlattr.c: In function ‘nla_dump_errormsg’: nlattr.c:152:34: error: ‘NLMSGERR_ATTR_MAX’ undeclared (first use in this function) struct nla_policy extack_policy[NLMSGERR_ATTR_MAX + 1] = {