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 C32DCC4332F for ; Fri, 11 Nov 2022 17:11:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233824AbiKKRLr (ORCPT ); Fri, 11 Nov 2022 12:11:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233762AbiKKRLp (ORCPT ); Fri, 11 Nov 2022 12:11:45 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43DDA63D6 for ; Fri, 11 Nov 2022 09:11:45 -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 ams.source.kernel.org (Postfix) with ESMTPS id EB51CB8267A for ; Fri, 11 Nov 2022 17:11:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AE4FC433C1; Fri, 11 Nov 2022 17:11:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668186702; bh=mL/diFZGeBol2cZjWZismDRnc1NQLFiVqECNxyk6HZI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=X1VVphw4JY4IeUW87vbJFq4Z89eYr+hy0DurrrprNX5jdPA2PVinpykSw2bn4Vhlk tU4G0wP517VbhQwojQG7CINtJHlxpvTUZesQrIODAQ2QBkmH9RveeEAFk5HopkXhzc r7typOof4uskz7u+QOUHsmnOpnULtecDZ980zw96gQfzPFSdBgFM0xKqnTti/DIqFL y0DCwKyUNAas+vHGbtTDa17qNnJqGma9zzFW01dY8pJJKt69gVgvjPFPUfGj6hK7H4 kac4Pc4SrOHnwKIXJI9iyl9fnbqbBwZmVPvreJG5hWMboJ6Zd+ODSoxKgnqpnYmiPd asAh8j4x4YM/w== Date: Fri, 11 Nov 2022 09:11:41 -0800 From: Jakub Kicinski To: "Subash Abhinov Kasiviswanathan (KS)" Cc: Alexander Lobakin , Daniele Palmas , David Miller , Paolo Abeni , Eric Dumazet , "Sean Tranchetti" , Jonathan Corbet , =?UTF-8?B?QmrDuHJu?= Mork , Greg Kroah-Hartman , Subject: Re: [PATCH net-next 2/3] net: qualcomm: rmnet: add tx packets aggregation Message-ID: <20221111091141.784c88f3@kernel.org> In-Reply-To: References: <20221109180249.4721-1-dnlplm@gmail.com> <20221109180249.4721-3-dnlplm@gmail.com> <20221110173222.3536589-1-alexandr.lobakin@intel.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, 10 Nov 2022 18:17:09 -0700 Subash Abhinov Kasiviswanathan (KS) wrote: > The difference here is that hardware would use a single descriptor for > aggregation vs multiple descriptors for scatter gather. > > I wonder if this issue is related to pacing though. > Daniele, perhaps you can try this hack without enabling EGRESS > AGGREGATION and check if you are able to reach the same level of > performance for your scenario. > > --- a/drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c > +++ b/drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c > @@ -236,7 +236,7 @@ void rmnet_egress_handler(struct sk_buff *skb) > struct rmnet_priv *priv; > u8 mux_id; > > - sk_pacing_shift_update(skb->sk, 8); > + skb_orphan(skb); > > orig_dev = skb->dev; > priv = netdev_priv(orig_dev); The pacing shift update is much cleaner than orphaning packets, IMHO. And the aggregation should hold onto the original skbs (a list?) and free them once the aggregate was transmitted.