Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1111949rdh; Fri, 27 Oct 2023 05:17:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGZS48JJmKeDIkycmPtxX7IkPZaDBgegk0xqbw88o2b/E9mpsipYhaBgsBBfaHsBKij6cpA X-Received: by 2002:a05:6830:917:b0:6c4:9fda:a1e2 with SMTP id v23-20020a056830091700b006c49fdaa1e2mr2805616ott.4.1698409052557; Fri, 27 Oct 2023 05:17:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698409052; cv=none; d=google.com; s=arc-20160816; b=IOwwEcORYSyoi49NOtCdUZE0rbJVthq0HlojvkXBkXHZju4UYvAZveUCKJkgTOHKLn u8730ZIe1Mmgjth16eqXPZKlPQc19aNHzh4W9JVZydiXqaeXhKBsRwMIf8p/PJpot6Rx JKQf90/ndBMG0UV/yGGBPn8LykIJIJqg+dbBc+PPqHOp1v8lzyzJF8Ig3twtHMcGXRN2 2+ZiOX+D77l4Hs9yySU5f3OO+Ja6Cqbgb3ztZwdWpDbP4POPuViEXWPwUTS6efLts6uj nMiNnP7hEbsWpgnn8kZFEW8Upchs2+wT8HPPKxXYyuYFa5CvorlUTUEWx9D7tasq4HFh 7iwA== 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=Y6xTKIJSNSycWXwHzIPirKaKql9lBW7UOSjD7UTcWio=; fh=gNr59YhJeSqFpzAl5yMorJ8nj6h+jiBYcBCAuclPfFg=; b=TCDkTRz7FFnrQDFGyctCEg9KlcSaPbnhhbCfUpbcREkLxnD8XpBY2GnBCPj+EFiAkx KlLpD7NsW830+Eq1k/tohe0J946hX3m85vIBRAcjIAz8it5t3XZbpMdBKYmir06nqoTS JDIl+nl9NwrI5ZPsZR082x2WdYkpQqLofJw2LOTYIJe13qebgttyZNxgaadUGP1bbNoF /CMn4cB/EE95eTJLGJ9ycDkipDMHZ4/33Kd/AqfacZxFhsQiek6M5XxE/OcTPsIcUrhG ckcYHeImNPdRWI7w3X6S2kWzqFK+DiX3fDMvYBkBIdqrSDszt5eWoMqjjdw6Szuig/2/ 5Sxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=B9FACaBg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id s196-20020a819bcd000000b005afbd2fad46si1770880ywg.86.2023.10.27.05.17.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 05:17:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=B9FACaBg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id A5B94834D773; Fri, 27 Oct 2023 05:17:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345739AbjJ0MQ7 (ORCPT + 99 others); Fri, 27 Oct 2023 08:16:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231386AbjJ0MQ6 (ORCPT ); Fri, 27 Oct 2023 08:16:58 -0400 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AB83128; Fri, 27 Oct 2023 05:16:56 -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 39R5Tuq9012500; Fri, 27 Oct 2023 05:16:51 -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=Y6xTKIJSNSycWXwHzIPirKaKql9lBW7UOSjD7UTcWio=; b=B9FACaBgUcdszqiQz669apVjPGmlM37xLlA+cBhM0d4jWa1Zzsp477VTzwa5AGrM4v7x SWSTQanuFQObOznb/wZbZm6wkPpN0WmRfpUy0pRJOqMhhmamLx/DJjBSoXvLvBVzg8If aD7Fra67U5OrucLUuCxiBr8uT+f03Jm8VDGizkwcfkU8mWAAFkwraFJZzAXFz4f0OlaD VHxYHXiPuYa9GiqoYkbE5e4aDD4B4TOVCTNvnAauTnF7ZJRvBB37x65wVmc8ydcUVTm7 XvpUHRwDDmSX62odFEBNbphLSHJpBL3/Lg10lRQc3fkIw5ISpNLRbEhLRlnrpqsQdxlK Aw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3tywr83b23-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 27 Oct 2023 05:16:51 -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; Fri, 27 Oct 2023 05:16:49 -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; Fri, 27 Oct 2023 05:16:49 -0700 Received: from ubuntu-PowerEdge-T110-II.sclab.marvell.com (unknown [10.106.27.86]) by maili.marvell.com (Postfix) with ESMTP id 597073F7050; Fri, 27 Oct 2023 05:16:49 -0700 (PDT) From: Shinas Rasheed To: , CC: , , , , , , , , , , Shinas Rasheed Subject: [PATCH net-next v3 0/4] Cleanup and optimizations to transmit code Date: Fri, 27 Oct 2023 05:16:35 -0700 Message-ID: <20231027121639.2382565-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: Gg8ZBtEi-m6sgKEgmOSJILCTcSgEbTCb X-Proofpoint-ORIG-GUID: Gg8ZBtEi-m6sgKEgmOSJILCTcSgEbTCb X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-27_10,2023-10-27_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 howler.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 (howler.vger.email [0.0.0.0]); Fri, 27 Oct 2023 05:17:20 -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: V3: - Stop returning NETDEV_TX_BUSY when ring is full in xmit_patch. Change to inspect early if next packet can fit in ring instead of current packet, and stop queue if not. - Add smp_mb between stopping tx queue and checking if tx queue has free entries again, in queue full check function to let reflect IQ process completions that might have happened on other cpus. - Update small packet padding patch changelog to give more info. V2: https://lore.kernel.org/all/20231024145119.2366588-1-srasheed@marvell.com/ - 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 | 55 +++++++++++-------- .../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, 45 insertions(+), 30 deletions(-) -- 2.25.1