From patchwork Tue Oct 24 14:51:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shinas Rasheed X-Patchwork-Id: 15817 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1996382vqx; Tue, 24 Oct 2023 07:51:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFP5IfD8dhIFlUiJsJTCUFCmwuOG5YTceeLWSyMGWbgT4RU7e7fmjC4oOi1YLRU12W9Uux1 X-Received: by 2002:a05:6a21:35c6:b0:137:514a:984f with SMTP id ba6-20020a056a2135c600b00137514a984fmr2676427pzc.35.1698159117246; Tue, 24 Oct 2023 07:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698159117; cv=none; d=google.com; s=arc-20160816; b=B/ukwnGZgbKlbyope0ch6EZipJOGlEkrs9074JvKR4/XEhWW0grL4tue2ls8mnDGz6 ypTzoWf13s4fVFCIx3BtvSI3Y8ej/SRin9n8oB5xCj1s3jeW54QG94r/HdAzzt4AkFDh nIYtP/i/YGFAPuiMzrOnvo4OPTB16X9i+7qmOn6jg5vsXOUEpe4gm+5QKQeO6PsKaVzJ Pmf5AKrTUbqxMr5vGDVCyS+Jvo7LQ34gi2A7wP+b7/Lz7w6Ey3L9JZZ4pCVPC4hFm59L U3jUV+sNOyNuTKKx+El80EgT4kIdgIgsHkacJgBVQY4YwDT8LfR2APF5hfhkbiP226dc oGlw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=8IJJFkfM8fhSAXzt+kQuv/DZZRyUhXSsr4Xlh55jzLc=; fh=gNr59YhJeSqFpzAl5yMorJ8nj6h+jiBYcBCAuclPfFg=; b=WpAGw+c8sCHuEuQSveMGZrrsTVDNmyDYvX5O0uxolIZUNRKu6WfHyR41a0eFPTzTkO Tmb3/n+Lhe8hY1sp1f3gUxOIgEVwK5KvWrbaE49IvxBgsmfAZWXlQb5ninPqQjKK4cLy WCO3imU7o4sp5Dkcy1hxt7JMZHApwSBZJbS1N/kxYCIDcpC7ymPAGC9qaYzZ0KmKyW8l kgwXMP2J6Thm1xPM6IbG5CyOOQgP938ayljOxd5CfWg+vQjC8pWYGgvEBx33KPwnW9kF DdRQxGUm4fi948cKZrGU4P9u33GNDyo1/hRolX119wZ02t3EtpmZxVmQ5xO4wu9MCxOf TXeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=dbvqhuGD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id z3-20020a656643000000b005ab45ee3e7esi8283801pgv.299.2023.10.24.07.51.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 07:51:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=dbvqhuGD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 999F780C0A52; Tue, 24 Oct 2023 07:51:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234526AbjJXOvi (ORCPT + 26 others); Tue, 24 Oct 2023 10:51:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234388AbjJXOvg (ORCPT ); Tue, 24 Oct 2023 10:51:36 -0400 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B1B8A6; Tue, 24 Oct 2023 07:51:34 -0700 (PDT) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39O2Kg1J022528; Tue, 24 Oct 2023 07:51:28 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=8IJJFkfM8fhSAXzt+kQuv/DZZRyUhXSsr4Xlh55jzLc=; b=dbvqhuGDQ8A6LImGEZ8+AVtOA/W+b55yl8bw+eV/D4Zjn8uobfsvZ6T5uchSUEO3BrD4 Hy4CKXw/F/SMDNVK7lcLTKVllr3LHz7PHIaJiwACL3Ta7yY96foz4TEALwPZS73zhmYa t62WyQ0gDgtp/5oNMKhM5iWnmNFTx+RtiuPqG455hhHXB9Ug5FTFkW5wv/qg2Iry+0HU 43Uafef2yrVSVHEDUxYlZc6V6cbFbSPKAUs7PIbrtCznZ3YStZRTMjS3PX9V3IQnEpEe 21bk0FAWZA49oOHdLShyKQmjRpUlvyD2ixz8V+8AdcamvN1WYT7ppR6mlD4BwRYGH4Lc mw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3tx523tpn2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 24 Oct 2023 07:51:27 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Tue, 24 Oct 2023 07:51:26 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Tue, 24 Oct 2023 07:51:26 -0700 Received: from ubuntu-PowerEdge-T110-II.sclab.marvell.com (unknown [10.106.27.86]) by maili.marvell.com (Postfix) with ESMTP id 188A13F7051; Tue, 24 Oct 2023 07:51:26 -0700 (PDT) From: Shinas Rasheed To: , CC: , , , , , , , , , , Shinas Rasheed Subject: [PATCH net-next v2 0/4] Cleanup and optimizations to transmit code Date: Tue, 24 Oct 2023 07:51:15 -0700 Message-ID: <20231024145119.2366588-1-srasheed@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-GUID: InEnJ0ARX4ok_1qM6Wq11E2Bv8Cr9sDq X-Proofpoint-ORIG-GUID: InEnJ0ARX4ok_1qM6Wq11E2Bv8Cr9sDq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-24_15,2023-10-24_01,2023-05-22_02 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 24 Oct 2023 07:51:56 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780648894129080245 X-GMAIL-MSGID: 1780648894129080245 Pad small packets to ETH_ZLEN before transmit, cleanup dma sync calls, add xmit_more functionality and then further remove atomic variable usage in the prior. Changes: V2: - Added patch for padding small packets to ETH_ZLEN, part of optimization patches for transmit code missed out in V1 - Updated changelog to provide more details for dma_sync remove patch - Updated changelog to use imperative tone in add xmit_more patch V1: https://lore.kernel.org/all/20231023114449.2362147-1-srasheed@marvell.com/ Shinas Rasheed (4): octeon_ep: add padding for small packets octeon_ep: remove dma sync in trasmit path octeon_ep: implement xmit_more in transmit octeon_ep: remove atomic variable usage in Tx data path .../ethernet/marvell/octeon_ep/octep_config.h | 3 +- .../ethernet/marvell/octeon_ep/octep_main.c | 38 ++++++++++--------- .../ethernet/marvell/octeon_ep/octep_main.h | 9 +++++ .../net/ethernet/marvell/octeon_ep/octep_tx.c | 5 +-- .../net/ethernet/marvell/octeon_ep/octep_tx.h | 3 -- 5 files changed, 33 insertions(+), 25 deletions(-)