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 364C141D32; Tue, 21 Feb 2023 20:03:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8707E42DB8; Tue, 21 Feb 2023 20:02:55 +0100 (CET) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mails.dpdk.org (Postfix) with ESMTP id 3B72D42D5E for ; Tue, 21 Feb 2023 20:02:31 +0100 (CET) Received: by mail-pl1-f182.google.com with SMTP id e5so7200833plg.8 for ; Tue, 21 Feb 2023 11:02:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kFRl8j+YQC8GSnvt8uJaAlHH4NW76fDU6O3JskDGXTA=; b=YapggZ/fN7fRVdmvt9EZS9JdYX8qlRhSWOA0EMW5/b2cxJFuoUwN4BOuJcn/88ur/x ohL2XjbLauQkrmiGhVqUAopA88DMfIaXDIGc3sVLeNz8gOSP2Sk1LUP7mw9aCIryfnym VsZHUoDXJ0U2H4tIIFYgxVRqHBICsFYu/9GyN/BChOpFnnJMyiUe106s4jfg4eFVEcRq W2g2pwLqDKFCelP3HQj9K9Gk0ODWlaIr6NJdWodRu2XSoi1pJl0uExSpQqh7fzaF/9yk l9JwauuKZ7EMjK1h9vCtkjDqwxpXPyEH1xgUb+WCdJb7f2E6dOw9j122zcsEN+Wei+I5 EkvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kFRl8j+YQC8GSnvt8uJaAlHH4NW76fDU6O3JskDGXTA=; b=5F2cbePvulc5yd4JiozCEnFpuofLHQqjAvmabvyJiEtT9T4nDVE0juMPEI0Ajspo8X y77BoGHABx1swCKN6LXF4Qou/J7QcgNFZRvMRy1oW4nCxOoqdhJ+5nSaJlzEQTGfmyPS NUorjeZN0G/awB66hkfPNGVCd8fKMygG8hVQl2MLumoelc3jYMFPAbJTdngDXc+lWYsh +SC3DfCZjpQ8+xNtxRliXskdYSCZSALqTq9okl+cDrKBSvGbQcXGPP5u8FIkhTObmGvj JSPBCdzkqcX/s74HTgtlfAuR857Eo8ZEEEQdmoUGYSPq7GxWwiSelx59MRdgCoBEaONI QfHA== X-Gm-Message-State: AO0yUKX7loEG1RUHlznqIVzbzXur8EH27JFxqwsrtLDdB5VXVu12Bh6D Jplm3TTginCUHL7CMCQaeDH/HFoad/uc1mtUNdA= X-Google-Smtp-Source: AK7set9b4dsnKwUs3fi4OY3KYUYEJfohyJvT3edJ+O80qpRvIce+/rnsXixGUm+u6/ifoEsUJZ7SmA== X-Received: by 2002:a17:902:ba93:b0:196:6ec0:345a with SMTP id k19-20020a170902ba9300b001966ec0345amr6759980pls.25.1677006150215; Tue, 21 Feb 2023 11:02:30 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id jc4-20020a17090325c400b001991e59fde6sm10213018plb.216.2023.02.21.11.02.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 11:02:29 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , akhil.goyal@nxp.com, Radu Nicolau , Akhil Goyal , Boris Pismenny , Declan Doherty , Aviad Yehezkel Subject: [PATCH v9 15/22] examples/ipsecgw: replace RTE_LOGTYPE_PORT Date: Tue, 21 Feb 2023 11:02:01 -0800 Message-Id: <20230221190208.514276-16-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230221190208.514276-1-stephen@networkplumber.org> References: <20230207204151.1503491-1-stephen@networkplumber.org> <20230221190208.514276-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Looks like some code got copy/paste in to the IPSEC gateway example from another place. Shouldn't be using RTE_LOGTYPE_PORT here. Fixes: ec17993a145a ("examples/ipsec-secgw: support security offload") Cc: akhil.goyal@nxp.com Signed-off-by: Stephen Hemminger --- examples/ipsec-secgw/sa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c index 7da9444a7b8a..67327fda8dbc 100644 --- a/examples/ipsec-secgw/sa.c +++ b/examples/ipsec-secgw/sa.c @@ -1127,7 +1127,7 @@ check_eth_dev_caps(uint16_t portid, uint32_t inbound, uint32_t tso) if (inbound) { if ((dev_info.rx_offload_capa & RTE_ETH_RX_OFFLOAD_SECURITY) == 0) { - RTE_LOG(WARNING, PORT, + RTE_LOG(WARNING, IPSEC, "hardware RX IPSec offload is not supported\n"); return -EINVAL; } @@ -1135,13 +1135,13 @@ check_eth_dev_caps(uint16_t portid, uint32_t inbound, uint32_t tso) } else { /* outbound */ if ((dev_info.tx_offload_capa & RTE_ETH_TX_OFFLOAD_SECURITY) == 0) { - RTE_LOG(WARNING, PORT, + RTE_LOG(WARNING, IPSEC, "hardware TX IPSec offload is not supported\n"); return -EINVAL; } if (tso && (dev_info.tx_offload_capa & RTE_ETH_TX_OFFLOAD_TCP_TSO) == 0) { - RTE_LOG(WARNING, PORT, + RTE_LOG(WARNING, IPSEC, "hardware TCP TSO offload is not supported\n"); return -EINVAL; } -- 2.39.1