From patchwork Tue Jan 21 17:48:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Tu X-Patchwork-Id: 1226686 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=sU//nRQj; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 482GHv4pXKz9sR8 for ; Wed, 22 Jan 2020 04:49:13 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 846962014B; Tue, 21 Jan 2020 17:49:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Eox9rGa4Bn1g; Tue, 21 Jan 2020 17:49:06 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by silver.osuosl.org (Postfix) with ESMTP id 2474C20341; Tue, 21 Jan 2020 17:49:06 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0A1E8C1D80; Tue, 21 Jan 2020 17:49:06 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id DA231C0174 for ; Tue, 21 Jan 2020 17:49:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C1F2E847C5 for ; Tue, 21 Jan 2020 17:49:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DHNpSmiShBTk for ; Tue, 21 Jan 2020 17:49:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by fraxinus.osuosl.org (Postfix) with ESMTPS id EF4D9847C4 for ; Tue, 21 Jan 2020 17:48:59 +0000 (UTC) Received: by mail-pg1-f193.google.com with SMTP id x8so1877570pgk.8 for ; Tue, 21 Jan 2020 09:48:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=+X6TJpLmDslFq5RsBi3WeGO1NkY7yB6XACflxs14Qpg=; b=sU//nRQjq9lkhtsGxyQEnrcF8egmcE1vJ/CEij8Kfn4NUtYAYBwcQE/K/+MneL9uT3 4ebr48U+GaDq9mVyTHAuc4zKxjzBiUosRirVg48mYYg9SZtDhnuuFdZjE3mip3VWZLkN DXR5ZP50cMOzfLTwXi0k+fRV5Os0E176IFnx1VOXXtSm1opVeRbsMestefhdq33Oerdp eW8wDRABuMkDo8Gp4bBP90zNTfhpPqnFFOD9xpFQIU97B33nEqbWHuIFrf4Qo+lPGSzu aSqAkcpnZzZCXwcdl7jX/ZNr40rOz221Z4joqaRcwJnTQ8did1ymLSAXqycJB26mhxlX AjaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=+X6TJpLmDslFq5RsBi3WeGO1NkY7yB6XACflxs14Qpg=; b=izPHPsm79W/pKTjaBlHYXUczkoSP+ojidIgxQ/zbKZobvezlKdTwKI3Co7UzOEy3Kq IQSdddqK3Fgx5nVD5QHL64iCVnJ69IlI2RkE1qcWbDA0jipPehNTfJDvapZbnXSa2Rvz cWnfaizb4buO4WXHrp8fL/wMzFCloLQKRILwrf8AzTzxZL+dhjRy33c+0guJMb/BMSCP TuzZvL420bTK0y7cRGREQcMFY2WhWs3v9s3pqa3bgan3fiwcO4lNBn4m7o7m7jVGqFDU g2dDu/DHqrfNrh0abVJ+6Fx3D730842li+n4o0ChpORiKz7qMMRzB3hYE++KqwaqjOtZ Xf4w== X-Gm-Message-State: APjAAAUMd1SPqf9y271UsXjV2TRGI46gMkuvKU+FtXv2P6Gtf12+q5Cr vHi0FyPtdslK210zyO9sqaC30vKb X-Google-Smtp-Source: APXvYqwXI2S1fc/+98tissudxnuBdgZjjUsn+lP/l7K71rdAVbORp1BO9U8GR3R4Ie0HVK8U8IEJhQ== X-Received: by 2002:aa7:9145:: with SMTP id 5mr5637623pfi.74.1579628939333; Tue, 21 Jan 2020 09:48:59 -0800 (PST) Received: from sc9-mailhost2.vmware.com ([66.170.99.1]) by smtp.gmail.com with ESMTPSA id z64sm45317126pfz.23.2020.01.21.09.48.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Jan 2020 09:48:58 -0800 (PST) From: William Tu To: dev@openvswitch.org Date: Tue, 21 Jan 2020 09:48:28 -0800 Message-Id: <1579628908-23493-1-git-send-email-u9012063@gmail.com> X-Mailer: git-send-email 2.7.4 Subject: [ovs-dev] [PATCH] docs: Add header install command for afxdp. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" The 'XDP_RING_NEED_WAKEUP' and related flags are defined if_xdp.h, so after installing newer kernel, users have to update the kernel's header files, by doing: $ make headers_install INSTALL_HDR_PATH=/usr Otherwise the following error shows: /usr/local/include/bpf/xsk.h: In function 'xsk_ring_prod__needs_wakeup': /usr/local/include/bpf/xsk.h:82:21: error: 'XDP_RING_NEED_WAKEUP' undeclared \ (first use in this function) return *r->flags & XDP_RING_NEED_WAKEUP; Reported-by: Tomek Osinski Reported-at: https://osinstom.github.io/en/tutorial/ovs-afxdp-installation/ Signed-off-by: William Tu Acked-by: Ben Pfaff --- Documentation/intro/install/afxdp.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/intro/install/afxdp.rst b/Documentation/intro/install/afxdp.rst index c4685fa7ebac..2683d8301bb7 100644 --- a/Documentation/intro/install/afxdp.rst +++ b/Documentation/intro/install/afxdp.rst @@ -125,6 +125,7 @@ Second, go into the Linux source directory and build libbpf in the tools directory:: cd bpf-next/ + make headers_install INSTALL_HDR_PATH=/usr cd tools/lib/bpf/ make && make install make install_headers