From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 42E25A0032 for ; Fri, 18 Feb 2022 13:40:02 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3E37F40141; Fri, 18 Feb 2022 13:40:02 +0100 (CET) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by mails.dpdk.org (Postfix) with ESMTP id 2166841142 for ; Fri, 18 Feb 2022 13:40:00 +0100 (CET) Received: by mail-wm1-f46.google.com with SMTP id y6-20020a7bc186000000b0037bdc5a531eso5907570wmi.0 for ; Fri, 18 Feb 2022 04:40:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HYdZviVtFtB7+7j/8Tt5d8GaU3ksF1JNgcAop1/4fbc=; b=PVEzb0Hv+Z4gLPqgm5496OKVfy8LnrAFwIS6dY1I1eFxsbJF/6F/X0e/PSAJ3FduZT RkNIh03CaMzlDENld5TRoNuR6zEMoIgmBtP1JA7w1/9SCDDLh6X6R6TsEHbteXZHDgdl JyK3hytiYYE5s4AyS0CKkw4qcC2QJ0wlyvDVS+CqfRq12CPbIXmgbV3pK84Su0Go//gE WyPOGDHMm5d9rfncn+8wSCZx9fmprz9zt8mNifF/fJUmJvlq+MVZKT5+mn0sLy1ELHyp wjf9NcT4zEZR6oh+CQFZA0G5A17cZywqiYmTdyFiPVA+PArDmO0S3PXRS0qEB+X2e2yZ f0Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HYdZviVtFtB7+7j/8Tt5d8GaU3ksF1JNgcAop1/4fbc=; b=ndZqEAuezsFbVq7CoWjK3iglV+XRuuj+E4cvBH16MtfGpImW1I2i6VqPNczlIazwS4 ynij8QwsGcI/v+4550zgTVCC/6I4H2KR7byrumH5T6BGPO+CVJxZfJVuAHDKrmnsyGtC VgfDLvb3nqTOJ7pIOmvyWD9n8WL41dVyf4+oYVpyNJTRZGZtUPJId3Dlu1Wx6aAc98oU ZA6HeCY47EQTkWEmOg+TNqPju75zsm2cLuu8dJwvHst/Abj3BMlep6A+EiIVIdBj/nOb WG0l5ev+wFqOLfK2qqqiClicWPGDtUAKeQEPFYguVkHm/ZiGts+GQhPfgLU2lAcGV+qY FAyQ== X-Gm-Message-State: AOAM530bUFnA/v/MP8CWbHR9w4LuMlauuSsHuZ/HI6Ck5xYujBrBVzgz CiMmcNgBkxaEtY6hZtW/X6CyB86njGcy8A== X-Google-Smtp-Source: ABdhPJwR3tSE5bXkhSKSxsbuVjdhhK+Lhlf/MH0YLopxIo/bdH6L0+s3NoSnrbFDwtfoqvIoEAS54g== X-Received: by 2002:a05:600c:1d1b:b0:37b:f8cc:2f71 with SMTP id l27-20020a05600c1d1b00b0037bf8cc2f71mr10394723wms.74.1645187999796; Fri, 18 Feb 2022 04:39:59 -0800 (PST) Received: from localhost ([137.220.125.106]) by smtp.gmail.com with ESMTPSA id m22sm4612776wmq.35.2022.02.18.04.39.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 04:39:59 -0800 (PST) From: luca.boccassi@gmail.com To: Nithin Dabilpuram Cc: Anoob Joseph , dpdk stable Subject: patch 'examples/ipsec-secgw: fix eventdev start sequence' has been queued to stable release 20.11.5 Date: Fri, 18 Feb 2022 12:37:39 +0000 Message-Id: <20220218123931.1749595-10-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220218123931.1749595-1-luca.boccassi@gmail.com> References: <20220218123931.1749595-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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 Hi, FYI, your patch has been queued to stable release 20.11.5 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/20/22. 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. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/dff4380aaeb1d84c6f6da07068f5c00f73e517d0 Thanks. Luca Boccassi --- >From dff4380aaeb1d84c6f6da07068f5c00f73e517d0 Mon Sep 17 00:00:00 2001 From: Nithin Dabilpuram Date: Thu, 2 Dec 2021 18:00:36 +0530 Subject: [PATCH] examples/ipsec-secgw: fix eventdev start sequence [ upstream commit 986c2c9e5696ea61e2e440702e21d28e7d8eaa5f ] Start eventdev after complete initialization of event dev, rx adapter and tx adapter. Fixes: e0b0e55c8f15 ("examples/ipsec-secgw: add framework for event helper") Signed-off-by: Nithin Dabilpuram Acked-by: Anoob Joseph --- examples/ipsec-secgw/event_helper.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/examples/ipsec-secgw/event_helper.c b/examples/ipsec-secgw/event_helper.c index 10707545b8..eb4640572d 100644 --- a/examples/ipsec-secgw/event_helper.c +++ b/examples/ipsec-secgw/event_helper.c @@ -712,6 +712,16 @@ eh_initialize_eventdev(struct eventmode_conf *em_conf) } } + return 0; +} + +static int +eh_start_eventdev(struct eventmode_conf *em_conf) +{ + struct eventdev_params *eventdev_config; + int nb_eventdev = em_conf->nb_eventdev; + int i, ret; + /* Start event devices */ for (i = 0; i < nb_eventdev; i++) { @@ -1612,6 +1622,13 @@ eh_devs_init(struct eh_conf *conf) return ret; } + /* Start eventdev */ + ret = eh_start_eventdev(em_conf); + if (ret < 0) { + EH_LOG_ERR("Failed to start event dev %d", ret); + return ret; + } + /* Start eth devices after setting up adapter */ RTE_ETH_FOREACH_DEV(port_id) { -- 2.30.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-02-18 12:37:38.583044309 +0000 +++ 0010-examples-ipsec-secgw-fix-eventdev-start-sequence.patch 2022-02-18 12:37:37.506787811 +0000 @@ -1 +1 @@ -From 986c2c9e5696ea61e2e440702e21d28e7d8eaa5f Mon Sep 17 00:00:00 2001 +From dff4380aaeb1d84c6f6da07068f5c00f73e517d0 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 986c2c9e5696ea61e2e440702e21d28e7d8eaa5f ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -19 +20 @@ -index 24b210add4..8947e41803 100644 +index 10707545b8..eb4640572d 100644 @@ -22 +23 @@ -@@ -716,6 +716,16 @@ eh_initialize_eventdev(struct eventmode_conf *em_conf) +@@ -712,6 +712,16 @@ eh_initialize_eventdev(struct eventmode_conf *em_conf) @@ -39 +40 @@ -@@ -1688,6 +1698,13 @@ eh_devs_init(struct eh_conf *conf) +@@ -1612,6 +1622,13 @@ eh_devs_init(struct eh_conf *conf)