DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [BUG] mlx5 build failure on Debian testing
@ 2018-07-11 21:07 Stephen Hemminger
  2018-07-12  5:49 ` Shahaf Shuler
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2018-07-11 21:07 UTC (permalink / raw)
  To: yskoh, shahafs, matan; +Cc: dev

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,

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-12  5:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-11 21:07 [dpdk-dev] [BUG] mlx5 build failure on Debian testing Stephen Hemminger
2018-07-12  5:49 ` Shahaf Shuler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).