From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by dpdk.org (Postfix) with ESMTP id 799404F9A for ; Wed, 20 Mar 2019 16:32:09 +0100 (CET) Received: by mail-pf1-f193.google.com with SMTP id p10so2195701pff.3 for ; Wed, 20 Mar 2019 08:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8cgqHayxLZEyVFYxoGvmeh17IIe5tRy+allEkw7w3uM=; b=cB41zc0OfZPDCSkq9hxTOQi3W0XwCusjvk/3YXlww5hIZnK9uXAlpo3a7mCJMUVrxY VrRqpRYXQ6YMwfRZCpepKaXypuZaOuJJ+5t1XMXa0+ewZdZJfgQSUYv5McqQWAbEzCNl e59lX79mP2oYNOtAU0e8f/yN4rhH5qx9C5C5DCQ0ep5pbxt2oLsGBFBEZtHATWyLyPKM FY+LbZNp1kfl0a7J3xEOb+ZuflZFJPMsj/jto6v1+wFVxlfggPE32lGEZOzPRyLb63cs /g4BXVzDk8Y7Trsnb6ZGZ4TqhKgaQiHFXt9YzdTFaxB1EcQXy/0T57aUU9Zk6MnhSQZt MzUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8cgqHayxLZEyVFYxoGvmeh17IIe5tRy+allEkw7w3uM=; b=SAWk5VXJj40RS9Vgl6ZBWIeQKnf+kjdt+Yy+Dki2zrwCCHjKuc9FJIHfFda6sJ2Pai JufxjuyorUZV2zUoVQMEHQMtbNDHW/NmDa2B6MM6bkIVKT2VQlWIGSmW/ouQDawWTzQx Gy8vjan8mQ5npCM4MWEkyJksiXxB13v4rRZ3jrVCR9EbfCMsT09zxJ8MiBaa3mqb6Spb 4mDgEKAvvZys5CWEGfHcxAzbW59enAk0LHy2V4A3pTPkY91ou3eNx7eKY0Aj3RgL74R0 uls8kK4VNndLKrphmu89dz2nymGM6Kef6tbC9A99t+WAnQ4okFjv/5Bt1XTQryzBs3VZ gcGw== X-Gm-Message-State: APjAAAVSoJw/gtuMOSV6cu8jfpreScu7s2KNkmPMNN/FRCexiqRQfBeN hjRscgOVfVGZ6ATvNCKJz/++9g== X-Google-Smtp-Source: APXvYqwuw1L69X7ooyq2CbH8s9+m1vXrA4EVs5VK2M1zeghCA4hXa9cn6DZgSdQ9OAzqVS5Tr1V3tg== X-Received: by 2002:a17:902:6942:: with SMTP id k2mr8620294plt.136.1553095928349; Wed, 20 Mar 2019 08:32:08 -0700 (PDT) Received: from shemminger-XPS-13-9360 (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id l7sm8355799pfj.162.2019.03.20.08.32.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Mar 2019 08:32:08 -0700 (PDT) Date: Wed, 20 Mar 2019 08:32:04 -0700 From: Stephen Hemminger To: Qi Zhang Cc: thomas@monjalon.net, declan.doherty@intel.com, ferruh.yigit@intel.com, ktraynor@redhat.com, sthemmin@microsoft.com, dev@dpdk.org, benjamin.h.shelton@intel.com, narender.vangati@intel.com Message-ID: <20190320083204.4f9f72b4@shemminger-XPS-13-9360> In-Reply-To: <20190320045403.14594-1-qi.z.zhang@intel.com> References: <20190320045403.14594-1-qi.z.zhang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] ethdev: claim device reset as async 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: , X-List-Received-Date: Wed, 20 Mar 2019 15:32:09 -0000 On Wed, 20 Mar 2019 12:54:03 +0800 Qi Zhang wrote: > + ret = rte_ctrl_thread_create(&tid, pthread_name, NULL, > + do_dev_reset, args); > + > + return ret; combine the ret = and return (ie make it a tail call) From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 4C478A00E6 for ; Wed, 20 Mar 2019 16:32:11 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6B2F61B144; Wed, 20 Mar 2019 16:32:10 +0100 (CET) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by dpdk.org (Postfix) with ESMTP id 799404F9A for ; Wed, 20 Mar 2019 16:32:09 +0100 (CET) Received: by mail-pf1-f193.google.com with SMTP id p10so2195701pff.3 for ; Wed, 20 Mar 2019 08:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8cgqHayxLZEyVFYxoGvmeh17IIe5tRy+allEkw7w3uM=; b=cB41zc0OfZPDCSkq9hxTOQi3W0XwCusjvk/3YXlww5hIZnK9uXAlpo3a7mCJMUVrxY VrRqpRYXQ6YMwfRZCpepKaXypuZaOuJJ+5t1XMXa0+ewZdZJfgQSUYv5McqQWAbEzCNl e59lX79mP2oYNOtAU0e8f/yN4rhH5qx9C5C5DCQ0ep5pbxt2oLsGBFBEZtHATWyLyPKM FY+LbZNp1kfl0a7J3xEOb+ZuflZFJPMsj/jto6v1+wFVxlfggPE32lGEZOzPRyLb63cs /g4BXVzDk8Y7Trsnb6ZGZ4TqhKgaQiHFXt9YzdTFaxB1EcQXy/0T57aUU9Zk6MnhSQZt MzUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8cgqHayxLZEyVFYxoGvmeh17IIe5tRy+allEkw7w3uM=; b=SAWk5VXJj40RS9Vgl6ZBWIeQKnf+kjdt+Yy+Dki2zrwCCHjKuc9FJIHfFda6sJ2Pai JufxjuyorUZV2zUoVQMEHQMtbNDHW/NmDa2B6MM6bkIVKT2VQlWIGSmW/ouQDawWTzQx Gy8vjan8mQ5npCM4MWEkyJksiXxB13v4rRZ3jrVCR9EbfCMsT09zxJ8MiBaa3mqb6Spb 4mDgEKAvvZys5CWEGfHcxAzbW59enAk0LHy2V4A3pTPkY91ou3eNx7eKY0Aj3RgL74R0 uls8kK4VNndLKrphmu89dz2nymGM6Kef6tbC9A99t+WAnQ4okFjv/5Bt1XTQryzBs3VZ gcGw== X-Gm-Message-State: APjAAAVSoJw/gtuMOSV6cu8jfpreScu7s2KNkmPMNN/FRCexiqRQfBeN hjRscgOVfVGZ6ATvNCKJz/++9g== X-Google-Smtp-Source: APXvYqwuw1L69X7ooyq2CbH8s9+m1vXrA4EVs5VK2M1zeghCA4hXa9cn6DZgSdQ9OAzqVS5Tr1V3tg== X-Received: by 2002:a17:902:6942:: with SMTP id k2mr8620294plt.136.1553095928349; Wed, 20 Mar 2019 08:32:08 -0700 (PDT) Received: from shemminger-XPS-13-9360 (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id l7sm8355799pfj.162.2019.03.20.08.32.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Mar 2019 08:32:08 -0700 (PDT) Date: Wed, 20 Mar 2019 08:32:04 -0700 From: Stephen Hemminger To: Qi Zhang Cc: thomas@monjalon.net, declan.doherty@intel.com, ferruh.yigit@intel.com, ktraynor@redhat.com, sthemmin@microsoft.com, dev@dpdk.org, benjamin.h.shelton@intel.com, narender.vangati@intel.com Message-ID: <20190320083204.4f9f72b4@shemminger-XPS-13-9360> In-Reply-To: <20190320045403.14594-1-qi.z.zhang@intel.com> References: <20190320045403.14594-1-qi.z.zhang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] ethdev: claim device reset as async 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" Message-ID: <20190320153204.RhPOZ-AxPKm7lV0UChObZKHxp7sEfvVvMsvRfILgUJY@z> On Wed, 20 Mar 2019 12:54:03 +0800 Qi Zhang wrote: > + ret = rte_ctrl_thread_create(&tid, pthread_name, NULL, > + do_dev_reset, args); > + > + return ret; combine the ret = and return (ie make it a tail call)