From patchwork Wed Jan 9 19:34:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Tu X-Patchwork-Id: 1022597 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.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.b="XauQHQ+d"; dkim-atps=neutral Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43ZfV247pjz9sN4 for ; Thu, 10 Jan 2019 06:35:06 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id F22BA111A; Wed, 9 Jan 2019 19:35:03 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id CF6A774 for ; Wed, 9 Jan 2019 19:35:02 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 9A4D0710 for ; Wed, 9 Jan 2019 19:35:02 +0000 (UTC) Received: by mail-pf1-f196.google.com with SMTP id u6so4110230pfh.11 for ; Wed, 09 Jan 2019 11:35:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=RRwJvkNUR5/19RH2VM+I03jbauRi6OnwD7DFHVE/C5c=; b=XauQHQ+d4GZiI4o6O9vDP+CirTYpgI9iZn3YEDmxcWSftYvX8m8h2UCoqWl+3JWLXS okfyeKxkikVJ6Osx5/fDQBhnVMilaf8DXPm+mUyIDRMS6xS7HLykeBDMyWrl+/+P5JNd Lp3G/ss+5xQdEpJhDvMeo7rcvdVqXr2O3adZ6wF1oaPnVI45qXOS/yII8MYMrQPwQhR7 EgUxWnTpxCQcvQ/Rmd9g/6PNG0vdg8xE2Fbvhgy9CoNxDu8PgnWRbDjRwyEzfqoLnmi/ OUQ/6YlhD8dKy4/j2uAi9QV6KgQDTrbGU5gX6QaUAj8s6nUB/zjcbRp0QBieLjWHMkXq Ef0g== 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; bh=RRwJvkNUR5/19RH2VM+I03jbauRi6OnwD7DFHVE/C5c=; b=ZWbbK0gRLoM64M5oY/N0F21JtWu3K85X/XMP/rvAU11cmVzG8GvRIu8g2L/okPtCf6 PWKZ9dj05f14362FNrMzhrZtNBGroU0W3Z613w0WrSoH6gR5DWe++bDpb8SzddesF9nD 3pgmD1MKnpqK0RHkyAFcVrHSlrX057fLhGehWWg60n7YTfOcQCTaBaLdzPRp2JHITKYm 1CGxsl3g+k/Df0Ef5qFoYNfqLbuMO2hCTWbwyxiWym+YBeMGLWstACPAdyQidvGIgGwq rajLhcu1rrsL9bikLuw7YQ0ybMcaS7QzWwYTrPoyzv0lMXCr4O4KYQCwNEUZeh1GfdIk B1wQ== X-Gm-Message-State: AJcUukcm+wtmz9Zj6HmhoJgpH+ITmtESD11TNbg+miVtEGqSewMGdAKG rwB7jh2ez7hlS7HIKYW27aXEGyB9 X-Google-Smtp-Source: ALg8bN4+v3fy+JUEN7w33DDyr+LEUBl2urIp0uaUc58Nhedt7XuRjh9+E7H7lwDtJY9K6PVRTuOR6Q== X-Received: by 2002:a63:4342:: with SMTP id q63mr6595865pga.63.1547062501820; Wed, 09 Jan 2019 11:35:01 -0800 (PST) Received: from sc9-mailhost3.vmware.com ([66.170.99.1]) by smtp.gmail.com with ESMTPSA id x27sm135120830pfe.178.2019.01.09.11.35.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Jan 2019 11:35:01 -0800 (PST) From: William Tu To: dev@openvswitch.org Date: Wed, 9 Jan 2019 11:34:09 -0800 Message-Id: <1547062449-5475-1-git-send-email-u9012063@gmail.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH] faq: unload kernel module when non-zero refcnt. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org Describe the issue about reference count and how to drop it and unload the kernel module. Signed-off-by: William Tu Cc: Greg Rose --- Documentation/faq/issues.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/faq/issues.rst b/Documentation/faq/issues.rst index 8a30dad37da0..4fd64c4c5a48 100644 --- a/Documentation/faq/issues.rst +++ b/Documentation/faq/issues.rst @@ -419,3 +419,17 @@ Q: I just upgraded and I see a performance drop. Why? To get the best possible performance and functionality, it is recommended to pair the same versions of the kernel module and OVS userspace. + +Q: I can't unload the openvswitch kernel module. Why? + + A: The userspace might still hold the reference count. So ``rmmod openvswitch`` + does not work, for example:: + + $ lsmod | grep openvswitch + openvswitch 155648 4 + nf_conncount 24576 1 openvswitch + + Use the command below to drop the refcnt:: + + $ ovs-dpctl del-dp system@ovs-system + $ rmmod openvswitch