From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9C384A0542 for ; Fri, 7 Feb 2020 16:13:44 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8C2631C130; Fri, 7 Feb 2020 16:13:44 +0100 (CET) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id B75311C13A for ; Fri, 7 Feb 2020 16:13:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581088422; 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: in-reply-to:in-reply-to:references:references; bh=OT1RNcc5QxW9mC8vULNdELMGFL+NeA2AZOaxa4OITX0=; b=bCUrJ1PIL/KweELXZm0YNikrYO8Q6JNwAnx494KqIDYxzfcAJ95XAPAlfUWrC27iKIwLhG ZdRWWAgydybl9Ki1TH1M8HvAUs4/u/hEMhjxpQU8S1outwBM/slOewS4RikojJMlPRnbpT TkzojRGiIFCNu35wrC64sNJQraEs/fM= 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-140-Vi9qAuAaMByR6rfs4U8TTA-1; Fri, 07 Feb 2020 10:13:26 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 57BE7DB77; Fri, 7 Feb 2020 15:13:25 +0000 (UTC) Received: from rh.redhat.com (unknown [10.33.36.76]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7C77E1001B34; Fri, 7 Feb 2020 15:13:24 +0000 (UTC) From: Kevin Traynor To: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= Cc: dpdk stable Date: Fri, 7 Feb 2020 15:12:21 +0000 Message-Id: <20200207151248.29804-9-ktraynor@redhat.com> In-Reply-To: <20200207151248.29804-1-ktraynor@redhat.com> References: <20200207151248.29804-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-MC-Unique: Vi9qAuAaMByR6rfs4U8TTA-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [dpdk-stable] patch 'event/dsw: flush buffers immediately on zero-sized enqueue' has been queued to LTS release 18.11.7 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to LTS release 18.11.7 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/13/20. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasi= ng (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable-queue This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable-queue/commit/2bc50a1089a7c6085f= 8acc47d7d1c5a78b76fb62 Thanks. Kevin. --- >From 2bc50a1089a7c6085f8acc47d7d1c5a78b76fb62 Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Mattias=3D20R=3DC3=3DB6nnblom?=3D Date: Tue, 17 Dec 2019 12:13:44 +0100 Subject: [PATCH] event/dsw: flush buffers immediately on zero-sized enqueue MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit [ upstream commit 5747c83257306ad8e546e456fcfe8e89dac48bf9 ] Fix DSW's rte_event_enqueue_burst(), so that a call with a zero-sized event array immediately flushes the port's output buffers. Prior to this patch, the flush operation would be deferred to the next enqueue or dequeue call, which is inconsistent with DSW documentation. Fixes: 1c8e3caa3bfb ("event/dsw: add event scheduling and device start/stop= ") Signed-off-by: Mattias R=C3=B6nnblom --- drivers/event/dsw/dsw_event.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/event/dsw/dsw_event.c b/drivers/event/dsw/dsw_event.c index 61a66fabf3..1641c2d06e 100644 --- a/drivers/event/dsw/dsw_event.c +++ b/drivers/event/dsw/dsw_event.c @@ -1048,4 +1048,5 @@ dsw_event_enqueue_burst_generic(void *port, const str= uct rte_event events[], =09if (unlikely(events_len =3D=3D 0)) { =09=09dsw_port_note_op(source_port, DSW_MAX_PORT_OPS_PER_BG_TASK); +=09=09dsw_port_flush_out_buffers(dsw, port); =09=09return 0; =09} --=20 2.21.1 --- Diff of the applied patch vs upstream commit (please double-check if non-= empty: --- --- -=092020-02-07 15:08:18.005769784 +0000 +++ 0009-event-dsw-flush-buffers-immediately-on-zero-sized-en.patch=092020-= 02-07 15:08:17.494063215 +0000 @@ -1 +1 @@ -From 5747c83257306ad8e546e456fcfe8e89dac48bf9 Mon Sep 17 00:00:00 2001 +From 2bc50a1089a7c6085f8acc47d7d1c5a78b76fb62 Mon Sep 17 00:00:00 2001 @@ -8,0 +9,2 @@ +[ upstream commit 5747c83257306ad8e546e456fcfe8e89dac48bf9 ] + @@ -15 +16,0 @@ -Cc: stable@dpdk.org