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 DA6C1A051C for ; Tue, 11 Feb 2020 12:23:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D30012B9C; Tue, 11 Feb 2020 12:23:46 +0100 (CET) Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by dpdk.org (Postfix) with ESMTP id 7F4602B9C for ; Tue, 11 Feb 2020 12:23:45 +0100 (CET) Received: by mail-wm1-f51.google.com with SMTP id p9so3016227wmc.2 for ; Tue, 11 Feb 2020 03:23:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3N1Kxxouz63pLMXe1V8hTRMbmV5j6A0DGZ5bzSvpOAQ=; b=Croy0YKOUTlNnKUzQWli9VYkujEwrDABXmPh9kDnrfdlzZvf2dJxPbJNtIPzJScWk5 9D0qKcES4mYcr+3kOYDkKwQkyScEjCCbs2brfgo8RFjI0+lc6Mc5Ca3YkV7aWttJe90K khLHW/Cd4InuknZaioeOjw01hMiHjPLgPg28aV8T9v3UF5RPDoOB1UKFHZn99yHoTy9V rjd1UyIh2sle3ZEjnYXAb+XeN+rusnPbcbTPplMw+MOBU/oYQALFIevuSWIyR/GuF+yN JDhxnJ5IsJ4UcCJe1RNjVm90cOVpHCsmEsCaxv5yNxxQ4KuIr3Bw/8OV3ilvkOpkLtnn Lj2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3N1Kxxouz63pLMXe1V8hTRMbmV5j6A0DGZ5bzSvpOAQ=; b=CVxUyIUHFGRfsvpAPCfj61ttAEspTsCxavM+xUl/cup53ijyaoNGwUZ272EGmn9N6C xj/4IztLkB+6CANeYLOAiLL6QGxZKzsj/TwpDMsvZqHMMgzr35P4Qxhgm/I3DRTc7gQf 9ITuMc9M3hm8r3R/NQn4YjsLBgNTN6h7d65rST67rEG0ym7gpq4qfE4oVlghJ8G2Ptx4 eoHUgTUtl/wqpf18llRb9HlHBk3rlQbJynN9fXmFEfkknhV7ixeGwKpb4DR0ihWcb3YU D5ngImu0ABDOvBkYCkA85RtO1MmVT1BNKYfvgyU4rLrqaU0h1XmgUk9wxYNQuf5jHSDy vXKQ== X-Gm-Message-State: APjAAAWPh2Ei60Gr8qhspBC/xkSqRBeO9uNpK3SF4ngpR7c+w1fxJxll zAp32M3BRaE1rtpwZXiEbfw= X-Google-Smtp-Source: APXvYqz9tQhM3ej8RAPMfBtdFTi2OjG8qsiSDl+9fgRaF1j7uUJuR5ibU8AlO3UGRqC50BZMId0JPA== X-Received: by 2002:a1c:8095:: with SMTP id b143mr4998763wmd.7.1581420225202; Tue, 11 Feb 2020 03:23:45 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id b10sm4756209wrw.61.2020.02.11.03.23.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Feb 2020 03:23:44 -0800 (PST) From: luca.boccassi@gmail.com To: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= Cc: dpdk stable Date: Tue, 11 Feb 2020 11:19:21 +0000 Message-Id: <20200211112216.3929-15-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200211112216.3929-1-luca.boccassi@gmail.com> References: <20200211112216.3929-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'event/dsw: flush buffers immediately on zero-sized enqueue' has been queued to stable release 19.11.1 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 stable release 19.11.1 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 rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Luca Boccassi --- >From 9242469d0d086cec53818a5bfcf0de08c29de9eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= 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=UTF-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önnblom --- 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 @@ -1047,6 +1047,7 @@ dsw_event_enqueue_burst_generic(void *port, const struct rte_event events[], */ if (unlikely(events_len == 0)) { dsw_port_note_op(source_port, DSW_MAX_PORT_OPS_PER_BG_TASK); + dsw_port_flush_out_buffers(dsw, port); return 0; } -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-02-11 11:17:39.585558303 +0000 +++ 0015-event-dsw-flush-buffers-immediately-on-zero-sized-en.patch 2020-02-11 11:17:38.311999701 +0000 @@ -1,4 +1,4 @@ -From 5747c83257306ad8e546e456fcfe8e89dac48bf9 Mon Sep 17 00:00:00 2001 +From 9242469d0d086cec53818a5bfcf0de08c29de9eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= Date: Tue, 17 Dec 2019 12:13:44 +0100 Subject: [PATCH] event/dsw: flush buffers immediately on zero-sized enqueue @@ -6,13 +6,14 @@ Content-Type: text/plain; charset=UTF-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") -Cc: stable@dpdk.org Signed-off-by: Mattias Rönnblom ---