mirror of
git://nv-tegra.nvidia.com/kernel/nvethernetrm.git
synced 2025-12-22 17:34:29 +03:00
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:
committed by
mobile promotions
parent
8089f79df8
commit
32fa453326
@@ -53,6 +53,8 @@
|
||||
#define OSI_MAX_TX_COALESCE_USEC 1020U
|
||||
#define OSI_MIN_TX_COALESCE_USEC 32U
|
||||
#define OSI_MIN_TX_COALESCE_FRAMES 1U
|
||||
#define OSI_PAUSE_FRAMES_DISABLE 0U
|
||||
#define OSI_PAUSE_FRAMES_ENABLE 1U
|
||||
#endif /* !OSI_STRIPPED_LIB */
|
||||
|
||||
/* Compiler hints for branch prediction */
|
||||
@@ -77,16 +79,13 @@
|
||||
#define OSI_GCL_SIZE_1024 1024U
|
||||
/** @} */
|
||||
|
||||
#define OSI_PAUSE_FRAMES_DISABLE 0U
|
||||
#ifndef OSI_STRIPPED_LIB
|
||||
|
||||
/**
|
||||
* @addtogroup Helper MACROS
|
||||
*
|
||||
* @brief EQOS generic helper MACROS.
|
||||
* @{
|
||||
*/
|
||||
#define OSI_PAUSE_FRAMES_ENABLE 1U
|
||||
#define OSI_PTP_REQ_CLK_FREQ 250000000U
|
||||
#define OSI_FLOW_CTRL_DISABLE 0U
|
||||
#define OSI_ADDRESS_32BIT 0
|
||||
|
||||
@@ -1301,8 +1301,6 @@ struct osi_core_priv_data {
|
||||
nveu32_t mtu;
|
||||
/** Ethernet MAC address */
|
||||
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 */
|
||||
nveu32_t flow_ctrl;
|
||||
/** PTP configuration settings */
|
||||
@@ -1329,6 +1327,8 @@ struct osi_core_priv_data {
|
||||
nveu16_t vlan_filter_cnt;
|
||||
/** RSS core structure */
|
||||
struct osi_core_rss rss;
|
||||
/** DT entry to enable(1) or disable(0) pause frame support */
|
||||
nveu32_t pause_frames;
|
||||
#endif
|
||||
/** Residual queue valid with FPE support */
|
||||
nveu32_t residual_queue;
|
||||
|
||||
Reference in New Issue
Block a user