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 28FBB41CA8; Wed, 15 Feb 2023 18:25:20 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 901CB42DAA; Wed, 15 Feb 2023 18:24:17 +0100 (CET) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by mails.dpdk.org (Postfix) with ESMTP id 7F23442D2C for ; Wed, 15 Feb 2023 18:24:04 +0100 (CET) Received: by mail-pf1-f176.google.com with SMTP id z3so7043267pfw.7 for ; Wed, 15 Feb 2023 09:24:04 -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=dq+AgOU8avvUAdJdRttsRs7eJaaLii0ajBvYUukLUJxgjKUnoMNdRh5ZjiqgcGD+LG Zw7hL8ngNE0foFRoymrRftDaHvTxQbVwYgjlY88QcMKFMHsYqXNSW5ax+1H4BLjh9V+n 4uo/Ftm3ixG7SYQdU69KgVG5MQuUaA2/NVpXGhyl6y8aUh47e7oTDEmVRg5epJqGmMz8 XhoYJF0k4QeLfdwC2nr4g6jB5W1fGH3VM/8nbotj8UiMjf1jciXlDuAOk8CmqXzJTeur DrjipcvRfbX0Q4Ia6oyfQ2cpDBaAxnjkRCdEg1PHZEDe/GcCTht9S2Xm5BgGh/ActJNc rRZg== 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=GFKZHT94af17ewe8tc9kz5FMxM0A+K/n6snEw3ByjAEXS/APrufdCjNnj8m8jJQ2QA XU7Wa1hgGR/EmMkPZQK/9r9qjdKrbMUr46mnAT4aK++VGgl8NZ2kafaHfVXPBVc1SOGs j4TKFJ748GU37IV0GtX/4eJHKiBaqDFE+6J2+cs8o4oa51sJQkv2iTTXlzPGN0I73Os9 Atz1tM6A0NUmgJPPn+IrEKYXw7jVr740M6kIY6e2XfkifMuszW9aDHG/O16I4rXNrgJc yTWJUXyCMpvDz2f/fbPz3ns1VVLp3gXwDW7cYie0xMw0y69P1OhAUtNoCyoP+FYjms3k iMgA== X-Gm-Message-State: AO0yUKXonQU2JcpfXSGHWQL974CQkzwK3OpDQxnN6dWF6pd8+Wu7bQs4 19I35grQXWRScB6glbR4Zs9EF4/OOzT4rdPeOS2RIA== X-Google-Smtp-Source: AK7set+qC8MJiDRtg389LgdLvu3TcBSmZLgCnPfkIDG5cuVQfuESoCGVxNpuR/VzA15rylezzbvYMQ== X-Received: by 2002:aa7:96f7:0:b0:5a8:51bd:e0f4 with SMTP id i23-20020aa796f7000000b005a851bde0f4mr2568739pfq.18.1676481843684; Wed, 15 Feb 2023 09:24:03 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id m7-20020aa79007000000b005a8da960fa8sm3705304pfo.144.2023.02.15.09.24.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 09:24:03 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , akhil.goyal@nxp.com, Radu Nicolau , Akhil Goyal , Declan Doherty , Aviad Yehezkel , Boris Pismenny Subject: [PATCH v7 15/22] examples/ipsecgw: replace RTE_LOGTYPE_PORT Date: Wed, 15 Feb 2023 09:23:34 -0800 Message-Id: <20230215172341.1525320-16-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230215172341.1525320-1-stephen@networkplumber.org> References: <20230207204151.1503491-1-stephen@networkplumber.org> <20230215172341.1525320-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