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 D3C2245DA4; Mon, 25 Nov 2024 16:23:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6A86B402B5; Mon, 25 Nov 2024 16:23:17 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 225BD402A9 for ; Mon, 25 Nov 2024 16:23:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1732548195; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tG9mANVzz2J2TuEHPZeaf+uIKhfK6exYXj2mAFBXHas=; b=IOpDy7F74xX4OU5BBib6kxl9SlN0MLmZbmLppfN8EAZzwwA2E8GR4Yopomb+WLM73fwopn tiBmkq39CoPOi3Ajg6U+3n4SpUW22XrkYKUh14lqJIA5vnzoELCBpL4Z/EWuEQix3PYe9C jTBm1BvfFFu+PBtH4fmes6qd4lty1xU= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-478-lW91sDR-OEqKSGpjX9y_Dw-1; Mon, 25 Nov 2024 10:23:14 -0500 X-MC-Unique: lW91sDR-OEqKSGpjX9y_Dw-1 X-Mimecast-MFC-AGG-ID: lW91sDR-OEqKSGpjX9y_Dw Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-3822ec50b64so2544752f8f.1 for ; Mon, 25 Nov 2024 07:23:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732548193; x=1733152993; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tG9mANVzz2J2TuEHPZeaf+uIKhfK6exYXj2mAFBXHas=; b=PFkwx6mVqLac8/xDNPJs/USnoPViPphCL7YVXVT9CTS3uPe4RvK9gr08gMjOjmfj9J ccX3edBH3nzTOmmYkQLerojYKbS1d/eCBiABlUytY8DsLyYqHXrPDA8SBLgLaGqiJDY0 Xn33F5aTy6uotbvC9ROdo+0Nq/poB3+ZUfQeBPejmuH6fCti/c61AqjTZCEVcYHSQzOE HuhFDjm503W0wmoZq/3S4su3LQw8GswalPDTuxAwL7Y8oJnYf9DXQaSqcJlJ9MJphG47 bdSjzV6waHeq5G9B1fGyhlzEVFu3DLdhhraKTZncDbnPU2pLOfpBgfWSpSMlsmbjBCD3 nK2w== X-Gm-Message-State: AOJu0YxSYPaeqt3ok3iQjCgyy/DTXOoW0QbqytyYFu0VV7bUDqNV/t9u OunA7Z05R8PWs/Ewxu4yU23RGcxSg4iAaFd+h9K7FMSttEgMkPoOtIOEPGdh4qNVa2kgwjNXFWi 3WMOB8V8LgO0b2EqnWbdXr4UI9++gjyYn3aE+0tTVFafuQaAw1NwUNCocgrIpp6MV1ciPLpaVWW pEyoxDwjq0o92lsee7UPA1wIcB/A== X-Gm-Gg: ASbGncvTgu0ypUZmlwRItdoud4O5YyJZbGfQoQ5RkE3tYAIN/pX63exUmpUVlYqjrWR qOPah1erUTi2U7PLqGO+kYJAbj5WMux1eoQ6v2pMUM7YkSm8vS2KsIdv6VAm7MXBRVNg605r3SF eGWtbHpgbpc9IPinsAp06An2wyTTUDm12hKgG1sRR2F0LcwM+pEX91bKRzzPe3W3TCqJjQR1EdJ KJUSUOM01zOBUf/TWg0suoFXORaPwKpQ9b/KTcGGrS/6qxhO1MQFsdXGQIp1ew56VWml9DU32mH gH1PlwQShcRs/LpdLQaASmzxEgcQKyMeeMU= X-Received: by 2002:a05:6000:1a85:b0:382:31a1:8dc3 with SMTP id ffacd0b85a97d-38260b98812mr11415694f8f.35.1732548193034; Mon, 25 Nov 2024 07:23:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IEr3VVE17UPhxZuj9pHUVIM+MqR/R2RzzbJKnsiA9txa7Z1zkfc6KsekL8w4N5SLrWHUgaOUg== X-Received: by 2002:a05:6000:1a85:b0:382:31a1:8dc3 with SMTP id ffacd0b85a97d-38260b98812mr11415675f8f.35.1732548192682; Mon, 25 Nov 2024 07:23:12 -0800 (PST) Received: from ?IPV6:2a06:5900:a64:6900:a865:5475:aa45:d03? ([2a06:5900:a64:6900:a865:5475:aa45:d03]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825fbc40a1sm10633769f8f.69.2024.11.25.07.23.12 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Nov 2024 07:23:12 -0800 (PST) Message-ID: Date: Mon, 25 Nov 2024 15:23:11 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 06/14] net/af_xdp: use rte strerror To: dev@dpdk.org References: <20231114082539.1858594-1-huangdengdui@huawei.com> <20241114114000.1677350-1-huangdengdui@huawei.com> <20241114114000.1677350-7-huangdengdui@huawei.com> From: Maryam Tahhan In-Reply-To: <20241114114000.1677350-7-huangdengdui@huawei.com> X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: -Jf92TlAxtxksOVMHqbk_tkXQiNXIu4uZSfaeAQMWeQ_1732548193 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 > The rte_errno may be an RTE-specific error code, > use rte_strerror() instead of strerror(). > > Signed-off-by: Dengdui Huang > --- > drivers/net/af_xdp/rte_eth_af_xdp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c > index 814398ba4b..c74107d46a 100644 > --- a/drivers/net/af_xdp/rte_eth_af_xdp.c > +++ b/drivers/net/af_xdp/rte_eth_af_xdp.c > @@ -2518,7 +2518,7 @@ rte_pmd_af_xdp_probe(struct rte_vdev_device *dev) > ret = rte_mp_action_register(ETH_AF_XDP_MP_KEY, afxdp_mp_send_fds); > if (ret < 0 && rte_errno != ENOTSUP) { > AF_XDP_LOG_LINE(ERR, "%s: Failed to register multi-process IPC callback: %s", > - name, strerror(rte_errno)); > + name, rte_strerror(rte_errno)); > return -1; > } > } Acked-by: Maryam Tahhan