Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1566452iob; Thu, 5 May 2022 04:15:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8rEtDw0nhVaivcWTfHTTx9zYzeDAujGSt3gThdUYQwB2F80wLTkOJRA0UnsifmoMsawPK X-Received: by 2002:a05:6e02:1d1a:b0:2cf:719:9201 with SMTP id i26-20020a056e021d1a00b002cf07199201mr8209366ila.168.1651749308393; Thu, 05 May 2022 04:15:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651749308; cv=none; d=google.com; s=arc-20160816; b=OjEFVPz3/g4/vLfyzb8YkSq38lyX3IPhUa3PzFZmBVfWG74hjU956N1z2naIwTIPVB bHko2cXr5lAl3zdZNDrBm9Qvk1J7DTj6dmfy7PAUe87ISvTHBjgkRgRj7Ny97yNDR6jU 7VFgtaUBh/riyay5gWajay8DlB3rF3Q408T1DU8+Gee+LJX0EylfFT1CNrnnsLLvSIBl cS2hrF5y9iA5lk1qkptLrL99AsPo2N6g/roJcjSEdoPi36MvbeKDO68tdHT6WpZk5WC4 qNKbv+dp0r61Yg6HPBPG1ZYW5sLVY66rG3BxBgj2GPLmpNH6v4yl7PJnrxJwbarXrY7e F0gw== 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=bDYoK9/rYKbI1SdeHQAzW+33UQYRrsqUB/xf5OnmpMc=; b=NmrvbbB+qunpnvI5w8QnRu1GdYt340i0fFvMm7zHtOXXCv7t4KumADTdt7dtP/dJo5 vQiZ0qjfhga80F0jq2cFJ5xZBJ3XTa8+pBXen7+XOT9f0ohOhl8Kx+qhIG4NxVWiyTB3 JMa/ozjurDMf6wV6h6g3rp7jL/qsjsitPIkJBuzpn6W4pLtaZWKzFJ+ggr/AlCSOXx54 8egxflrNl5bR17DZ9yC3LzpXtA9cfESGJ9dam1KO0jDiQM+z7L8b2KLNe5PnKn0emXFs DeFylVJrCc0FC2ZO+/3VW1OvkRp6TSQmBL57nwznhfyxV2yfyQnZLqadHZlOerbGKMQ0 5ipQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gZVwnvY7; 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 l14-20020a056e0205ce00b002ca951470fesi634045ils.181.2022.05.05.04.14.53; Thu, 05 May 2022 04:15:08 -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=gZVwnvY7; 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 S244863AbiEDBHT (ORCPT + 99 others); Tue, 3 May 2022 21:07:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244837AbiEDBHS (ORCPT ); Tue, 3 May 2022 21:07:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 493A81408A; Tue, 3 May 2022 18:03:44 -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 dfw.source.kernel.org (Postfix) with ESMTPS id BD2A3618AC; Wed, 4 May 2022 01:03:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9307C385A4; Wed, 4 May 2022 01:03:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651626223; bh=hV27jNHam8OizP1col9nfnGlVImzRzfatynwi/Ik78s=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gZVwnvY7N0IjKjFqqyfvl6EGcBP82RpxDtU86xM7L1rskch8S30+yK0+5xeg+9M6s OE3dLViAocFesTCDdg8H8kQiWA9m6iyIy6ympa0wzudVminx8WHqxUhClrz+33TI0A SNIV0dkqPNltgY4HzvFxwSelrmnMVZd3YHSdN3WA4TIHcu18PZGuf7k5hWLUgj7Mrq cCVXTwnpj6qI/9Cb6AjpyyVR9Om67aeAaCCNFZXSkP+wYAM8qucGRsvLpXvzVPKhiL t5Ijs1KSwZAzRDYX3Ykt174fHJEH9bSePSgEktGie3zPdEvy95Gpsjf2IJ9x7KHdoU fJGXN2YBo0maA== Date: Tue, 3 May 2022 18:03:41 -0700 From: Jakub Kicinski To: Bagas Sanjaya Cc: linux-doc@vger.kernel.org, Stephen Rothwell , Dave Jones , Randy Dunlap , "David S . Miller" , Pavel Begunkov , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net/core: Remove comment quote for __dev_queue_xmit() Message-ID: <20220503180341.36dcbb07@kernel.org> In-Reply-To: <20220503072949.27336-1-bagasdotme@gmail.com> References: <20220503072949.27336-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 Tue, 3 May 2022 14:29:49 +0700 Bagas Sanjaya wrote: > - * ----------------------------------------------------------------------------------- > - * 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.) > - * > - * 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 > + * This method can also return positive errno code from the queue > + * disciplines (including NET_XMIT_DROP). > + * > + * Note that regardless of the return value, the skb is consumed > + * anyway, so it is currently difficult to retry sending to this > + * method. Why drop almost half of the comment if the problem is just the ---- banner?