Message ID | 1544016291-10815-3-git-send-email-yishaih@mellanox.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | verbs: Introduce ibv_advise_mr() verb | expand |
diff --git a/libibverbs/cmd_ioctl.h b/libibverbs/cmd_ioctl.h index df3dc41..5587b86 100644 --- a/libibverbs/cmd_ioctl.h +++ b/libibverbs/cmd_ioctl.h @@ -376,6 +376,9 @@ static inline size_t _array_len(size_t size, size_t nelems) #define fill_attr_out_ptr_array(cmd, attr_id, ptr, nelems) \ fill_attr_out(cmd, attr_id, ptr, _array_len(sizeof(*ptr), nelems)) +#define fill_attr_in_ptr_array(cmd, attr_id, ptr, nelems) \ + fill_attr_in(cmd, attr_id, ptr, _array_len(sizeof(*ptr), nelems)) + static inline size_t __check_divide(size_t val, unsigned int div) { assert(val % div == 0);