nvethernetrm: move pause-frame macros

Pause frames not programmed in safety builds
so move those macros under non safety builds.

Bug 3932946

Change-Id: Iff89373c4ffd20b35589f3f3852ef191f5f54acf
Signed-off-by: Bhadram Varka <vbhadram@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/2844105
Reviewed-by: Mohan Thadikamalla <mohant@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-by: Krishna Thota <kthota@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Bhadram Varka
2023-01-16 10:13:10 +05:30
committed by mobile promotions
parent 8089f79df8
commit 32fa453326
2 changed files with 4 additions and 5 deletions

View File

@@ -53,6 +53,8 @@
#define OSI_MAX_TX_COALESCE_USEC 1020U #define OSI_MAX_TX_COALESCE_USEC 1020U
#define OSI_MIN_TX_COALESCE_USEC 32U #define OSI_MIN_TX_COALESCE_USEC 32U
#define OSI_MIN_TX_COALESCE_FRAMES 1U #define OSI_MIN_TX_COALESCE_FRAMES 1U
#define OSI_PAUSE_FRAMES_DISABLE 0U
#define OSI_PAUSE_FRAMES_ENABLE 1U
#endif /* !OSI_STRIPPED_LIB */ #endif /* !OSI_STRIPPED_LIB */
/* Compiler hints for branch prediction */ /* Compiler hints for branch prediction */
@@ -77,16 +79,13 @@
#define OSI_GCL_SIZE_1024 1024U #define OSI_GCL_SIZE_1024 1024U
/** @} */ /** @} */
#define OSI_PAUSE_FRAMES_DISABLE 0U
#ifndef OSI_STRIPPED_LIB #ifndef OSI_STRIPPED_LIB
/** /**
* @addtogroup Helper MACROS * @addtogroup Helper MACROS
* *
* @brief EQOS generic helper MACROS. * @brief EQOS generic helper MACROS.
* @{ * @{
*/ */
#define OSI_PAUSE_FRAMES_ENABLE 1U
#define OSI_PTP_REQ_CLK_FREQ 250000000U #define OSI_PTP_REQ_CLK_FREQ 250000000U
#define OSI_FLOW_CTRL_DISABLE 0U #define OSI_FLOW_CTRL_DISABLE 0U
#define OSI_ADDRESS_32BIT 0 #define OSI_ADDRESS_32BIT 0

View File

@@ -1301,8 +1301,6 @@ struct osi_core_priv_data {
nveu32_t mtu; nveu32_t mtu;
/** Ethernet MAC address */ /** Ethernet MAC address */
nveu8_t mac_addr[OSI_ETH_ALEN]; nveu8_t mac_addr[OSI_ETH_ALEN];
/** DT entry to enable(1) or disable(0) pause frame support */
nveu32_t pause_frames;
/** Current flow control settings */ /** Current flow control settings */
nveu32_t flow_ctrl; nveu32_t flow_ctrl;
/** PTP configuration settings */ /** PTP configuration settings */
@@ -1329,6 +1327,8 @@ struct osi_core_priv_data {
nveu16_t vlan_filter_cnt; nveu16_t vlan_filter_cnt;
/** RSS core structure */ /** RSS core structure */
struct osi_core_rss rss; struct osi_core_rss rss;
/** DT entry to enable(1) or disable(0) pause frame support */
nveu32_t pause_frames;
#endif #endif
/** Residual queue valid with FPE support */ /** Residual queue valid with FPE support */
nveu32_t residual_queue; nveu32_t residual_queue;