History

net/mlx5: cmdif, Add new api for command execution

Add mlx5_cmd_do. Unlike mlx5_cmd_exec, this function will not modify or translate outbox.status. The function will return: return = 0: Command was executed, outbox.status == MLX5_CMD_STAT_OK. return = -EREMOTEIO: Executed, outbox.status != MLX5_CMD_STAT_OK. return < 0: Command execution couldn't be performed by FW or driver. And document other mlx5_cmd_exec functions.

Saeed Mahameed committed 7 years ago

Commit f23519e1 parent 605bef02 files · +68 −13Browse files

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/linux/mlx5/driver.h+2−0
@@ -964,6 +964,8 @@ int mlx5_cmd_exec_cb(struct mlx5_async_ctx *ctx, void *in, int in_size, · 963 unmodified lines
964 void *out, int out_size, mlx5_async_cbk_t callback,964 void *out, int out_size, mlx5_async_cbk_t callback,
965 struct mlx5_async_work *work);965 struct mlx5_async_work *work);
966 966
967int mlx5_cmd_do(struct mlx5_core_dev *dev, void *in, int in_size, void *out, int out_size);
968int mlx5_cmd_check(struct mlx5_core_dev *dev, int err, void *in, void *out);
967int mlx5_cmd_exec(struct mlx5_core_dev *dev, void *in, int in_size, void *out,969int mlx5_cmd_exec(struct mlx5_core_dev *dev, void *in, int in_size, void *out,
968 int out_size);970 int out_size);
969 971

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t