We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15f73e6 commit d0fbdc3Copy full SHA for d0fbdc3
drivers/net/ethernet/mellanox/mlxsw/pci.c
@@ -996,12 +996,13 @@ static int mlxsw_pci_cq_page_pool_init(struct mlxsw_pci_queue *q,
996
if (cq_type != MLXSW_PCI_CQ_RDQ)
997
return 0;
998
999
- pp_params.flags = PP_FLAG_DMA_MAP;
+ pp_params.flags = PP_FLAG_DMA_MAP | PP_FLAG_DMA_SYNC_DEV;
1000
pp_params.pool_size = MLXSW_PCI_WQE_COUNT * mlxsw_pci->num_sg_entries;
1001
pp_params.nid = dev_to_node(&mlxsw_pci->pdev->dev);
1002
pp_params.dev = &mlxsw_pci->pdev->dev;
1003
pp_params.napi = &q->u.cq.napi;
1004
pp_params.dma_dir = DMA_FROM_DEVICE;
1005
+ pp_params.max_len = PAGE_SIZE;
1006
1007
page_pool = page_pool_create(&pp_params);
1008
if (IS_ERR(page_pool))
0 commit comments