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 C875BA10DA for ; Fri, 2 Aug 2019 11:35:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C31661C22A; Fri, 2 Aug 2019 11:35:38 +0200 (CEST) Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by dpdk.org (Postfix) with ESMTP id 8E4691C22A for ; Fri, 2 Aug 2019 11:35:37 +0200 (CEST) Received: by mail-pl1-f193.google.com with SMTP id b3so33457747plr.4 for ; Fri, 02 Aug 2019 02:35:37 -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=Gws2wNOyyNacmWjr2F1w4SC9vgcf8QsWFmdwC1pgWu0=; b=DBWKWWrkaISzWarZqnVEkGxEfRNRc7KtljGUn5V4KTjxf/gFAbA5r2jRKjSkqqnaCk pzr83vJVSnykek/IU8MwAoaIKff/6UcmO735aPj2MCHQSWpWE0w7RFHeWYyrbeJgyOio v/l4hm4KJQdJCTI8SHaT73IxqJzI5mioISaWMgVOJEnHkQIxgpryBa39cVnmdfYyhLSa h0aMrGoOXR+HQD0M1BFwmx5XVzK5U0zPqjO2p3LWdqg0Xzx9PePYa0gBQkGjbOLp5SMC wsCuUr64u77qhk/p2n7UYhAkE7LABH/kTlGJiEy96pu6dILlvSjho+3y5A05yglmypJs GP7Q== 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=Gws2wNOyyNacmWjr2F1w4SC9vgcf8QsWFmdwC1pgWu0=; b=idSgPe3t5Uy98yChD/fVUw59Xq6gFj/uXyEFlLHMSdJ7ltvCmRvY+CLUnSAxe1/2ZG qGifhnroTEpDCRQcNbaEXvOr1pOC0uzVC18sTRfL/mgsh2Ljaxdu3qySCmTV1Jq8ydfR PN0ClKYrq5slYnQCy5368aYOAxclVq5vUWZSZh9y+XUa87jvF4nN6BevYBttxIoWcc8b EMB8B06LDNwRwhWAANMXrZd2AMaoHIOL7U7HXaIv7ATzOi0nrsptD0o+bNdVZA+n1HJQ ojKRbLHnPEoxB1SzVeVzTWmeREr9lqejqJc/qE+xTIVmKywPJYzUOmgxaCdBbNp3R0wt jXNQ== X-Gm-Message-State: APjAAAWl92gS1azfpDLpJCfSWvq2iSksNqkBmZztI+LmGyGTp4zhcqxK tGX5rMRXnuv/olDt0TADk4QTNNdE X-Google-Smtp-Source: APXvYqx3TCeFUJM54Vzvw/3aCezQMp3LYO19FRqfdt0uzzvXrWbL1FM2l4pz+uhUALwaXctV/cTjhg== X-Received: by 2002:a17:902:5985:: with SMTP id p5mr33971159pli.177.1564738536684; Fri, 02 Aug 2019 02:35:36 -0700 (PDT) Received: from localhost.localdomain ([2400:4050:c8c2:de00:9c1a:eba9:3129:63d2]) by smtp.gmail.com with ESMTPSA id u24sm16155183pgk.31.2019.08.02.02.35.35 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 02 Aug 2019 02:35:36 -0700 (PDT) From: Yasufumi Ogawa To: spp@dpdk.org, ferruh.yigit@intel.com, yasufum.o@gmail.com Date: Fri, 2 Aug 2019 18:35:31 +0900 Message-Id: <20190802093531.13934-1-yasufum.o@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [spp] [PATCH] shared/sec: rename SPP_CHANGE_UPDATE_INTERVAL 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" This update is to rename define SPP_CHANGE_UPDATE_INTERVAL to SPPWK_UPDATE_INTERVAL. Signed-off-by: Yasufumi Ogawa --- src/mirror/spp_mirror.c | 2 +- src/shared/secondary/spp_worker_th/cmd_utils.c | 2 +- src/shared/secondary/spp_worker_th/cmd_utils.h | 2 +- src/vf/classifier.c | 5 +---- src/vf/forwarder.c | 2 +- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/mirror/spp_mirror.c b/src/mirror/spp_mirror.c index 0050a51..6cf7b93 100644 --- a/src/mirror/spp_mirror.c +++ b/src/mirror/spp_mirror.c @@ -284,7 +284,7 @@ update_mirror(struct sppwk_comp_info *wk_comp) info->upd_index = info->ref_index; while (likely(info->ref_index == info->upd_index)) - rte_delay_us_block(SPP_CHANGE_UPDATE_INTERVAL); + rte_delay_us_block(SPPWK_UPDATE_INTERVAL); RTE_LOG(INFO, MIRROR, "Done update mirror (id=%d, name=%s, type=%d)\n", diff --git a/src/shared/secondary/spp_worker_th/cmd_utils.c b/src/shared/secondary/spp_worker_th/cmd_utils.c index a2b0300..de472cc 100644 --- a/src/shared/secondary/spp_worker_th/cmd_utils.c +++ b/src/shared/secondary/spp_worker_th/cmd_utils.c @@ -705,7 +705,7 @@ update_lcore_info(void) if (*(p_change_core + cnt) != 0) { info = (p_core_info + cnt); while (likely(info->ref_index == info->upd_index)) - rte_delay_us_block(SPP_CHANGE_UPDATE_INTERVAL); + rte_delay_us_block(SPPWK_UPDATE_INTERVAL); memcpy(&info->core[info->upd_index], &info->core[info->ref_index], diff --git a/src/shared/secondary/spp_worker_th/cmd_utils.h b/src/shared/secondary/spp_worker_th/cmd_utils.h index 4ae6956..be49a3d 100644 --- a/src/shared/secondary/spp_worker_th/cmd_utils.h +++ b/src/shared/secondary/spp_worker_th/cmd_utils.h @@ -28,7 +28,7 @@ #define SPPWK_TYPE_NONE_STR "unuse" /** Waiting time for checking update (not used for spp_pcap). */ -#define SPP_CHANGE_UPDATE_INTERVAL 10 /* micro sec */ +#define SPPWK_UPDATE_INTERVAL 10 /* micro sec */ /** * Used for index of arrary of management data which has two sides. It is not diff --git a/src/vf/classifier.c b/src/vf/classifier.c index e7991c6..4fbe0ad 100644 --- a/src/vf/classifier.c +++ b/src/vf/classifier.c @@ -47,9 +47,6 @@ /* number of classifier mac table entry */ #define NOF_CLS_TABLE_ENTRIES 128 -/* interval that wait until change update index (micro second) */ -#define CHANGE_UPDATE_INDEX_WAIT_INTERVAL SPP_CHANGE_UPDATE_INTERVAL - /* * interval that transmit burst packet, * if buffer is not filled (nano second) @@ -724,7 +721,7 @@ update_classifier(struct sppwk_comp_info *wk_comp_info) /* wait until no longer access the new update side */ while (likely(mng_info->ref_index == mng_info->upd_index)) - rte_delay_us_block(CHANGE_UPDATE_INDEX_WAIT_INTERVAL); + rte_delay_us_block(SPPWK_UPDATE_INTERVAL); /* uninitialize old */ uninit_component_info(mng_info->cmp_infos + mng_info->upd_index); diff --git a/src/vf/forwarder.c b/src/vf/forwarder.c index 4a05ed2..b019d6c 100644 --- a/src/vf/forwarder.c +++ b/src/vf/forwarder.c @@ -156,7 +156,7 @@ update_forwarder(struct sppwk_comp_info *comp_info) fwd_info->upd_index = fwd_info->ref_index; while (likely(fwd_info->ref_index == fwd_info->upd_index)) - rte_delay_us_block(SPP_CHANGE_UPDATE_INTERVAL); + rte_delay_us_block(SPPWK_UPDATE_INTERVAL); RTE_LOG(INFO, FORWARD, "Done update forwarder. (id=%d, name=%s, type=%d)\n", -- 2.17.1