From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 42H3xC4GvtzF3QR for ; Sat, 22 Sep 2018 05:45:50 +1000 (AEST) Subject: Re: [PATCH net-next 00/22] net: fix return type of ndo_start_xmit function To: YueHaibing , , , , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , , , , , , References: <20180920123306.14772-1-yuehaibing@huawei.com> From: Grygorii Strashko Message-ID: <46f95cf9-8f8f-e3ab-3142-947faeee9fa9@ti.com> Date: Thu, 20 Sep 2018 12:04:58 -0500 MIME-Version: 1.0 In-Reply-To: <20180920123306.14772-1-yuehaibing@huawei.com> Content-Type: text/plain; charset="utf-8" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 09/20/2018 07:32 AM, YueHaibing wrote: > The method ndo_start_xmit() is defined as returning an 'netdev_tx_t', > which is a typedef for an enum type, so make sure the implementation in > this driver has returns 'netdev_tx_t' value, and change the function > return type to netdev_tx_t. > May be I missed smth, but it's acceptable to report standard error codes from .xmit() callback as per dev_xmit_complete(). -- regards, -grygorii