From patchwork Fri Oct 13 08:25:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Fischetti, Antonio" X-Patchwork-Id: 825278 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=) 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 3yD14R2ZZlz9s82 for ; Fri, 13 Oct 2017 19:25:25 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 98F9E98A; Fri, 13 Oct 2017 08:25:21 +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 50292891 for ; Fri, 13 Oct 2017 08:25:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id E5F41472 for ; Fri, 13 Oct 2017 08:25:19 +0000 (UTC) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Oct 2017 01:25:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,370,1503385200"; d="scan'208";a="146040781" Received: from sivswdev01.ir.intel.com (HELO localhost.localdomain) ([10.237.217.45]) by orsmga002.jf.intel.com with ESMTP; 13 Oct 2017 01:25:17 -0700 From: antonio.fischetti@intel.com To: dev@openvswitch.org Date: Fri, 13 Oct 2017 09:25:12 +0100 Message-Id: <1507883117-24347-1-git-send-email-antonio.fischetti@intel.com> X-Mailer: git-send-email 1.7.0.7 X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD autolearn=disabled version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH v3 0/5] Conntrack: add commands to r/w CT parameters. 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 This change comes from the consideration that when the CT is enabled the overall performance can be deeply affected, even with simple firewall rules and with stateless protocols like UDP. This implementation adds a basic infrastructure that allows the user to adjust the CT configuration parameters at run-time in order to find a better tuning. For example - depending on the traffic profile - the user could decrease at run-time the maximum number of tracked connections, so to mitigate the impact on performance. V3: Added changes to documentation. V2: Reworked based on comments. Patch #1 comes after a discussion with Darrell. V1: First implementation. Fischetti, Antonio (5): dpctl: Add a comment to functions retrieving the datapath name. conntrack: add commands to r/w CT parameters. conntrack: r/w upper limit connection value. conntrack: read current nr of connections. doc: ConnTracker cfg parameters. Documentation/intro/install/dpdk.rst | 25 +++++++++ lib/conntrack.c | 90 ++++++++++++++++++++++++++++++ lib/conntrack.h | 3 + lib/ct-dpif.c | 28 ++++++++++ lib/ct-dpif.h | 2 + lib/dpctl.c | 104 ++++++++++++++++++++++++++++++++++- lib/dpctl.man | 10 ++++ lib/dpif-netdev.c | 19 +++++++ lib/dpif-netlink.c | 2 + lib/dpif-provider.h | 4 ++ 10 files changed, 286 insertions(+), 1 deletion(-)