mirror of
git://nv-tegra.nvidia.com/kernel/nvethernetrm.git
synced 2025-12-22 09:12:10 +03:00
osi: core & dma : Increase osi and dma instances
- Increase OSI and DMA instances to 10 to support multiple VF's. - Copy PTP config to ioctl structure. Bug 2694285 Change-Id: I558b161c64a5467dc9e7260e58801eb6b1735d50 Signed-off-by: Nagaraj Annaiah <nannaiah@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/2605781 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
0b11badd9d
commit
5df5eefe5a
@@ -30,7 +30,7 @@
|
|||||||
* @brief Maximum number of OSI core instances.
|
* @brief Maximum number of OSI core instances.
|
||||||
*/
|
*/
|
||||||
#ifndef MAX_CORE_INSTANCES
|
#ifndef MAX_CORE_INSTANCES
|
||||||
#define MAX_CORE_INSTANCES 5U
|
#define MAX_CORE_INSTANCES 10U
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ static nve32_t ivc_handle_ioctl(struct osi_core_priv_data *osi_core,
|
|||||||
sizeof(struct osi_ioctl));
|
sizeof(struct osi_ioctl));
|
||||||
|
|
||||||
if (data->cmd == OSI_CMD_CONFIG_PTP) {
|
if (data->cmd == OSI_CMD_CONFIG_PTP) {
|
||||||
osi_memcpy((void *)&data->ptp_config,
|
osi_memcpy((void *)&msg.data.ioctl_data.ptp_config,
|
||||||
(void *)&osi_core->ptp_config,
|
(void *)&osi_core->ptp_config,
|
||||||
sizeof(struct osi_ptp_config));
|
sizeof(struct osi_ptp_config));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
* @brief Maximum number of OSI DMA instances.
|
* @brief Maximum number of OSI DMA instances.
|
||||||
*/
|
*/
|
||||||
#ifndef MAX_DMA_INSTANCES
|
#ifndef MAX_DMA_INSTANCES
|
||||||
#define MAX_DMA_INSTANCES 5U
|
#define MAX_DMA_INSTANCES 10U
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user