Message ID | 32227465e3e15ff243439ed6a75d8f3be4ce24cd.1631094144.git.grive@u256.net |
---|---|
State | Accepted |
Commit | 528a8ab6270bcf8e5980528c4ff19fbfb86bee22 |
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; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=u256.net header.i=@u256.net header.a=rsa-sha256 header.s=fm2 header.b=f1UTTu8F; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=XsZYRbz4; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (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 4H4HRY48jGz9sW8 for <incoming@patchwork.ozlabs.org>; Wed, 8 Sep 2021 19:49:45 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 0A9D6613ED; Wed, 8 Sep 2021 09:49:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7vxUrgewzJqN; Wed, 8 Sep 2021 09:49:42 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id 394C6613D1; Wed, 8 Sep 2021 09:49:41 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0F510C001D; Wed, 8 Sep 2021 09:49:41 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 27448C0011 for <ovs-dev@openvswitch.org>; Wed, 8 Sep 2021 09:49:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 2A82A83336 for <ovs-dev@openvswitch.org>; Wed, 8 Sep 2021 09:48:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp1.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=u256.net header.b="f1UTTu8F"; dkim=pass (2048-bit key) header.d=messagingengine.com header.b="XsZYRbz4" Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hID06uh7y-Xx for <ovs-dev@openvswitch.org>; Wed, 8 Sep 2021 09:48:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by smtp1.osuosl.org (Postfix) with ESMTPS id B7F6D830E3 for <ovs-dev@openvswitch.org>; Wed, 8 Sep 2021 09:48:27 +0000 (UTC) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 1AE9732009D1; Wed, 8 Sep 2021 05:48:27 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 08 Sep 2021 05:48:27 -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=fm2; bh=iTsoq1vZbgwH+ 6UZNXmS6yq+STdbeM7XqvrfKs7Xs/4=; b=f1UTTu8FuG9pNxIvhHrNr8uqChu16 EpFzXJF6imz4ZsHpPv0pkLuW9mH+r6cBihFn7NC0v2rdSOWZGCKjM+ZH7DuEPM3P A5OZZpoFA10+vokuyFfA3TLbUZp+Rb5ja8B8wiaf3cYzCMjYFuILxhIelAHBvGOc /Cl59GosP9dQbHQ6hgPy/31tkyJR1zmEZkw7u3+sCKL0mqTapnfNjN1KH9mdtthc 5lOCvkxIlJGf/Y+PSOlNCEhUT/oiF9Oz5tSYOJrIdgkpPAkyYbMyJ02t/La+dp1C 0yqM++4g4Ks9HBmznDtDq96thRamSfM8ZHfGa/ZTL+YrNd/nRdOKegTIw== 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= fm3; bh=iTsoq1vZbgwH+6UZNXmS6yq+STdbeM7XqvrfKs7Xs/4=; b=XsZYRbz4 yQxeh/hG60woUPVXRvp7gZCUk9zwO3zw7dl0hvPdgX1a8+Jw2IuE6sfLsYS4X6pC BVHy8X7uPFvl2H+mX+luI3PeFFKP0f1TD/ABCNvTVr1Rp2TbhZs5q+r7ypEaJcrD Mm/X/+u0TTf/HF4r+WyIWl6j8r1bEZs7Knla5bh3G3SviizFffL9AN5NozO82pb4 bcpVVzhYS+CU6DETlIGJpWgFOjz6zZ+QiKUCKRE5ysYSzhNLTsHn2VQ+2dcHaMHY GHN/Dv0hrYqLXQVCrCLE5QrKb1wdCLGJRExJrgiN2zkrYSMYGXxs1zT6rJJyleHT G+0yaDd/Hwpt6g== X-ME-Sender: <xms:6oY4YXLznXzcHo12cSER-X6CUUAaKSIHQdiYy7EsqDQo1hOl75B4qQ> <xme:6oY4YbIvB4lLS_P33hyrzsszrTDii_ZEQNsnZpWlRraENiYjBQ5lr7vhjBLrQNfTO p5wk8BmjCw-br2VIXE> X-ME-Received: <xmr:6oY4YfuSYRiLw8xh7CIHH556xEd_WZTTbJi8ZJfG6tJNoqqel1fLoPPqRvIE5qcLB0XBF8uhruXEgBOvMR-RFBlPTQ> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudefjedgudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefirggvthgr nhcutfhivhgvthcuoehgrhhivhgvsehuvdehiedrnhgvtheqnecuggftrfgrthhtvghrnh ephefgveffkeetheetfeeifedvheelfeejfeehveduteejhfekuedtkeeiuedvteehnecu vehluhhsthgvrhfuihiivgepvdenucfrrghrrghmpehmrghilhhfrhhomhepghhrihhvvg esuhdvheeirdhnvght X-ME-Proxy: <xmx:6oY4YQaD4Hm5SpbZlsBlwZ0K67LB0FM9_JVb0T1h48mJfhmtYkRtpg> <xmx:6oY4YebxGtTP7n3YzlgwwtVjXdtBcir28RqI1HWlMJ3e9vgKJjKuHA> <xmx:6oY4YUA_vHnLIk5-Tj8sIirbPsm8qkbNLf2Ps-jvTTDnMrk09JW8nA> <xmx:6oY4YRyphuzkj4M-QMpqCaMsXLs9OvKnu0_fSwdwb2sGfDTT0rB95g> Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 8 Sep 2021 05:48:26 -0400 (EDT) From: Gaetan Rivet <grive@u256.net> To: ovs-dev@openvswitch.org Date: Wed, 8 Sep 2021 11:47:40 +0200 Message-Id: <32227465e3e15ff243439ed6a75d8f3be4ce24cd.1631094144.git.grive@u256.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <cover.1631094144.git.grive@u256.net> References: <cover.1631094144.git.grive@u256.net> MIME-Version: 1.0 Cc: Eli Britstein <elibr@nvidia.com>, Maxime Coquelin <maxime.coquelin@redhat.com> Subject: [ovs-dev] [PATCH v5 16/27] 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
|
Context | Check | Description |
---|---|---|
ovsrobot/apply-robot | success | apply and check: success |
ovsrobot/github-robot-_Build_and_Test | success | github build: passed |
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index c4672e6e5..c3d211858 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -2544,14 +2544,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