From patchwork Wed Jul 22 08:36:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eelco Chaudron X-Patchwork-Id: 1333658 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.138; helo=whitealder.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ECwAd8sg; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BBTMm1rcGz9sSn for ; Wed, 22 Jul 2020 18:36:36 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7C8AA880EE; Wed, 22 Jul 2020 08:36:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4uSENQJyP+1h; Wed, 22 Jul 2020 08:36:32 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by whitealder.osuosl.org (Postfix) with ESMTP id 7166A880B3; Wed, 22 Jul 2020 08:36:32 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 63C58C004E; Wed, 22 Jul 2020 08:36:32 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id AAC96C004C for ; Wed, 22 Jul 2020 08:36:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 81910203EE for ; Wed, 22 Jul 2020 08:36:30 +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 iNthBXp1z9yp for ; Wed, 22 Jul 2020 08:36:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by silver.osuosl.org (Postfix) with ESMTPS id C6147203D0 for ; Wed, 22 Jul 2020 08:36:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595406988; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3qEUsULamFEoDysj66O6dtkUg69H0cIcSZrlzkM/XAE=; b=ECwAd8sgCf6tHRITSB3HMIQu7ROUyLDdqYrDpX+51UIyTB/Vnyzj9iR40H14j692f9vtFf K6d5E95roVjxeAYGqeZZ+CYvBfQR9ZZoxIe7/HHBv3K1ZpWmzyJuysPGNigDVu3C9xhg+u 5rQXi+q2mXzQ1zsmbdcHU4Xaj9v781Q= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-357-h5qOGIMXMO202q22_1uO3w-1; Wed, 22 Jul 2020 04:36:26 -0400 X-MC-Unique: h5qOGIMXMO202q22_1uO3w-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 592E6107ACCA for ; Wed, 22 Jul 2020 08:36:25 +0000 (UTC) Received: from ebuild.redhat.com (ovpn-112-133.ams2.redhat.com [10.36.112.133]) by smtp.corp.redhat.com (Postfix) with ESMTP id DC1545D9D7 for ; Wed, 22 Jul 2020 08:36:24 +0000 (UTC) From: Eelco Chaudron To: dev@openvswitch.org Date: Wed, 22 Jul 2020 10:36:20 +0200 Message-Id: <159540696766.620727.11177828272276285592.stgit@ebuild> User-Agent: StGit/0.21 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [RFC PATCH 0/2] dpctl: cache visibility/configuration enhancements 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: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" This RFC patchset adds two enhancements related to cache management to dpclt. It's marked RFC as the required kmod patches have just been sent upstream: https://lore.kernel.org/netdev/159540642765.619787.5484526399990292188.stgit@ebuild/T/#t NOTE: This RFC still needs a dpctl test suite update. Signed-off-by: Eelco Chaudron Eelco Chaudron (2): dpctl: dpif: add kernel datapath cache hit output dpctl: dpif: allow viewing and configuring dp cache sizes datapath/linux/compat/include/linux/openvswitch.h | 3 lib/dpctl.c | 129 +++++++++++++++++++++ lib/dpif-netdev.c | 5 + lib/dpif-netlink.c | 116 +++++++++++++++++++ lib/dpif-provider.h | 20 +++ lib/dpif.c | 32 +++++ lib/dpif.h | 9 + utilities/ovs-dpctl.c | 4 + 8 files changed, 317 insertions(+), 1 deletion(-)