From patchwork Mon Sep 26 14:13:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gurucharan Shetty X-Patchwork-Id: 675347 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (archives.nicira.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id 3sjhHn4VTWz9ryr for ; Tue, 27 Sep 2016 10:17:56 +1000 (AEST) Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id 49AF6101FD; Mon, 26 Sep 2016 17:17:55 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx1e3.cudamail.com (mx1.cudamail.com [69.90.118.67]) by archives.nicira.com (Postfix) with ESMTPS id 02D79101FC for ; Mon, 26 Sep 2016 17:17:54 -0700 (PDT) Received: from bar5.cudamail.com (localhost [127.0.0.1]) by mx1e3.cudamail.com (Postfix) with ESMTPS id 5E0874200A9 for ; Mon, 26 Sep 2016 18:17:53 -0600 (MDT) X-ASG-Debug-ID: 1474935472-09eadd629385cb0001-byXFYA Received: from mx3-pf2.cudamail.com ([192.168.14.1]) by bar5.cudamail.com with ESMTP id UGURka9YgwECGTZ8 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 26 Sep 2016 18:17:52 -0600 (MDT) X-Barracuda-Envelope-From: guru.ovn@gmail.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.14.1 Received: from unknown (HELO mail-pf0-f195.google.com) (209.85.192.195) by mx3-pf2.cudamail.com with ESMTPS (AES128-SHA encrypted); 27 Sep 2016 00:17:52 -0000 Received-SPF: pass (mx3-pf2.cudamail.com: SPF record at _netblocks.google.com designates 209.85.192.195 as permitted sender) X-Barracuda-Apparent-Source-IP: 209.85.192.195 X-Barracuda-RBL-IP: 209.85.192.195 Received: by mail-pf0-f195.google.com with SMTP id q2so9769978pfj.0 for ; Mon, 26 Sep 2016 17:17:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=2qMBvylTnAB0EWIHym3EIPyFG2GjFmOqrI7HcjRavoA=; b=QfyNhwNqzuNYjsIg/dpw3xJGA+5lAxfxOuoMQJiw938q69iAZUOUwqSoq81ScIG0kD eW49OjgbL/PVtadjeUOkpzFqyl5gAJyzxWfbhSutG4NBu1v9d+/1KGAe0QreDGZMljeN gBr2t0OELcqsir7EuPswSwmYccamMMDPTcGNb5GgVZcVrCn7Jljs0hC3frovvuMhsrLt LXjDVVqk12/8MDaI96ZCATKtJcHRZqiN+pbS4jb2Up3ltz949UopVZ1aCw9tVmsQxA6Q WxePN2dVY3m5b75OzP6r/TudDiox/amAwPUpu9aIHSdDnK9O3p8RV6NzSQElCLBitp8S vHfA== X-Gm-Message-State: AE9vXwMbgfTxNyvrxbxBFRDEkZ52p0azzWMJBZGkgeEMJqE6JWfI1xkHPYh8nB8JK1MvyQ== X-Received: by 10.98.208.195 with SMTP id p186mr42492810pfg.90.1474935471775; Mon, 26 Sep 2016 17:17:51 -0700 (PDT) Received: from ubuntu.eng.vmware.com ([208.91.1.34]) by smtp.gmail.com with ESMTPSA id 70sm33518039pfy.81.2016.09.26.17.17.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Sep 2016 17:17:50 -0700 (PDT) X-CudaMail-Envelope-Sender: guru.ovn@gmail.com From: Gurucharan Shetty To: dev@openvswitch.org X-CudaMail-Whitelist-To: dev@openvswitch.org X-CudaMail-MID: CM-V2-925056612 X-CudaMail-DTE: 092616 X-CudaMail-Originating-IP: 209.85.192.195 Date: Mon, 26 Sep 2016 07:13:34 -0700 X-ASG-Orig-Subj: [##CM-V2-925056612##][PATCH] INSTALL.md: Add details about kernel module preference. Message-Id: <1474899214-25488-1-git-send-email-guru@ovn.org> X-Mailer: git-send-email 1.9.1 X-Barracuda-Connect: UNKNOWN[192.168.14.1] X-Barracuda-Start-Time: 1474935472 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-ASG-Whitelist: Header =?UTF-8?B?eFwtY3VkYW1haWxcLXdoaXRlbGlzdFwtdG8=?= X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 Subject: [ovs-dev] [PATCH] INSTALL.md: Add details about kernel module preference. X-BeenThere: dev@openvswitch.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dev-bounces@openvswitch.org Sender: "dev" Signed-off-by: Gurucharan Shetty --- INSTALL.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index bb40e4a..a9b70db 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -322,9 +322,29 @@ Building the Sources 4. Run "make install" to install the executables and manpages into the running system, by default under /usr/local. -5. If you built kernel modules, you may install and load them, e.g.: +5. If you built kernel modules, you may install them, e.g.: `% make modules_install` + + It is possible that you already had a Open vSwitch kernel module + installed on your machine that came from upstream Linux (in a + different directory). To make sure that you insert the Open vSwitch + kernel module you built from this repository, you should create a + depmod.d file that prefers your newly installed kernel modules over + the kernel modules from upstream Linux. The following snippet of + code achieves the same. + + ``` + % config_file="/etc/depmod.d/openvswitch.conf" + % for module in datapath/linux/*.ko; do + modname="$(basename ${module})" + echo "override $modname * extra" >> "$config_file" + echo "override $modname * weak-updates" >> "$config_file" + done + ``` + + Finally, load the kernel modules that you need. e.g.: + `% /sbin/modprobe openvswitch` To verify that the modules have been loaded, run "/sbin/lsmod" and