Message ID | 913f1e179a946bb81c5b2dd75c47b1f77fa30966.1619351443.git.grive@u256.net |
---|---|
State | Changes Requested |
Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> 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.137; helo=smtp4.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=u256.net header.i=@u256.net header.a=rsa-sha256 header.s=fm1 header.b=nBE07WiT; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=Yw6Dat6m; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FSmhs6XKNz9sSC for <incoming@patchwork.ozlabs.org>; Sun, 25 Apr 2021 21:56:45 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 4637F418CE; Sun, 25 Apr 2021 11:56:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NbS_JeA8a2f4; Sun, 25 Apr 2021 11:56:43 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTP id AE7EA41873; Sun, 25 Apr 2021 11:56:23 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 66505C0044; Sun, 25 Apr 2021 11:56:16 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 131E7C0037 for <ovs-dev@openvswitch.org>; Sun, 25 Apr 2021 11:56:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 48FE24028B for <ovs-dev@openvswitch.org>; Sun, 25 Apr 2021 11:56:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=u256.net header.b="nBE07WiT"; dkim=pass (2048-bit key) header.d=messagingengine.com header.b="Yw6Dat6m" Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aCugLco6xMXY for <ovs-dev@openvswitch.org>; Sun, 25 Apr 2021 11:56:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by smtp2.osuosl.org (Postfix) with ESMTPS id 977B3402B3 for <ovs-dev@openvswitch.org>; Sun, 25 Apr 2021 11:56:06 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D9A5C5C008D; Sun, 25 Apr 2021 07:56:05 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 25 Apr 2021 07:56:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=u256.net; h=from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=SrPqCrOtXYOQj 7GxMKYZZ3CJ6kSJDq5dMMNyB1oh99k=; b=nBE07WiTMHGb9QChjzTdWGG7KssB5 YZxNUWWbitY5zmN6C++TvFELOanihbK0R5OZg3aVJxMbJqVJz8OvxP1MqjVD/jKG WHFIBS/2e5P+tWNccKcG/XpIiqULqGjG3MRlxn7Ne993PIqcgkn/X6UrUHDDQCDB 5Yeb0dD38L/xcbyT+tBqtWgpAc/HRwJxw0kCH34d4uHvWxiuvjHA3q+gW4taNWtj DfwIrq/r7eyjyt5B41CG4DgCbHPPpKJVRos8UYyWCXC4cyuwb8JzMxds84G6g5B9 wVThtR+XApw1cl0ICLnZzEWEAJ79AGzjAgRTIybNmfUDNAQ6vn/LjD/1Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=SrPqCrOtXYOQj7GxMKYZZ3CJ6kSJDq5dMMNyB1oh99k=; b=Yw6Dat6m QhM0wf+eEv78m6M0O1Y9Ymbpye0mY43KbqA1t4lZg/Duz3jIRZ2gng6CWzO2c12C XiMaRc9mzQ1fuRqdyOyrU+YlLMoq/iDWOl6dpE/Lv9RTSrNgQtOQiX79jNugUBlc t8Y8wQD1UKmKX5jXp3cChAsaCxM6PAMmcANKTBAbzShKeGwjp44jljnRAAmOfjuH +IQ0NZT/G3boxCyOMkqM/ugv2rC8zl/a575Y+LG2AD2P1T9GoWNocxFmNZ42Y9aO 6eqbvCoPi6/kbKITjpTqS3TnGcPB3CzBD8iHrC+0qlbBLmO9GM1iz41ayCOlRSd7 fY5fxKb0J5ZF2w== X-ME-Sender: <xms:1ViFYE8OYjWvrava3IkcBGFEvmtbn6G2gzh99d8P9TwzqDqK1rygsg> <xme:1ViFYMstZc4oc9ogkOoMdFVKXitoZQJizxamF3OyNgIV5o7IQLx-fmENIXjb4pdfV bD4XdliKfuGbzxJkJc> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdduiedggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefirggvthgr nhcutfhivhgvthcuoehgrhhivhgvsehuvdehiedrnhgvtheqnecuggftrfgrthhtvghrnh ephefgveffkeetheetfeeifedvheelfeejfeehveduteejhfekuedtkeeiuedvteehnecu kfhppeekiedrvdehgedrvdegfedrudegieenucevlhhushhtvghrufhiiigvpeejnecurf grrhgrmhepmhgrihhlfhhrohhmpehgrhhivhgvsehuvdehiedrnhgvth X-ME-Proxy: <xmx:1ViFYKA5vQCQAocdGOwxwXNQ4eyu8UkmnmTc7LNneJhqJAjSkWXgPg> <xmx:1ViFYEe1unZ6dDHnThUcTp53QStNHnnHtbSnLVkgq9TKnkfDzMhJag> <xmx:1ViFYJO9FDiYTcyyy58S4m7n4TIUL0XXUIdK_ScbbnB-mDQ8IbWkXQ> <xmx:1ViFYLXqm3tPObKQf-yxSaccK0LzwpIvqDF70wWc9Jt1-eebuCsmhw> Received: from inocybe.home (lfbn-poi-1-930-146.w86-254.abo.wanadoo.fr [86.254.243.146]) by mail.messagingengine.com (Postfix) with ESMTPA id 4C22D1080057; Sun, 25 Apr 2021 07:56:05 -0400 (EDT) From: Gaetan Rivet <grive@u256.net> To: ovs-dev@openvswitch.org Date: Sun, 25 Apr 2021 13:55:31 +0200 Message-Id: <913f1e179a946bb81c5b2dd75c47b1f77fa30966.1619351443.git.grive@u256.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <cover.1619351442.git.grive@u256.net> References: <cover.1619351442.git.grive@u256.net> MIME-Version: 1.0 Cc: Eli Britstein <elibr@nvidia.com>, Maxime Coquelin <maxime.coquelin@redhat.com> Subject: [ovs-dev] [PATCH v3 17/28] dpif-netdev: Postpone flow offload item freeing X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" <ovs-dev-bounces@openvswitch.org> |
Series |
dpif-netdev: Parallel offload processing
|
expand
|
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 44e5735b2..ac55d2ae9 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -2625,14 +2625,19 @@ dp_netdev_alloc_flow_offload(struct dp_netdev_pmd_thread *pmd, return offload; } +static void +dp_netdev_free_flow_offload__(struct dp_offload_thread_item *offload) +{ + free(offload->actions); + free(offload); +} + static void dp_netdev_free_flow_offload(struct dp_offload_thread_item *offload) { dp_netdev_pmd_unref(offload->pmd); dp_netdev_flow_unref(offload->flow); - - free(offload->actions); - free(offload); + ovsrcu_postpone(dp_netdev_free_flow_offload__, offload); } static void