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 1822EA052A; Sat, 18 Jul 2020 09:27:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6D4401BFED; Sat, 18 Jul 2020 09:25:44 +0200 (CEST) Received: from mail-wr1-f100.google.com (mail-wr1-f100.google.com [209.85.221.100]) by dpdk.org (Postfix) with ESMTP id 37E691BFAC for ; Sat, 18 Jul 2020 09:25:40 +0200 (CEST) Received: by mail-wr1-f100.google.com with SMTP id r12so13180779wrj.13 for ; Sat, 18 Jul 2020 00:25:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=E2y91GN0eM9nw1lYHyyDEbrsLpoII/Ux6vS6EzO+Z/c=; b=PURovNmzAgEJhfXqRhMwc4NFAKk8YiAS8alrOpNfAeXgk5xQ/LQh1OOHO46hevDxAh gQSvkAIoWzt1pVbo1X/y0+HLOzM6jU254eM7mxOl4/uve4UKZ3t9Gwpm8IxSnqlsNLWV JWqSXyWUh+K3q7PfhKR8DpM7wRPDyfwtkTysQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=E2y91GN0eM9nw1lYHyyDEbrsLpoII/Ux6vS6EzO+Z/c=; b=DSI2ycOLUvWnwC2qq+UC0/cB3bOFRKhsR5dTCUekz89DMbnum8TOsmOciYoqac7xVU H/6/mYMznke7VQUd42xO9iVGhe0s8o5bgpxPYUuSdNEM7/fMsLtLfxN2HZ4sWC5krEep qmzRWetyfhuannIq5DvJwctD+zySviK4aT5s6qN+NbgMtjT1X9HdZatFwUDQRaYz0XxQ uDrX4Rn9g5avn4PgqqO/HOgN5QL9Xfnrgf6UDGgzWwvR9Ur5p8X28t0DyznQEaQ6DGDF HCTIcyHfopZglTxu0xVWmFxeC3kgHIicFl660hqc3WgFEdKvhJOy+nok9O6R0c5HZAyV NLmQ== X-Gm-Message-State: AOAM533n6lvl5EKDnD1m3bWtUqG2aWRA/GJ7koFXp4RMtF1X7+D4CYLv KrhpJpx59ljO9v+Wp61qxaIPQE562+9i3E7QzEe0td8LeQQteuFNKuoPMGJ0duiVqqX2drDNF0a w8DO8ySGE6xY6IHYaz2LBKgEAMoNYCjwUa2CAOTrzz5olkDEXVIhJNr2VUKzpoJ6tKlr9VGG0MS Fp6g== X-Google-Smtp-Source: ABdhPJxjdv9khZZKyHbpXU4Z5qRHL4Ez514cIpkRUoKPEZ/900mLSvDOYbvre/gl2wrQ2ZdReGi9YSwsUmGQ X-Received: by 2002:a5d:464e:: with SMTP id j14mr13517431wrs.393.1595057139572; Sat, 18 Jul 2020 00:25:39 -0700 (PDT) Received: from localhost.localdomain ([192.19.223.252]) by smtp-relay.gmail.com with ESMTPS id g14sm34554wrb.16.2020.07.18.00.25.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jul 2020 00:25:39 -0700 (PDT) X-Relaying-Domain: broadcom.com From: Ajit Khaparde To: dev@dpdk.org Cc: Jay Ding , Somnath Kotur , Kishore Padmanabha Date: Sat, 18 Jul 2020 00:25:08 -0700 Message-Id: <20200718072515.62969-8-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.21.1 (Apple Git-122.3) In-Reply-To: <20200718072515.62969-1-ajit.khaparde@broadcom.com> References: <20200717141451.11705-1-somnath.kotur@broadcom.com> <20200718072515.62969-1-ajit.khaparde@broadcom.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 07/14] net/bnxt: use NAT IPv4 action 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" From: Jay Ding Use NAT IPv4 instead of NAT IPv4 SRC and DST. Signed-off-by: Jay Ding Signed-off-by: Somnath Kotur Reviewed-by: Kishore Padmanabha --- drivers/net/bnxt/tf_core/tf_core.h | 4 +--- drivers/net/bnxt/tf_core/tf_device_p4.h | 1 - drivers/net/bnxt/tf_core/tf_util.c | 6 ++---- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/net/bnxt/tf_core/tf_core.h b/drivers/net/bnxt/tf_core/tf_core.h index 8fa734ace..67415adaf 100644 --- a/drivers/net/bnxt/tf_core/tf_core.h +++ b/drivers/net/bnxt/tf_core/tf_core.h @@ -228,9 +228,7 @@ enum tf_tbl_type { /** Wh+/SR Action Modify L4 Dest Port */ TF_TBL_TYPE_ACT_MODIFY_DPORT, /** Wh+/SR Action Modify IPv4 Source */ - TF_TBL_TYPE_ACT_MODIFY_IPV4_SRC, - /** Wh+/SR Action _Modify L4 Dest Port */ - TF_TBL_TYPE_ACT_MODIFY_IPV4_DEST, + TF_TBL_TYPE_ACT_MODIFY_IPV4, /** Meter Profiles */ TF_TBL_TYPE_METER_PROF, /** Meter Instance */ diff --git a/drivers/net/bnxt/tf_core/tf_device_p4.h b/drivers/net/bnxt/tf_core/tf_device_p4.h index 06c3ecf75..7e58469a0 100644 --- a/drivers/net/bnxt/tf_core/tf_device_p4.h +++ b/drivers/net/bnxt/tf_core/tf_device_p4.h @@ -50,7 +50,6 @@ struct tf_rm_element_cfg tf_tbl_p4[TF_TBL_TYPE_MAX] = { { TF_RM_ELEM_CFG_HCAPI_BA, CFA_RESOURCE_TYPE_P4_NAT_PORT }, { TF_RM_ELEM_CFG_HCAPI_BA, CFA_RESOURCE_TYPE_P4_NAT_PORT }, { TF_RM_ELEM_CFG_HCAPI_BA, CFA_RESOURCE_TYPE_P4_NAT_IPV4 }, - { TF_RM_ELEM_CFG_HCAPI_BA, CFA_RESOURCE_TYPE_P4_NAT_IPV4 }, { TF_RM_ELEM_CFG_HCAPI_BA, CFA_RESOURCE_TYPE_P4_METER_PROF }, { TF_RM_ELEM_CFG_HCAPI_BA, CFA_RESOURCE_TYPE_P4_METER }, { TF_RM_ELEM_CFG_HCAPI_BA, CFA_RESOURCE_TYPE_P4_MIRROR }, diff --git a/drivers/net/bnxt/tf_core/tf_util.c b/drivers/net/bnxt/tf_core/tf_util.c index bf6a6a363..34f430567 100644 --- a/drivers/net/bnxt/tf_core/tf_util.c +++ b/drivers/net/bnxt/tf_core/tf_util.c @@ -92,10 +92,8 @@ tf_tbl_type_2_str(enum tf_tbl_type tbl_type) return "NAT Source Port"; case TF_TBL_TYPE_ACT_MODIFY_DPORT: return "NAT Destination Port"; - case TF_TBL_TYPE_ACT_MODIFY_IPV4_SRC: - return "NAT IPv4 Source"; - case TF_TBL_TYPE_ACT_MODIFY_IPV4_DEST: - return "NAT IPv4 Destination"; + case TF_TBL_TYPE_ACT_MODIFY_IPV4: + return "NAT IPv4"; case TF_TBL_TYPE_METER_PROF: return "Meter Profile"; case TF_TBL_TYPE_METER_INST: -- 2.21.1 (Apple Git-122.3)