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 84DF6A0548; Tue, 22 Jun 2021 04:50:12 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 72BFA410FE; Tue, 22 Jun 2021 04:50:12 +0200 (CEST) Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by mails.dpdk.org (Postfix) with ESMTP id 4AB1040040; Tue, 22 Jun 2021 04:50:10 +0200 (CEST) Received: from lenovo.loongson.cn (unknown [223.104.38.180]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxX0PUT9Fg4KEVAA--.3397S2; Tue, 22 Jun 2021 10:50:01 +0800 (CST) From: SunChengLian To: dev@dpdk.org, sunchenglian@loongson.cn Cc: bruce.richardson@intel.com, stable@dpdk.org, david.marchand@redhat.com Date: Tue, 22 Jun 2021 10:49:43 +0800 Message-Id: <20210622024944.1180109-2-sunchenglian@loongson.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210611100357.388290-1-sunchenglian@loongson.cn> References: <20210611100357.388290-1-sunchenglian@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf9DxX0PUT9Fg4KEVAA--.3397S2 X-Coremail-Antispam: 1UD129KBjvJXoW7Kw47CF47Xr1DKr45WF4xtFb_yoW8tr1kpr W5X3Z7J3Z0vw1jqw4Ut34xWrn5GFWfJw43ArWkZ3Wxt3WDJas7Wr40kw1DZr1DGFWvvrWD ZF1Sv3yfJF1rJ3JanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUkG14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4U JVWxJr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AKxV WxJr0_GcWle2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2Wl Yx0E2Ix0cI8IcVAFwI0_JrI_JrylYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbV WUJVW8JwACjcxG0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1lc2xSY4AK67AK 6r4UMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI 0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y 0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Zr0_Wr1UMIIF0xvEx4A2jsIE14v26r1j6r4U MIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x0JUdnYwUUU UU= X-CM-SenderInfo: pvxquxxhqjzxtdq6z05rqj20fqof0/1tbiAQATDl3QvNeZtgBPsa Subject: [dpdk-dev] [PATCH v3 2/2] examples/l2fwd: remove mac-updating option X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" The "mac-updating" option can be removed since the associated mac_updating variable is set to 1 by default. Signed-off-by: SunChengLian Reviewed-by: David Marchand --- examples/l2fwd/main.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c index 23e5e46761..70d342f23a 100644 --- a/examples/l2fwd/main.c +++ b/examples/l2fwd/main.c @@ -307,7 +307,7 @@ l2fwd_usage(const char *prgname) " -p PORTMASK: hexadecimal bitmask of ports to configure\n" " -q NQ: number of queue (=ports) per lcore (default is 1)\n" " -T PERIOD: statistics will be refreshed each PERIOD seconds (0 to disable, 10 default, 86400 maximum)\n" - " --[no-]mac-updating: Enable or disable MAC addresses updating (enabled by default)\n" + " --no-mac-updating: Disable MAC addresses updating (enabled by default)\n" " When enabled:\n" " - The source MAC address is replaced by the TX port MAC address\n" " - The destination MAC address is replaced by 02:00:00:00:00:TX_PORT_ID\n" @@ -425,7 +425,6 @@ static const char short_options[] = "T:" /* timer period */ ; -#define CMD_LINE_OPT_MAC_UPDATING "mac-updating" #define CMD_LINE_OPT_NO_MAC_UPDATING "no-mac-updating" #define CMD_LINE_OPT_PORTMAP_CONFIG "portmap" @@ -434,14 +433,11 @@ enum { /* first long only option value must be >= 256, so that we won't * conflict with short options */ - CMD_LINE_OPT_MAC_UPDATING_NUM = 256, - CMD_LINE_OPT_NO_MAC_UPDATING_NUM, + CMD_LINE_OPT_NO_MAC_UPDATING_NUM = 256, CMD_LINE_OPT_PORTMAP_NUM, }; static const struct option lgopts[] = { - { CMD_LINE_OPT_MAC_UPDATING, no_argument, 0, - CMD_LINE_OPT_MAC_UPDATING_NUM}, { CMD_LINE_OPT_NO_MAC_UPDATING, no_argument, 0, CMD_LINE_OPT_NO_MAC_UPDATING_NUM}, { CMD_LINE_OPT_PORTMAP_CONFIG, 1, 0, CMD_LINE_OPT_PORTMAP_NUM}, @@ -505,10 +501,6 @@ l2fwd_parse_args(int argc, char **argv) } break; - case CMD_LINE_OPT_MAC_UPDATING_NUM: - mac_updating = 1; - break; - case CMD_LINE_OPT_NO_MAC_UPDATING_NUM: mac_updating = 0; break; -- 2.25.1