On 1/17/18 3:02 AM, Leon Romanovsky wrote:
>
> David, Stephen,
>
> The kernel code is not accepted yet, but the interface and functionality
> of iproute2 stable enough and ready for review.
>
> iproute2 part:
> https://git.kernel.org/pub/scm/linux/kernel/git/leon/iproute2.git/log/?h=topic/resource-tracking-3
>
> kernel part:
> https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git/log/?h=rn/restrack-v5
BTW, I just remembered rdma tool is using libmnl and it has the same
problem devlink had -- old commands may not work as expected on newer
kernels as more RDMA_NLDEV_ATTR_ are added.
Specifically, this check in rd_attr_cb:
if (mnl_attr_type_valid(attr, RDMA_NLDEV_ATTR_MAX) < 0)
return MNL_CB_ERROR;