From patchwork Mon Sep 26 14:34:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gurucharan Shetty X-Patchwork-Id: 675352 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 3sjhmH74kYz9ryr for ; Tue, 27 Sep 2016 10:39:11 +1000 (AEST) Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id 0E05B1023D; Mon, 26 Sep 2016 17:39:11 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx1e4.cudamail.com (mx1.cudamail.com [69.90.118.67]) by archives.nicira.com (Postfix) with ESMTPS id DE4291023A for ; Mon, 26 Sep 2016 17:39:09 -0700 (PDT) Received: from bar5.cudamail.com (unknown [192.168.21.12]) by mx1e4.cudamail.com (Postfix) with ESMTPS id 748C11E026F for ; Mon, 26 Sep 2016 18:39:09 -0600 (MDT) X-ASG-Debug-ID: 1474936749-09eadd62928a190001-byXFYA Received: from mx1-pf1.cudamail.com ([192.168.24.1]) by bar5.cudamail.com with ESMTP id 0IAOkMxFlDYROceN (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 26 Sep 2016 18:39:09 -0600 (MDT) X-Barracuda-Envelope-From: guru.ovn@gmail.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.24.1 Received: from unknown (HELO mail-pa0-f68.google.com) (209.85.220.68) by mx1-pf1.cudamail.com with ESMTPS (AES128-SHA encrypted); 27 Sep 2016 00:39:08 -0000 Received-SPF: pass (mx1-pf1.cudamail.com: SPF record at _netblocks.google.com designates 209.85.220.68 as permitted sender) X-Barracuda-Apparent-Source-IP: 209.85.220.68 X-Barracuda-RBL-IP: 209.85.220.68 Received: by mail-pa0-f68.google.com with SMTP id oz2so9416101pac.0 for ; Mon, 26 Sep 2016 17:39:08 -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=pkMYbYF8urqgLe31u8BzrrYrw6MyyGUe18CE+C5LyIU=; b=b2E2Ne/v2rgrf27DlFzdEcZYlzI/qEt2Vqj6beSsAs29iNhAas7q5ag5kctctkY0wQ 6YsapU/UM7GGm1cTHyJKDu23bl8WYYx0XH46/VskEHyeK2fhHvajLpuG9hRAs4G80GrG UaJXSb3Vn1Zrcj4Gvdx54CixjwL1GEh+sbr9IQuTE4b5Y6gjMZeyhEPGT04jN8kJ54ny YpSEbPBL96ZLYfnH/AEZ8w22QtL4eYcyIwsquzEc3uZPz2WocWxXrRInxPC/20e+n7GX v92bvGpWjGzV6cPd7QEMVFggn7RAwrQo4gSO3TgJsrd0rDryYyYJpGiZbrrsTgP1ycNX BdpQ== X-Gm-Message-State: AE9vXwMmVXn1dVGl4PCTJUPCZ4zENt78oCZ0vWN4MovPJP1/x9mIY7myK9wO4RWJfBHpXg== X-Received: by 10.66.81.9 with SMTP id v9mr43442730pax.62.1474936747890; Mon, 26 Sep 2016 17:39:07 -0700 (PDT) Received: from ubuntu.eng.vmware.com ([208.91.1.34]) by smtp.gmail.com with ESMTPSA id m5sm33646086paw.40.2016.09.26.17.39.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Sep 2016 17:39:06 -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-E1-925084785 X-CudaMail-DTE: 092616 X-CudaMail-Originating-IP: 209.85.220.68 Date: Mon, 26 Sep 2016 07:34:50 -0700 X-ASG-Orig-Subj: [##CM-E1-925084785##][PATCH v2] INSTALL.md: Add details about kernel module preference. Message-Id: <1474900490-25630-1-git-send-email-guru@ovn.org> X-Mailer: git-send-email 1.9.1 X-Barracuda-Connect: UNKNOWN[192.168.24.1] X-Barracuda-Start-Time: 1474936749 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 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 v2] 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 Acked-by: Darrell Ball --- INSTALL.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index bb40e4a..6ecefdf 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -322,9 +322,30 @@ 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 + % depmod -a + ``` + + 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