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 37172A057B; Mon, 30 Mar 2020 16:55:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D5D822C6D; Mon, 30 Mar 2020 16:55:25 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id F11832C15 for ; Mon, 30 Mar 2020 16:55:24 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 02UEkKux030582; Mon, 30 Mar 2020 07:55:24 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=I5xYWt3H2aHvFULwygtHFGh14pMUFEki3Ey7SMpCYLM=; b=uWSTx+okgDl0Vsrbaxyt+ADLv3Z4ldZVeVCnz6B29FXGkLbZvUkR/r0JwivxFxNDYsRh QPuFUGGFNS6So8Sh8q2Ts54UmaiP5ZiJ/G48EdixKE0aBlDwqcucXDnC5K/ro/0/TwFi aEtRzUeJ90jGwUlcT7LH6dJfaGq5zAZYonuDQ//dzPDXLjd4U12kPxY8MJOfJYnmG52b Sog6pcwmR/ec1N1A41+JdQv+3cGjE+G2dkstgI2EHcmBpGA8AT8neXuwBxKWXOMjabmd wIIAXsadpOpdTkdfsz/SSGddmj3di/PtJnuALmP0c1pcez10NVzxvpfDsikz91/+4sMd kA== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 30263kednf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 30 Mar 2020 07:55:24 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 30 Mar 2020 07:55:21 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 30 Mar 2020 07:55:21 -0700 Received: from luke.marvell.com (unknown [10.95.131.131]) by maili.marvell.com (Postfix) with ESMTP id 8B5C43F7040; Mon, 30 Mar 2020 07:55:19 -0700 (PDT) From: Lukasz Bartosik To: , CC: , , , Date: Mon, 30 Mar 2020 16:55:18 +0200 Message-ID: <1585580118-17129-1-git-send-email-lbartosik@marvell.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.676 definitions=2020-03-30_06:2020-03-30, 2020-03-30 signatures=0 Subject: [dpdk-dev] [PATCH] examples/ipsec-secgw: fix dependency on core 0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" If core 0 is not included in coremask in event mode then ipsec-secgw seg faults. This fix uses first core from coremask in rx queue configuration instead of core 0 which was always previously used. Signed-off-by: Lukasz Bartosik --- examples/ipsec-secgw/ipsec-secgw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c index ce36e6d..5fde4f7 100644 --- a/examples/ipsec-secgw/ipsec-secgw.c +++ b/examples/ipsec-secgw/ipsec-secgw.c @@ -2643,7 +2643,7 @@ check_event_mode_params(struct eh_conf *eh_conf) params = &lcore_params[nb_lcore_params++]; params->port_id = portid; params->queue_id = 0; - params->lcore_id = 0; + params->lcore_id = rte_get_next_lcore(0, 0, 1); } return 0; -- 2.7.4