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 531FBA0A0C; Mon, 5 Jul 2021 12:05:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0B7AA4068C; Mon, 5 Jul 2021 12:05:36 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id B79564003C for ; Mon, 5 Jul 2021 12:05:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625479533; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9PFZBBTbIG16GbjdqcYaVrrWmVqtd0xmFx7ejFL2n+k=; b=Z9Cw5HKBzOYr74HaLUFu2vmRYqq9sK0bgMeZtMr1tHIfaDaYF+YAWJXB8SgjDiBoG14Vzd MrrS4ZGCh1If446mdx5l4XCe8h2v4Tp7RzXn4Fu7ZAquHcepiPSXXn1TbcRd8G3rIaqLvc HQ7VKhSSD1tWGurJrOmisrY2GKWuW0k= Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-559-Ns62hw7WMj2xQO88epkY3w-1; Mon, 05 Jul 2021 06:05:30 -0400 X-MC-Unique: Ns62hw7WMj2xQO88epkY3w-1 Received: by mail-vk1-f198.google.com with SMTP id t204-20020a1faad50000b02902571e343342so2985479vke.12 for ; Mon, 05 Jul 2021 03:05:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9PFZBBTbIG16GbjdqcYaVrrWmVqtd0xmFx7ejFL2n+k=; b=dhqEXTfLfeqXlVi8XZe5xbkXccBs2DsuIbKHiWyFuekcM1+dEX9Mw/9mZenD0eZh3P 0f5boFn4I919sKnWuoK76Ju6ot5GEWdqfajuiryKzn5TBCKW3D0rV8sM1Ns+yKLOopi+ Ux3BMhzo90rcLfLvc3siiRCiLMNLLXa4oMh+0H4AKZLeGPhyg4c0hwelr2gRoKdE4nJL KwwWvXrDdRNvFtW0xa6x2YgGLgX34ISsuXM8KGoSQW/jftE6Q+qI2Gf/v8hEOkGycerU tCKGRJam+vD0Qj08xgxTvDk3XmmCwBq2eVYbyuGiMXNdNc6yQChAbQFHoMzCfvs9YCDN hJ8g== X-Gm-Message-State: AOAM533aaTnGqcacUqOfuVxjZ4hXfpblwGQtplGym75CLclCWsypG04N sJd9g+o37DguaNwMla4sZEr/BygNLG8A06RbzSQrC8qxiAWbAlqmcTNfdoYYJqQMgeExQmEDw5n gbXTeWRAhxUCxieiDsnU= X-Received: by 2002:a67:3001:: with SMTP id w1mr383040vsw.5.1625479529320; Mon, 05 Jul 2021 03:05:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhxVsEv5H6FCb8o4+3n1hV7O3QYDSgiHTG8GGjaaH0T7UH86OLl1ZTAg8w7oPR4RsCE1/FlOw8HjigLG2jvwc= X-Received: by 2002:a67:3001:: with SMTP id w1mr382741vsw.5.1625479526165; Mon, 05 Jul 2021 03:05:26 -0700 (PDT) MIME-Version: 1.0 References: <20210612230519.21614-1-xuemingl@nvidia.com> <20210613082421.24453-1-xuemingl@nvidia.com> In-Reply-To: <20210613082421.24453-1-xuemingl@nvidia.com> From: David Marchand Date: Mon, 5 Jul 2021 12:05:14 +0200 Message-ID: To: Xueming Li Cc: Thomas Monjalon , dev , Jerin Jacob , Sunil Kumar Kori , Kiran Kumar K , Nithin Dabilpuram Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v2] eal: save error in string copy 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 Sender: "dev" On Sun, Jun 13, 2021 at 10:25 AM Xueming Li wrote: > > From: Thomas Monjalon > > The string copy api rte_strscpy() doesn't set rte_errno during failures, > instead it just return negative error number. > > Sets rte_errrno if the destination buffer is too small. > > Signed-off-by: Thomas Monjalon > Signed-off-by: Xueming Li Reviewed-by: David Marchand Added RN update. Applied, thanks. -- David Marchand