Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1879350iob; Thu, 5 May 2022 09:58:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuYG9/pvtaxkkWLQ6fbTE4dxXRNvzd/rvkx+aRvLPeHCihlkrXGBfwJpgAV7d+PGA8pziv X-Received: by 2002:a17:907:7f14:b0:6f4:2a57:e1df with SMTP id qf20-20020a1709077f1400b006f42a57e1dfmr24019374ejc.18.1651769931635; Thu, 05 May 2022 09:58:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651769931; cv=none; d=google.com; s=arc-20160816; b=kpxY31NC0r/q/HEPvZ0lwSG2uX5OHwkz/MTQauSqA5IAtLeDms8nD948RVq3hQe0Y8 viO/d1eJtFnDAH63ATdP0ndoWSB+T0PIlrLfQrMk/fBse1KLaZoYGPjAO2roYSOGKF7K q0DJ3rjeum2fZKLuFQrDkHplKmB7ES3kyeESV4lkOTxYfxiYy9o6VivkyHhju5/lgmwR RPHR5P0ADHpHIGzePVZrXzVVlg3uUqweX5NKe7hYob1B8vACIuIYpFKXy48wZ51zqOeo pFo9wE0OpG5htvlG8OL/RF7h2+M3CIxSIIN39BmXQ5pjINF5C4KvoNA5ZNdq1BZQzV2h gmrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=E2bsuB/gssGwULD6LOUmOVCzFEkCVC8tMrOepAqapGQ=; b=ojT4b/DMOYoedWrkeGRX7SPhwD3n1wclV8qZ3SxTS4ouDPmfgciN73PqN7gZuU4FQh Jv4nqQcxfLkYF/SJy6VRV8OxLiaYO8tFVr/c2+xRVnBRMVIHe9S7kTiRGjtETmHuXWR6 5uEwqilhkWfR0R4B4nvfUaJxBdWpPtGZ0S57AXybySaf6w/Rv5dya3vvmiE52bOV6klE PXzDkIwHspHQAXRsODa4Nu390SxIqN1M9yPvfUg9eEi4N7hQppB92Q1W3keqpR+A8ohI S/9eFpRJL2ZIEUAD+D1qweCPd2vjlcSk7C4Ajb4jJxWGXsQ/GwrdqVpZzCqF5N1Zcylz rwRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q2ZJy0eB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f9-20020a50d549000000b00425f420a600si2361631edj.408.2022.05.05.09.58.27; Thu, 05 May 2022 09:58:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q2ZJy0eB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382077AbiEEQwt (ORCPT + 99 others); Thu, 5 May 2022 12:52:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382045AbiEEQwn (ORCPT ); Thu, 5 May 2022 12:52:43 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6C6D56F8F; Thu, 5 May 2022 09:49:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 497FDB82C77; Thu, 5 May 2022 16:49:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D22DC385A4; Thu, 5 May 2022 16:48:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651769340; bh=NRrwDWz8wcT8CnNMt+44/umq8eBIMbarXpA7NUirvD0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Q2ZJy0eBfyJo0pa8jJ3E1NRjHXIsLC9LS7Qc3eJ2x3/LjRS8k6+a8VcHPk+B9fbQS WN1qbRo4MZ+c13F02kNyXrYv8Zxyf78TbBfE2TwJ8G2f7J62bkC/khy+TAMI6mAC8Y 8lNSs2RjeTd0FgO/9inh1VCqQ03O4WxTc7OmcVLfHAB3Edgd/6cCLQyNycruw+Co7i vP7iWI/PMNXPHTgJhycMsusLH6wtU6H52BQsDTRMfSWWcXnyayTwyiCUhqL8VfiG/L QPX4reT5Za0yR2LohYy0JXTPEXme7fIGEevstDDFIRswSD0f11iUhmgJGM/DDVYD1t hEdkvy6LxjQMQ== Date: Thu, 5 May 2022 09:48:58 -0700 From: Jakub Kicinski To: Bagas Sanjaya Cc: linux-doc@vger.kernel.org, Stephen Rothwell , Ben Greear , Pavel Begunkov , "David S. Miller" , Akira Yokosawa , netdev@vger.kernel.org, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2] net/core: use ReST block quote in __dev_queue_xmit() comment Message-ID: <20220505094858.4a1fcbc6@kernel.org> In-Reply-To: <20220505082907.42393-1-bagasdotme@gmail.com> References: <20220505082907.42393-1-bagasdotme@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 5 May 2022 15:29:07 +0700 Bagas Sanjaya wrote: > * to congestion or traffic shaping. > * > * ----------------------------------------------------------------------------------- > - * I notice this method can also return errors from the queue disciplines, > - * including NET_XMIT_DROP, which is a positive value. So, errors can also > - * be positive. > * > - * Regardless of the return value, the skb is consumed, so it is currently > - * difficult to retry a send to this method. (You can bump the ref count > - * before sending to hold a reference for retry if you are careful.) > + * I notice this method can also return errors from the queue disciplines, > + * including NET_XMIT_DROP, which is a positive value. So, errors can also > + * be positive. > * > - * When calling this method, interrupts MUST be enabled. This is because > - * the BH enable code must have IRQs enabled so that it will not deadlock. > - * --BLG > + * Regardless of the return value, the skb is consumed, so it is currently > + * difficult to retry a send to this method. (You can bump the ref count > + * before sending to hold a reference for retry if you are careful.) > + * > + * When calling this method, interrupts MUST be enabled. This is because > + * the BH enable code must have IRQs enabled so that it will not deadlock. > + * --BLG Rephrase the text as a normal function documentation and drop the banner and the signature, please. The place to give people credit for providing the information is the git logs. So you can say something like: Rephrase the quote from Ben Greear (BLG) as a normal kdoc. in the commit message.