summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5.h
diff options
context:
space:
mode:
authorAnatoly Burakov <anatoly.burakov@intel.com>2019-04-25 13:45:15 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-06-05 11:27:36 +0200
commitedf73dd330729d9892add288da5e73c171553dd8 (patch)
treeb65b75ad1c0b03e34eeca0b48a604b34c08262d6 /drivers/net/mlx5/mlx5.h
parentc830900d75c55ecebb4bffd86215e117dd4a2089 (diff)
downloaddpdk-edf73dd330729d9892add288da5e73c171553dd8.zip
dpdk-edf73dd330729d9892add288da5e73c171553dd8.tar.gz
dpdk-edf73dd330729d9892add288da5e73c171553dd8.tar.xz
ipc: handle unsupported IPC in action register
Currently, IPC API will silently ignore unsupported IPC. Fix the API call and its callers to explicitly handle unsupported IPC cases. For primary processes, it is OK to not have IPC because there may not be any secondary processes in the first place, and there are valid use cases that disable IPC support, so all primary process usages are fixed up to ignore IPC failures. For secondary processes, IPC will be crucial, so leave all of the error handling as is. Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5.h')
-rw-r--r--drivers/net/mlx5/mlx5.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h
index 6738a50..21b445a 100644
--- a/drivers/net/mlx5/mlx5.h
+++ b/drivers/net/mlx5/mlx5.h
@@ -542,9 +542,9 @@ void mlx5_mp_req_start_rxtx(struct rte_eth_dev *dev);
void mlx5_mp_req_stop_rxtx(struct rte_eth_dev *dev);
int mlx5_mp_req_mr_create(struct rte_eth_dev *dev, uintptr_t addr);
int mlx5_mp_req_verbs_cmd_fd(struct rte_eth_dev *dev);
-void mlx5_mp_init_primary(void);
+int mlx5_mp_init_primary(void);
void mlx5_mp_uninit_primary(void);
-void mlx5_mp_init_secondary(void);
+int mlx5_mp_init_secondary(void);
void mlx5_mp_uninit_secondary(void);
/* mlx5_nl.c */