diff options
author | Cristian Bercaru <cristian.bercaru@freescale.com> | 2014-04-02 17:26:50 (GMT) |
---|---|---|
committer | Madalin-Cristian Bucur <madalin.bucur@freescale.com> | 2014-04-03 09:40:36 (GMT) |
commit | 0f9319cf52f29cfc087cf1d1a006f7d44bf364dd (patch) | |
tree | 7996e85de28f3c47812dc5cfad72f0b3af6c3ab2 /drivers/net/ethernet/freescale/fman/inc | |
parent | d56f0cbc78bafd27fb25a77d98426247eb056600 (diff) | |
download | linux-fsl-qoriq-0f9319cf52f29cfc087cf1d1a006f7d44bf364dd.tar.xz |
FMD: remove unnecessary buffer pool depletion parameters
This patch avoids modifying the structures defined in 'fm_ext.h' and
configures all PFC buffer pool depletion parameters in
'CheckNConfigFmPortAdvArgs', between 'FM_PORT_Config' and
'FM_PORT_Init'.
Signed-off-by: Cristian Bercaru <cristian.bercaru@freescale.com>
Change-Id: I7268fa71416cb25f0cb42b56cd89a702996801fa
Reviewed-on: http://git.am.freescale.net:8181/10605
Reviewed-by: Mandy Lavi <Mandy.Lavi@freescale.com>
Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
Tested-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
Diffstat (limited to 'drivers/net/ethernet/freescale/fman/inc')
-rw-r--r-- | drivers/net/ethernet/freescale/fman/inc/Peripherals/fm_ext.h | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/drivers/net/ethernet/freescale/fman/inc/Peripherals/fm_ext.h b/drivers/net/ethernet/freescale/fman/inc/Peripherals/fm_ext.h index 5bba643..a45682f 100644 --- a/drivers/net/ethernet/freescale/fman/inc/Peripherals/fm_ext.h +++ b/drivers/net/ethernet/freescale/fman/inc/Peripherals/fm_ext.h @@ -411,6 +411,17 @@ typedef struct t_FmExtPoolParams { } t_FmExtPoolParams; /**************************************************************************//** + @Description A structure for informing the driver about the external + buffer pools allocated in the BM and used by a port or a + storage-profile. +*//***************************************************************************/ +typedef struct t_FmExtPools { + uint8_t numOfPoolsUsed; /**< Number of pools use by this port */ + t_FmExtPoolParams extBufPool[FM_PORT_MAX_NUM_OF_EXT_POOLS]; + /**< Parameters for each port */ +} t_FmExtPools; + +/**************************************************************************//** @Description A structure for defining backup BM Pools. *//***************************************************************************/ typedef struct t_FmBackupBmPools { @@ -447,21 +458,6 @@ typedef struct t_FmBufPoolDepletion { } t_FmBufPoolDepletion; /**************************************************************************//** - @Description A structure for informing the driver about the external - buffer pools allocated in the BM and used by a port or a - storage-profile. -*//***************************************************************************/ -typedef struct t_FmExtPools { - uint8_t numOfPoolsUsed; /**< Number of pools use by this port */ - t_FmExtPoolParams extBufPool[FM_PORT_MAX_NUM_OF_EXT_POOLS]; - /**< Parameters for each port */ - /**< External buffer pool depletion parameters */ -#ifdef CONFIG_FMAN_PFC - t_FmBufPoolDepletion poolDepletion; -#endif -} t_FmExtPools; - -/**************************************************************************//** @Description A Structure for defining Ucode patch for loading. *//***************************************************************************/ typedef struct t_FmFirmwareParams { |