From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4FEFF41BAA; Thu, 2 Feb 2023 08:19:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7C0EB42D29; Thu, 2 Feb 2023 08:18:58 +0100 (CET) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 865B1406A2 for ; Thu, 2 Feb 2023 08:18:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675322334; x=1706858334; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=BRV5X1GQJlTCkguZ3bHWCqBwnHvKdur1TU9ikBLcKz0=; b=lQPqANrEZ9yu3pcNONIE+4YpEDZ0UWXFtnHGguYJE22FUwaDj+I8jyD5 3FJFj9VcA9XSOIN4BNacW+4E0/qY7ne2ZgkA8BVVxDFjDZzL1cWlkOA5d CKHw+kVof584s7oaX7khOxdXmeu5qxyH9h1es7JUcfqgR8fVQXlwrh/BN 8NlteQAixicwWaCTUmXT/dyvXfMkgm7P3Iwb0PGbgqKhh4n1CWwQe1dNn uRqCUCiqtcn2+/ri67ApIlZ5SaSCzR9gBe96YcoMG7Tapa/5VoTtE9lIF uzT51Z8y1k0l0kY7JX66Nk8HNZrb0l+RKF1VrP1KuGstHAExV2XENjOb1 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10608"; a="390766775" X-IronPort-AV: E=Sophos;i="5.97,266,1669104000"; d="scan'208";a="390766775" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2023 23:18:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10608"; a="993969372" X-IronPort-AV: E=Sophos;i="5.97,266,1669104000"; d="scan'208";a="993969372" Received: from unknown (HELO npg-dpdk-simeisu-cvl-119d218.sh.intel.com) ([10.67.119.208]) by fmsmga005.fm.intel.com with ESMTP; 01 Feb 2023 23:18:50 -0800 From: Simei Su To: qi.z.zhang@intel.com, junfeng.guo@intel.com Cc: dev@dpdk.org, wenjun1.wu@intel.com, Simei Su Subject: [PATCH v3 1/2] net/igc/base: expose packet pacing registers Date: Thu, 2 Feb 2023 15:18:00 +0800 Message-Id: <20230202071801.30576-2-simei.su@intel.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20230202071801.30576-1-simei.su@intel.com> References: <20230201073014.431924-1-simei.su@intel.com> <20230202071801.30576-1-simei.su@intel.com> X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Add definitions for packet pacing(launch time offloading) related registers. Signed-off-by: Simei Su --- drivers/net/igc/base/igc_defines.h | 9 +++++++++ drivers/net/igc/base/igc_regs.h | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/drivers/net/igc/base/igc_defines.h b/drivers/net/igc/base/igc_defines.h index dd7330a..280570b 100644 --- a/drivers/net/igc/base/igc_defines.h +++ b/drivers/net/igc/base/igc_defines.h @@ -188,6 +188,15 @@ #define IGC_RCTL_BSEX 0x02000000 /* Buffer size extension */ #define IGC_RCTL_SECRC 0x04000000 /* Strip Ethernet CRC */ +#define IGC_DTXMXPKTSZ_TSN 0x19 /* 1600 bytes of max TX DMA packet size */ +#define IGC_TXPBSIZE_TSN 0x04145145 /* 5k bytes buffer for each queue */ + +/* Transmit Scheduling */ +#define IGC_TQAVCTRL_TRANSMIT_MODE_TSN 0x00000001 +#define IGC_TQAVCTRL_ENHANCED_QAV 0x00000008 + +#define IGC_TXQCTL_QUEUE_MODE_LAUNCHT 0x00000001 + /* Use byte values for the following shift parameters * Usage: * psrctl |= (((ROUNDUP(value0, 128) >> IGC_PSRCTL_BSIZE0_SHIFT) & diff --git a/drivers/net/igc/base/igc_regs.h b/drivers/net/igc/base/igc_regs.h index d424387..e423814 100644 --- a/drivers/net/igc/base/igc_regs.h +++ b/drivers/net/igc/base/igc_regs.h @@ -602,6 +602,14 @@ #define IGC_RXMTRL 0x0B634 /* Time sync Rx EtherType and Msg Type - RW */ #define IGC_RXUDP 0x0B638 /* Time Sync Rx UDP Port - RW */ +#define IGC_QBVCYCLET 0x331C +#define IGC_QBVCYCLET_S 0x3320 +#define IGC_STQT(_n) (0x3324 + 0x4 * (_n)) +#define IGC_ENDQT(_n) (0x3334 + 0x4 * (_n)) +#define IGC_TXQCTL(_n) (0x3344 + 0x4 * (_n)) +#define IGC_BASET_L 0x3314 +#define IGC_BASET_H 0x3318 + /* Filtering Registers */ #define IGC_SAQF(_n) (0x05980 + (4 * (_n))) /* Source Address Queue Fltr */ #define IGC_DAQF(_n) (0x059A0 + (4 * (_n))) /* Dest Address Queue Fltr */ -- 2.9.5