From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from huawei.com (szxga07-in.huawei.com [45.249.212.35]) by dpdk.org (Postfix) with ESMTP id 9DE4A5B38 for ; Tue, 30 Apr 2019 11:32:55 +0200 (CEST) Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 3F8E429BCF87A77981E0 for ; Tue, 30 Apr 2019 17:32:54 +0800 (CST) Received: from huawei.com (10.175.100.202) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Tue, 30 Apr 2019 17:32:53 +0800 From: Suanming.Mou To: CC: , Date: Tue, 30 Apr 2019 11:35:23 +0000 Message-ID: <1556624124-54930-1-git-send-email-mousuanming@huawei.com> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: <1556595548-53745-1-git-send-email-mousuanming@huawei.com> References: <1556595548-53745-1-git-send-email-mousuanming@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.100.202] X-CFilter-Loop: Reflected Subject: [dpdk-dev] [PATCH v5] Make pdump exits with primary. 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: , X-List-Received-Date: Tue, 30 Apr 2019 09:32:56 -0000 When primary exits, pdump as the sencondary keeps running will make primary fail to restart. Add the primary monitor in pdump to make it eixts with primary. Note: One more thing still not confirmed is that if it can be set default. In the V5 patch, it is still set as default. Since it seems there is no disadvantages to make it exit with primary as default as Anatoly suggested. But the exit_with_primary configuration is needed, there will be a v6 patch and the doc update. Change in v5: - add rte_eal_alarm_cancel - make the primary monitor enable/disable more indepence. Change in v4: - remove the exit_with_primary option as Anatoly suggested. - fix typo. Change in v3: - remove the redundant return. Change in v2: - add exit_with_primary option. - use rte_eal_alarm_set to monitor the primary. Suanming.Mou (1): app/pdump: add pudmp exits with primary support. app/pdump/main.c | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) -- 1.8.3.4 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id CDCCFA0679 for ; Tue, 30 Apr 2019 11:32:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 91C4D5F29; Tue, 30 Apr 2019 11:32:57 +0200 (CEST) Received: from huawei.com (szxga07-in.huawei.com [45.249.212.35]) by dpdk.org (Postfix) with ESMTP id 9DE4A5B38 for ; Tue, 30 Apr 2019 11:32:55 +0200 (CEST) Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 3F8E429BCF87A77981E0 for ; Tue, 30 Apr 2019 17:32:54 +0800 (CST) Received: from huawei.com (10.175.100.202) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Tue, 30 Apr 2019 17:32:53 +0800 From: Suanming.Mou To: CC: , Date: Tue, 30 Apr 2019 11:35:23 +0000 Message-ID: <1556624124-54930-1-git-send-email-mousuanming@huawei.com> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: <1556595548-53745-1-git-send-email-mousuanming@huawei.com> References: <1556595548-53745-1-git-send-email-mousuanming@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Originating-IP: [10.175.100.202] X-CFilter-Loop: Reflected Subject: [dpdk-dev] [PATCH v5] Make pdump exits with primary. 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" Message-ID: <20190430113523.uLlG1sCKPT1Rsw-odS6NIXBYgHUIOjI4GVktzcC8VL8@z> When primary exits, pdump as the sencondary keeps running will make primary fail to restart. Add the primary monitor in pdump to make it eixts with primary. Note: One more thing still not confirmed is that if it can be set default. In the V5 patch, it is still set as default. Since it seems there is no disadvantages to make it exit with primary as default as Anatoly suggested. But the exit_with_primary configuration is needed, there will be a v6 patch and the doc update. Change in v5: - add rte_eal_alarm_cancel - make the primary monitor enable/disable more indepence. Change in v4: - remove the exit_with_primary option as Anatoly suggested. - fix typo. Change in v3: - remove the redundant return. Change in v2: - add exit_with_primary option. - use rte_eal_alarm_set to monitor the primary. Suanming.Mou (1): app/pdump: add pudmp exits with primary support. app/pdump/main.c | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) -- 1.8.3.4