On 9/13/2018 8:51 AM, Leon Romanovsky wrote:
On Wed, Sep 12, 2018 at 07:04:07PM +0300, Yishai Hadas wrote:
From: Mark Bloch <markb@xxxxxxxxxxxx>
When the kernel expects to get an enum const value,
use fill_attr_const_in().
The enum value is passed as uint64 value.
Signed-off-by: Mark Bloch <markb@xxxxxxxxxxxx>
Signed-off-by: Yishai Hadas <yishaih@xxxxxxxxxxxx>
---
libibverbs/cmd_ioctl.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libibverbs/cmd_ioctl.h b/libibverbs/cmd_ioctl.h
index 3a61f59..f856b74 100644
--- a/libibverbs/cmd_ioctl.h
+++ b/libibverbs/cmd_ioctl.h
@@ -296,6 +296,9 @@ fill_attr_in_uint64(struct ibv_command_buffer *cmd, uint16_t attr_id,
return attr;
}
+#define fill_attr_const_in(cmd, attr_id, _data) \
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Let's try to avoid extra space padding
I have updated the PR [1] to avoid the extra padding, in addition I have
added a man page for mlx5dv_create_flow_action_modify_header() as Jason
asked, thanks.
[1] https://github.com/linux-rdma/rdma-core/pull/376