From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F784C433E2 for ; Wed, 22 Jul 2020 08:27:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5EC0920787 for ; Wed, 22 Jul 2020 08:27:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="HTAxBqWt" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729971AbgGVI1o (ORCPT ); Wed, 22 Jul 2020 04:27:44 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:21564 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727034AbgGVI1m (ORCPT ); Wed, 22 Jul 2020 04:27:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595406462; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gS0tPURnrLQ2v5Y9j1eOh/sTPrJ8Ydj14z8vM+B3N0Y=; b=HTAxBqWtx86uEeLAhe+dcYMluNqv4jbt2Hwx1S7U1U+5woBIP/q+FRGBuVD//WRL8qjH2P 9EQGD07xGhZGM0Iy25pIvFDI2C15vT40wubHEcJjUU3aQeJ1oRwtbjZF9pISTGLJn9qM75 1KMBPRBBrH1yO68TRICsrZaDmLyzFx0= 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-318-74sW_5vRMX-5O-TQVjlmGA-1; Wed, 22 Jul 2020 04:27:39 -0400 X-MC-Unique: 74sW_5vRMX-5O-TQVjlmGA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 443CB91271; Wed, 22 Jul 2020 08:27:38 +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 C5E6E72693; Wed, 22 Jul 2020 08:27:36 +0000 (UTC) From: Eelco Chaudron To: netdev@vger.kernel.org Cc: davem@davemloft.net, dev@openvswitch.org, kuba@kernel.org, pabeni@redhat.com, pshelar@ovn.org Subject: [PATCH net-next 0/2] net: openvswitch: masks cache enhancements Date: Wed, 22 Jul 2020 10:27:34 +0200 Message-Id: <159540642765.619787.5484526399990292188.stgit@ebuild> User-Agent: StGit/0.21 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patchset adds two enhancements to the Open vSwitch masks cache. Signed-off-by: Eelco Chaudron Eelco Chaudron (2): net: openvswitch: add masks cache hit counter net: openvswitch: make masks cache size configurable include/uapi/linux/openvswitch.h | 3 + net/openvswitch/datapath.c | 16 +++++- net/openvswitch/datapath.h | 3 + net/openvswitch/flow_table.c | 105 +++++++++++++++++++++++++++++++++----- net/openvswitch/flow_table.h | 13 ++++- 5 files changed, 122 insertions(+), 18 deletions(-)