regex/mlx5: fix UAR allocation
This patch provides the UAR allocation workaround for the hosts where UAR allocation with Write-Combining memory mapping type fails. Fixes: b34d816363b5 ("regex/mlx5: support rules import") Cc: stable@dpdk.org Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com> Acked-by: Matan Azrad <matan@nvidia.com>
This commit is contained in:
parent
9cc0e99c81
commit
e8f05161eb
@ -176,7 +176,12 @@ mlx5_regex_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
|
|||||||
rte_errno = ENOMEM;
|
rte_errno = ENOMEM;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
priv->uar = mlx5_glue->devx_alloc_uar(ctx, 0);
|
/*
|
||||||
|
* This PMD always claims the write memory barrier on UAR
|
||||||
|
* registers writings, it is safe to allocate UAR with any
|
||||||
|
* memory mapping type.
|
||||||
|
*/
|
||||||
|
priv->uar = mlx5_devx_alloc_uar(ctx, -1);
|
||||||
if (!priv->uar) {
|
if (!priv->uar) {
|
||||||
DRV_LOG(ERR, "can't allocate uar.");
|
DRV_LOG(ERR, "can't allocate uar.");
|
||||||
rte_errno = ENOMEM;
|
rte_errno = ENOMEM;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user