Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1941452rda; Tue, 24 Oct 2023 07:51:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH6boXOhpUq3bwaVLWPB46puHmPZfn/x4pWjinty0Yc5e7zgqdWOpvRtisMjciOOSR1uL0n X-Received: by 2002:a17:903:191:b0:1c8:791c:d782 with SMTP id z17-20020a170903019100b001c8791cd782mr11068717plg.29.1698159112167; Tue, 24 Oct 2023 07:51:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698159112; cv=none; d=google.com; s=arc-20160816; b=t88+4NpQxSeEGe9K1e/ANbe3URynxjxUQU79mLWV+TFzK9KGbc0r2Jnje7mmCXFiNh neOzm/ikQFQoSMCYwjgfkAXcOn/mXFK2tscHqF8vwVOmfvCibIuG9MltEvMXfIUKm4mP J7pqAhHB/1fzA7aERWlJ610d5B+B/Sb99FcfM8LTHIG0BBS3fGkEMmuP9evRyDhUo+wO QsLXLimgfVcP4Wa5tya7evSaZGDLtzP4nXTN1W9MATadbO2wpSLsoVqWPPpR9cjdWLiP PPzrUOaJZ9BTjRzjod61qkjqx5YjpCCGAQMF1j546O2Y7/CQk/va+MEaJ/J+Ry6Ewg0G 13dQ== 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 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id n2-20020a170902968200b001c9ebe878d7si8079010plp.109.2023.10.24.07.51.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 07:51:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; 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 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 03EEC8051AB5; Tue, 24 Oct 2023 07:51:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234483AbjJXOvh (ORCPT + 99 others); Tue, 24 Oct 2023 10:51:37 -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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Tue, 24 Oct 2023 07:51:46 -0700 (PDT) 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(-) -- 2.25.1