From patchwork Fri Nov 20 17:05:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 11921405 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1CC70C63777 for ; Fri, 20 Nov 2020 17:06:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AD4852245B for ; Fri, 20 Nov 2020 17:06:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="a0OoR6Ys" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728175AbgKTRGO (ORCPT ); Fri, 20 Nov 2020 12:06:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:56864 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727788AbgKTRGO (ORCPT ); Fri, 20 Nov 2020 12:06:14 -0500 Received: from lore-desk.redhat.com (unknown [151.66.8.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0993F2078B; Fri, 20 Nov 2020 17:06:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605891973; bh=up85eYAWugNdFQC6ERzloRCZoOxF93EKe+EnPdjGtTY=; h=From:To:Cc:Subject:Date:From; b=a0OoR6Ys6FXS6dQx54Yg5xm4UvBbY0+bSblFEs3xFgB9C5IPZe4GchDWG8w+D/rFA E9KGRJ6hRmNT8Mc7GTbFxB0yQRLkgQFUyy0EqLBHoOZWzQ31cLe3BfyIi5zBWYWJ3a i4Vn1/frULFqsd4+iqqtayIWE/jPfUXUnd8H7KYc= From: Lorenzo Bianconi To: netdev@vger.kernel.org Cc: lorenzo.bianconi@redhat.com, davem@davemloft.net, kuba@kernel.org, brouer@redhat.com, echaudro@redhat.com, john.fastabend@gmail.com Subject: [PATCH net-next 0/3] mvneta: access skb_shared_info only on last frag Date: Fri, 20 Nov 2020 18:05:41 +0100 Message-Id: X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Build skb_shared_info on mvneta_rx_swbm stack and sync it to xdp_buff skb_shared_info area only on the last fragment. Avoid avoid unnecessary xdp_buff initialization in mvneta_rx_swbm routine. This a preliminary series to complete xdp multi-buff in mvneta driver. Lorenzo Bianconi (3): net: mvneta: avoid unnecessary xdp_buff initialization net: mvneta: move skb_shared_info in mvneta_xdp_put_buff net: mvneta: alloc skb_shared_info on the mvneta_rx_swbm stack drivers/net/ethernet/marvell/mvneta.c | 55 +++++++++++++++++---------- 1 file changed, 35 insertions(+), 20 deletions(-) Reviewed-by: Jesse Brandeburg Reviewed-by: Jakub Kicinski