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 2E6F8A0471 for ; Thu, 18 Jul 2019 07:01:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 26F4F1D9E; Thu, 18 Jul 2019 07:01:26 +0200 (CEST) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by dpdk.org (Postfix) with ESMTP id 322CA1D9E for ; Thu, 18 Jul 2019 07:01:25 +0200 (CEST) Received: by mail-pf1-f193.google.com with SMTP id t16so11978051pfe.11 for ; Wed, 17 Jul 2019 22:01:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=+YSAqT3b8bAb8J2iKfVK3oWXyq2UqEfi7huwBnrlvBE=; b=obMcSDUMqfPYEROIxAlxBxedQY1VVqOC52+bzmysbEjJbxzPCmacACA3WZw+Pe942n EPey6mbrlUpiyFNPM1b9uDKgrSKJ3sUpaLah62j99s0DnmDDZn3NqpuOkQ3X/liLsQSO vAmer4gu5Dc6nK2FtEdGIHJkPpm8qwJPRspTk3ZA7f58IbqKLkFq2j/AMF+ATJD0fRBE j+8VAIyuBFQiiARNlt5W5Zjrx//yHV5PfZJYA/QGZQ03D5IlmwJ2MU4APyGghdKPSqYi 1Gb0X/qnnXxQKPyF5Gfo8LxLAaKJwuv+l0gYZUHiBzsRGr5gGjQ5ppqsu/BxwUSlEy8Q KvwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=+YSAqT3b8bAb8J2iKfVK3oWXyq2UqEfi7huwBnrlvBE=; b=MfCt/vAl7XdHIAlOpgHPMZ3U9wKzPoJaeOQ/c33IMu7+gX0Sr4yKy0lMOHRgqsJwZK 7PxxcOaQ6WvAkZUN3fQjFaCsD/6yf6y+kDd6bdNFQSv5svjM10JRUMiKJhNjCmOZUbVV WLQMud7zqUiT6sjor+Ei+np6uIa3Nuxlq0yUidGWS6/8ttUvRq0bVVxCqxacmACPtn3p ECM0HRzBB53amqta66pM9Hu0ak0SdRvVuOTg4lLo0J3Bxjey62v0RtwiFC11MdG+7EmS Kv2kZ0aozu6hS+5A8fIxSFnjN7+NpgqDG+12m5cTTK74NrKAEd7Fm49EHRzt4S09MYlE roMA== X-Gm-Message-State: APjAAAU/LgCsE0K/w6UeIJ7DeyWoVdug3f7FeiR2ko+CEwYT3PH5bHf2 N94ZluVvvcRQIlishyxajksxkHfS X-Google-Smtp-Source: APXvYqy5dvK1npr5ZdoJeBsDbgJGGxY6CZpoJq0eABt5IERS2Lojr3ytfN5G3SJDZlb85oM/kU+OXw== X-Received: by 2002:a17:90a:f498:: with SMTP id bx24mr49518092pjb.91.1563426083324; Wed, 17 Jul 2019 22:01:23 -0700 (PDT) Received: from localhost.localdomain ([192.47.164.146]) by smtp.gmail.com with ESMTPSA id k25sm18958372pgt.53.2019.07.17.22.01.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jul 2019 22:01:22 -0700 (PDT) From: yasufum.o@gmail.com To: spp@dpdk.org, ferruh.yigit@intel.com, yasufum.o@gmail.com Date: Thu, 18 Jul 2019 14:01:16 +0900 Message-Id: <20190718050119.6822-1-yasufum.o@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [spp] [PATCH 0/3] Fix assigning wrong master lcore X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spp-bounces@dpdk.org Sender: "spp" From: Yasufumi Ogawa In spp_vf, spp_mirror and spp_pcap, master lcore is always set as 0 and cannot to others. It is because rte_get_master_lcore() returns 0 if it is called before rte_eal_init(). This series of patches is to fix the issue for each of processes by moving rte_eal_init() before rte_get_master_lcore(). Yasufumi Ogawa (3): spp_vf: fix wrong master lcore other than 0 spp_mirror: fix wrong master lcore other than 0 spp_pcap: fix wrong master lcore other than 0 src/mirror/spp_mirror.c | 20 ++++++++++++-------- src/pcap/spp_pcap.c | 20 ++++++++++++-------- src/vf/spp_vf.c | 20 ++++++++++++-------- 3 files changed, 36 insertions(+), 24 deletions(-) -- 2.17.1