I am seeing a build failure of MLX5 driver on Debian testing (buster)
with dpdk.org master branch.
This is using libibverbs-dev version 19.0-1
The failure is:
mlx5_glue.h:94:11: error: ‘struct ibv_counter_set_init_attr’ declared inside
parameter list will not be visible outside of this definition or declaration
[-Werror]
struct ibv_counter_set_init_attr *init_attr);
^~~~~~~~~~~~~~~~~~~~~~~~~
It looks like this is being caused because HAVE_IBV_DEVICE_COUNTERS_SET_SUPPORT
is not set, but
the header file does not have the counter stuff.
The Makefile is generating this mlx5 autoconf file by looking for "enum
IBV_FLOW_SPEC_ACTION_COUNT"
in /usr/include/infiniband/verbs.h. This enum is present, but counters are not.
$ grep IBV_FLOW_SPEC_ACTION /usr/include/infiniband/verbs.h
IBV_FLOW_SPEC_ACTION_TAG = 0x1000,
IBV_FLOW_SPEC_ACTION_DROP = 0x1001,
IBV_FLOW_SPEC_ACTION_HANDLE = 0x1002,
IBV_FLOW_SPEC_ACTION_COUNT = 0x1003,