From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5953FC6FA8E for ; Fri, 24 Feb 2023 19:41:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229668AbjBXTlp (ORCPT ); Fri, 24 Feb 2023 14:41:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbjBXTlo (ORCPT ); Fri, 24 Feb 2023 14:41:44 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 744146F02D for ; Fri, 24 Feb 2023 11:41:27 -0800 (PST) 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 C13AB6191D for ; Fri, 24 Feb 2023 19:41:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA343C433EF; Fri, 24 Feb 2023 19:41:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677267686; bh=3VXWaBlf+nsaLvyR3SYbryjYm/GCVhKIuk84UVUkCBk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gpX61g1DlYIb8OOEaUmranXL1gfTK7I3VDg5aWuV4qp0UoaRR3m2sD3UBoME+0VZI P6sPYGqNItfDh/nOEb5xYVexzxXnEPDQML6bncv3KsHTPlPtGAg9M7aA28a/Rig/QN rEJ5dzGLeltKnsbNheUJN7CSeZj3zPhTFgOpe4QQejpU0r9tK8KaVDgpxvR8fNQxs2 tbk70z4PC7DcIc3KjQuF/ZajUItd/JhaRkEUhVBzjpYekKC9v7KNrNVkzIqGjVlLo2 qiWm4zAraR7yxH5+tCYKhll2i15u1dIRR8m4hAchKaNc1AGhltdjTfCRPlUFgIY1ob mZcFhdKl7xwMA== Date: Fri, 24 Feb 2023 11:41:24 -0800 From: Jakub Kicinski To: Eric Dumazet Cc: "David S . Miller" , Paolo Abeni , netdev@vger.kernel.org, eric.dumazet@gmail.com, Yunsheng Lin Subject: Re: [PATCH v2 net] net: fix __dev_kfree_skb_any() vs drop monitor Message-ID: <20230224114124.66f65713@kernel.org> In-Reply-To: <20230223083845.1555914-1-edumazet@google.com> References: <20230223083845.1555914-1-edumazet@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, 23 Feb 2023 08:38:45 +0000 Eric Dumazet wrote: > dev_kfree_skb() is aliased to consume_skb(). > > When a driver is dropping a packet by calling dev_kfree_skb_any() > we should propagate the drop reason instead of pretending > the packet was consumed. > > Note: Now we have enum skb_drop_reason we could remove > enum skb_free_reason (for linux-6.4) > > v2: added an unlikely(), suggested by Yunsheng Lin. Applied, thanks!