tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
pending-5.4
head: 830a1d62935d74cfbfdbf6f806932fbcebf8dfe7
commit: 5bc25e181725fbd9680535ead2a893c44e254b11 [19/50] net/mlx5: DR, Allow SW steering
for sw_owner_v2 devices
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable pending-5.4
git checkout 5bc25e181725fbd9680535ead2a893c44e254b11
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/byteorder/big_endian.h:5,
from arch/arc/include/uapi/asm/byteorder.h:14,
from include/asm-generic/bitops/le.h:6,
from arch/arc/include/asm/bitops.h:429,
from include/linux/bitops.h:26,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from include/linux/highmem.h:5,
from drivers/net/ethernet/mellanox/mlx5/core/main.c:33:
drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h: In function
'mlx5dr_is_supported':
> drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:42:
error: 'struct mlx5_ifc_flow_table_prop_layout_bits' has no member named
'sw_owner_v2'; did you mean 'sw_owner'?
116 |
(MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~
include/uapi/linux/byteorder/big_endian.h:40:51: note: in definition of macro
'__be32_to_cpu'
40 | #define __be32_to_cpu(x) ((__force __u32)(__be32)(x))
| ^
include/linux/stddef.h:17:32: note: in expansion of macro
'__compiler_offsetof'
17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~~
include/linux/mlx5/device.h:51:35: note: in expansion of macro 'offsetof'
51 | #define __mlx5_bit_off(typ, fld) (offsetof(struct mlx5_ifc_##typ##_bits, fld))
| ^~~~~~~~
include/linux/mlx5/device.h:53:34: note: in expansion of macro
'__mlx5_bit_off'
53 | #define __mlx5_dw_off(typ, fld) (__mlx5_bit_off(typ, fld) / 32)
| ^~~~~~~~~~~~~~
include/linux/mlx5/device.h:96:1: note: in expansion of macro '__mlx5_dw_off'
96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \
| ^~~~~~~~~~~~~
include/linux/mlx5/device.h:1211:2: note: in expansion of macro 'MLX5_GET'
1211 | MLX5_GET(flow_table_eswitch_cap, \
| ^~~~~~~~
include/linux/mlx5/device.h:1219:2: note: in expansion of macro
'MLX5_CAP_ESW_FLOWTABLE'
1219 | MLX5_CAP_ESW_FLOWTABLE(mdev, flow_table_properties_nic_esw_fdb.cap)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:10: note: in expansion of
macro 'MLX5_CAP_ESW_FLOWTABLE_FDB'
116 | (MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/mlx5/driver.h:52,
from drivers/net/ethernet/mellanox/mlx5/core/main.c:43:
> drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:42:
error: 'struct mlx5_ifc_flow_table_prop_layout_bits' has no member named
'sw_owner_v2'; did you mean 'sw_owner'?
116 |
(MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~
include/linux/mlx5/device.h:50:59: note: in definition of macro
'__mlx5_bit_sz'
50 | #define __mlx5_bit_sz(typ, fld) sizeof(__mlx5_nullp(typ)->fld)
| ^~~
include/linux/mlx5/device.h:96:30: note: in expansion of macro
'__mlx5_dw_bit_off'
96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \
| ^~~~~~~~~~~~~~~~~
include/linux/mlx5/device.h:1211:2: note: in expansion of macro 'MLX5_GET'
1211 | MLX5_GET(flow_table_eswitch_cap, \
| ^~~~~~~~
include/linux/mlx5/device.h:1219:2: note: in expansion of macro
'MLX5_CAP_ESW_FLOWTABLE'
1219 | MLX5_CAP_ESW_FLOWTABLE(mdev, flow_table_properties_nic_esw_fdb.cap)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:10: note: in expansion of
macro 'MLX5_CAP_ESW_FLOWTABLE_FDB'
116 | (MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
> drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:42:
error: 'struct mlx5_ifc_flow_table_prop_layout_bits' has no member named
'sw_owner_v2'; did you mean 'sw_owner'?
116 |
(MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~
include/linux/compiler_types.h:133:57: note: in definition of macro
'__compiler_offsetof'
133 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
| ^
include/linux/mlx5/device.h:51:35: note: in expansion of macro 'offsetof'
51 | #define __mlx5_bit_off(typ, fld) (offsetof(struct mlx5_ifc_##typ##_bits, fld))
| ^~~~~~~~
include/linux/mlx5/device.h:56:70: note: in expansion of macro
'__mlx5_bit_off'
56 | #define __mlx5_dw_bit_off(typ, fld) (32 - __mlx5_bit_sz(typ, fld) -
(__mlx5_bit_off(typ, fld) & 0x1f))
|
^~~~~~~~~~~~~~
include/linux/mlx5/device.h:96:30: note: in expansion of macro
'__mlx5_dw_bit_off'
96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \
| ^~~~~~~~~~~~~~~~~
include/linux/mlx5/device.h:1211:2: note: in expansion of macro 'MLX5_GET'
1211 | MLX5_GET(flow_table_eswitch_cap, \
| ^~~~~~~~
include/linux/mlx5/device.h:1219:2: note: in expansion of macro
'MLX5_CAP_ESW_FLOWTABLE'
1219 | MLX5_CAP_ESW_FLOWTABLE(mdev, flow_table_properties_nic_esw_fdb.cap)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:10: note: in expansion of
macro 'MLX5_CAP_ESW_FLOWTABLE_FDB'
116 | (MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/mlx5/driver.h:52,
from drivers/net/ethernet/mellanox/mlx5/core/main.c:43:
> drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:42:
error: 'struct mlx5_ifc_flow_table_prop_layout_bits' has no member named
'sw_owner_v2'; did you mean 'sw_owner'?
116 |
(MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~
include/linux/mlx5/device.h:50:59: note: in definition of macro
'__mlx5_bit_sz'
50 | #define __mlx5_bit_sz(typ, fld) sizeof(__mlx5_nullp(typ)->fld)
| ^~~
include/linux/mlx5/device.h:97:1: note: in expansion of macro '__mlx5_mask'
97 | __mlx5_mask(typ, fld))
| ^~~~~~~~~~~
include/linux/mlx5/device.h:1211:2: note: in expansion of macro 'MLX5_GET'
1211 | MLX5_GET(flow_table_eswitch_cap, \
| ^~~~~~~~
include/linux/mlx5/device.h:1219:2: note: in expansion of macro
'MLX5_CAP_ESW_FLOWTABLE'
1219 | MLX5_CAP_ESW_FLOWTABLE(mdev, flow_table_properties_nic_esw_fdb.cap)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:10: note: in expansion of
macro 'MLX5_CAP_ESW_FLOWTABLE_FDB'
116 | (MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/byteorder/big_endian.h:5,
from arch/arc/include/uapi/asm/byteorder.h:14,
from include/asm-generic/bitops/le.h:6,
from arch/arc/include/asm/bitops.h:429,
from include/linux/bitops.h:26,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/smp.h:12,
from include/linux/tracepoint.h:15,
from drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.h:36,
from drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c:35:
drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h: In function
'mlx5dr_is_supported':
> drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:42:
error: 'struct mlx5_ifc_flow_table_prop_layout_bits' has no member named
'sw_owner_v2'; did you mean 'sw_owner'?
116 |
(MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~
include/uapi/linux/byteorder/big_endian.h:40:51: note: in definition of macro
'__be32_to_cpu'
40 | #define __be32_to_cpu(x) ((__force __u32)(__be32)(x))
| ^
include/linux/stddef.h:17:32: note: in expansion of macro
'__compiler_offsetof'
17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~~
include/linux/mlx5/device.h:51:35: note: in expansion of macro 'offsetof'
51 | #define __mlx5_bit_off(typ, fld) (offsetof(struct mlx5_ifc_##typ##_bits, fld))
| ^~~~~~~~
include/linux/mlx5/device.h:53:34: note: in expansion of macro
'__mlx5_bit_off'
53 | #define __mlx5_dw_off(typ, fld) (__mlx5_bit_off(typ, fld) / 32)
| ^~~~~~~~~~~~~~
include/linux/mlx5/device.h:96:1: note: in expansion of macro '__mlx5_dw_off'
96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \
| ^~~~~~~~~~~~~
include/linux/mlx5/device.h:1211:2: note: in expansion of macro 'MLX5_GET'
1211 | MLX5_GET(flow_table_eswitch_cap, \
| ^~~~~~~~
include/linux/mlx5/device.h:1219:2: note: in expansion of macro
'MLX5_CAP_ESW_FLOWTABLE'
1219 | MLX5_CAP_ESW_FLOWTABLE(mdev, flow_table_properties_nic_esw_fdb.cap)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:10: note: in expansion of
macro 'MLX5_CAP_ESW_FLOWTABLE_FDB'
116 | (MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/mlx5/driver.h:52,
from include/linux/mlx5/fs.h:36,
from drivers/net/ethernet/mellanox/mlx5/core/diag/../fs_core.h:37,
from drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.h:38,
from drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c:35:
> drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:42:
error: 'struct mlx5_ifc_flow_table_prop_layout_bits' has no member named
'sw_owner_v2'; did you mean 'sw_owner'?
116 |
(MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~
include/linux/mlx5/device.h:50:59: note: in definition of macro
'__mlx5_bit_sz'
50 | #define __mlx5_bit_sz(typ, fld) sizeof(__mlx5_nullp(typ)->fld)
| ^~~
include/linux/mlx5/device.h:96:30: note: in expansion of macro
'__mlx5_dw_bit_off'
96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \
| ^~~~~~~~~~~~~~~~~
include/linux/mlx5/device.h:1211:2: note: in expansion of macro 'MLX5_GET'
1211 | MLX5_GET(flow_table_eswitch_cap, \
| ^~~~~~~~
include/linux/mlx5/device.h:1219:2: note: in expansion of macro
'MLX5_CAP_ESW_FLOWTABLE'
1219 | MLX5_CAP_ESW_FLOWTABLE(mdev, flow_table_properties_nic_esw_fdb.cap)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:10: note: in expansion of
macro 'MLX5_CAP_ESW_FLOWTABLE_FDB'
116 | (MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
> drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:42:
error: 'struct mlx5_ifc_flow_table_prop_layout_bits' has no member named
'sw_owner_v2'; did you mean 'sw_owner'?
116 |
(MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~
include/linux/compiler_types.h:133:57: note: in definition of macro
'__compiler_offsetof'
133 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
| ^
include/linux/mlx5/device.h:51:35: note: in expansion of macro 'offsetof'
51 | #define __mlx5_bit_off(typ, fld) (offsetof(struct mlx5_ifc_##typ##_bits, fld))
| ^~~~~~~~
include/linux/mlx5/device.h:56:70: note: in expansion of macro
'__mlx5_bit_off'
56 | #define __mlx5_dw_bit_off(typ, fld) (32 - __mlx5_bit_sz(typ, fld) -
(__mlx5_bit_off(typ, fld) & 0x1f))
|
^~~~~~~~~~~~~~
include/linux/mlx5/device.h:96:30: note: in expansion of macro
'__mlx5_dw_bit_off'
96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \
| ^~~~~~~~~~~~~~~~~
include/linux/mlx5/device.h:1211:2: note: in expansion of macro 'MLX5_GET'
1211 | MLX5_GET(flow_table_eswitch_cap, \
| ^~~~~~~~
include/linux/mlx5/device.h:1219:2: note: in expansion of macro
'MLX5_CAP_ESW_FLOWTABLE'
1219 | MLX5_CAP_ESW_FLOWTABLE(mdev, flow_table_properties_nic_esw_fdb.cap)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:10: note: in expansion of
macro 'MLX5_CAP_ESW_FLOWTABLE_FDB'
116 | (MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/mlx5/driver.h:52,
from include/linux/mlx5/fs.h:36,
from drivers/net/ethernet/mellanox/mlx5/core/diag/../fs_core.h:37,
from drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.h:38,
from drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c:35:
> drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:42:
error: 'struct mlx5_ifc_flow_table_prop_layout_bits' has no member named
'sw_owner_v2'; did you mean 'sw_owner'?
116 |
(MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~
include/linux/mlx5/device.h:50:59: note: in definition of macro
'__mlx5_bit_sz'
50 | #define __mlx5_bit_sz(typ, fld) sizeof(__mlx5_nullp(typ)->fld)
| ^~~
include/linux/mlx5/device.h:97:1: note: in expansion of macro '__mlx5_mask'
97 | __mlx5_mask(typ, fld))
| ^~~~~~~~~~~
include/linux/mlx5/device.h:1211:2: note: in expansion of macro 'MLX5_GET'
1211 | MLX5_GET(flow_table_eswitch_cap, \
| ^~~~~~~~
include/linux/mlx5/device.h:1219:2: note: in expansion of macro
'MLX5_CAP_ESW_FLOWTABLE'
1219 | MLX5_CAP_ESW_FLOWTABLE(mdev, flow_table_properties_nic_esw_fdb.cap)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:10: note: in expansion of
macro 'MLX5_CAP_ESW_FLOWTABLE_FDB'
116 | (MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/perf_event.h:25,
from include/linux/trace_events.h:10,
from include/trace/trace_events.h:20,
from include/trace/define_trace.h:102,
from
drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.h:323,
from drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c:35:
At top level:
arch/arc/include/asm/perf_event.h:126:23: warning: 'arc_pmu_cache_map' defined
but not used [-Wunused-const-variable=]
126 | static const unsigned arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
| ^~~~~~~~~~~~~~~~~
arch/arc/include/asm/perf_event.h:91:27: warning: 'arc_pmu_ev_hw_map' defined
but not used [-Wunused-const-variable=]
91 | static const char * const arc_pmu_ev_hw_map[] = {
| ^~~~~~~~~~~~~~~~~
--
In file included from include/linux/byteorder/big_endian.h:5,
from arch/arc/include/uapi/asm/byteorder.h:14,
from include/asm-generic/bitops/le.h:6,
from arch/arc/include/asm/bitops.h:429,
from include/linux/bitops.h:26,
from include/linux/kernel.h:12,
from include/linux/mlx5/driver.h:36,
from drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h:7,
from drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:4:
drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h: In function
'mlx5dr_is_supported':
> drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:42:
error: 'struct mlx5_ifc_flow_table_prop_layout_bits' has no member named
'sw_owner_v2'; did you mean 'sw_owner'?
116 |
(MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~
include/uapi/linux/byteorder/big_endian.h:40:51: note: in definition of macro
'__be32_to_cpu'
40 | #define __be32_to_cpu(x) ((__force __u32)(__be32)(x))
| ^
include/linux/stddef.h:17:32: note: in expansion of macro
'__compiler_offsetof'
17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~~
include/linux/mlx5/device.h:51:35: note: in expansion of macro 'offsetof'
51 | #define __mlx5_bit_off(typ, fld) (offsetof(struct mlx5_ifc_##typ##_bits, fld))
| ^~~~~~~~
include/linux/mlx5/device.h:53:34: note: in expansion of macro
'__mlx5_bit_off'
53 | #define __mlx5_dw_off(typ, fld) (__mlx5_bit_off(typ, fld) / 32)
| ^~~~~~~~~~~~~~
include/linux/mlx5/device.h:96:1: note: in expansion of macro '__mlx5_dw_off'
96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \
| ^~~~~~~~~~~~~
include/linux/mlx5/device.h:1211:2: note: in expansion of macro 'MLX5_GET'
1211 | MLX5_GET(flow_table_eswitch_cap, \
| ^~~~~~~~
include/linux/mlx5/device.h:1219:2: note: in expansion of macro
'MLX5_CAP_ESW_FLOWTABLE'
1219 | MLX5_CAP_ESW_FLOWTABLE(mdev, flow_table_properties_nic_esw_fdb.cap)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:10: note: in expansion of
macro 'MLX5_CAP_ESW_FLOWTABLE_FDB'
116 | (MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/mlx5/driver.h:52,
from drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h:7,
from drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:4:
> drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:42:
error: 'struct mlx5_ifc_flow_table_prop_layout_bits' has no member named
'sw_owner_v2'; did you mean 'sw_owner'?
116 |
(MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~
include/linux/mlx5/device.h:50:59: note: in definition of macro
'__mlx5_bit_sz'
50 | #define __mlx5_bit_sz(typ, fld) sizeof(__mlx5_nullp(typ)->fld)
| ^~~
include/linux/mlx5/device.h:96:30: note: in expansion of macro
'__mlx5_dw_bit_off'
96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \
| ^~~~~~~~~~~~~~~~~
include/linux/mlx5/device.h:1211:2: note: in expansion of macro 'MLX5_GET'
1211 | MLX5_GET(flow_table_eswitch_cap, \
| ^~~~~~~~
include/linux/mlx5/device.h:1219:2: note: in expansion of macro
'MLX5_CAP_ESW_FLOWTABLE'
1219 | MLX5_CAP_ESW_FLOWTABLE(mdev, flow_table_properties_nic_esw_fdb.cap)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:10: note: in expansion of
macro 'MLX5_CAP_ESW_FLOWTABLE_FDB'
116 | (MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
> drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:42:
error: 'struct mlx5_ifc_flow_table_prop_layout_bits' has no member named
'sw_owner_v2'; did you mean 'sw_owner'?
116 |
(MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~
include/linux/compiler_types.h:133:57: note: in definition of macro
'__compiler_offsetof'
133 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
| ^
include/linux/mlx5/device.h:51:35: note: in expansion of macro 'offsetof'
51 | #define __mlx5_bit_off(typ, fld) (offsetof(struct mlx5_ifc_##typ##_bits, fld))
| ^~~~~~~~
include/linux/mlx5/device.h:56:70: note: in expansion of macro
'__mlx5_bit_off'
56 | #define __mlx5_dw_bit_off(typ, fld) (32 - __mlx5_bit_sz(typ, fld) -
(__mlx5_bit_off(typ, fld) & 0x1f))
|
^~~~~~~~~~~~~~
include/linux/mlx5/device.h:96:30: note: in expansion of macro
'__mlx5_dw_bit_off'
96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \
| ^~~~~~~~~~~~~~~~~
include/linux/mlx5/device.h:1211:2: note: in expansion of macro 'MLX5_GET'
1211 | MLX5_GET(flow_table_eswitch_cap, \
| ^~~~~~~~
include/linux/mlx5/device.h:1219:2: note: in expansion of macro
'MLX5_CAP_ESW_FLOWTABLE'
1219 | MLX5_CAP_ESW_FLOWTABLE(mdev, flow_table_properties_nic_esw_fdb.cap)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:10: note: in expansion of
macro 'MLX5_CAP_ESW_FLOWTABLE_FDB'
116 | (MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/mlx5/driver.h:52,
from drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h:7,
from drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:4:
> drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:42:
error: 'struct mlx5_ifc_flow_table_prop_layout_bits' has no member named
'sw_owner_v2'; did you mean 'sw_owner'?
116 |
(MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~
include/linux/mlx5/device.h:50:59: note: in definition of macro
'__mlx5_bit_sz'
50 | #define __mlx5_bit_sz(typ, fld) sizeof(__mlx5_nullp(typ)->fld)
| ^~~
include/linux/mlx5/device.h:97:1: note: in expansion of macro '__mlx5_mask'
97 | __mlx5_mask(typ, fld))
| ^~~~~~~~~~~
include/linux/mlx5/device.h:1211:2: note: in expansion of macro 'MLX5_GET'
1211 | MLX5_GET(flow_table_eswitch_cap, \
| ^~~~~~~~
include/linux/mlx5/device.h:1219:2: note: in expansion of macro
'MLX5_CAP_ESW_FLOWTABLE'
1219 | MLX5_CAP_ESW_FLOWTABLE(mdev, flow_table_properties_nic_esw_fdb.cap)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h:116:10: note: in expansion of
macro 'MLX5_CAP_ESW_FLOWTABLE_FDB'
116 | (MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/byteorder/big_endian.h:5,
from arch/arc/include/uapi/asm/byteorder.h:14,
from include/asm-generic/bitops/le.h:6,
from arch/arc/include/asm/bitops.h:429,
from include/linux/bitops.h:26,
from include/linux/kernel.h:12,
from include/linux/mlx5/driver.h:36,
from drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h:7,
from drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:4:
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c: In function
'mlx5dr_cmd_query_esw_caps':
> drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:81:55:
error: 'struct mlx5_ifc_flow_table_prop_layout_bits' has no member named
'sw_owner_v2'; did you mean 'sw_owner'?
81 |
caps->sw_owner_v2 = MLX5_CAP_ESW_FLOWTABLE_FDB(mdev, sw_owner_v2);
| ^~~~~~~~~~~
include/uapi/linux/byteorder/big_endian.h:40:51: note: in definition of macro
'__be32_to_cpu'
40 | #define __be32_to_cpu(x) ((__force __u32)(__be32)(x))
| ^
include/linux/stddef.h:17:32: note: in expansion of macro
'__compiler_offsetof'
17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~~
include/linux/mlx5/device.h:51:35: note: in expansion of macro 'offsetof'
51 | #define __mlx5_bit_off(typ, fld) (offsetof(struct mlx5_ifc_##typ##_bits, fld))
| ^~~~~~~~
include/linux/mlx5/device.h:53:34: note: in expansion of macro
'__mlx5_bit_off'
53 | #define __mlx5_dw_off(typ, fld) (__mlx5_bit_off(typ, fld) / 32)
| ^~~~~~~~~~~~~~
include/linux/mlx5/device.h:96:1: note: in expansion of macro '__mlx5_dw_off'
96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \
| ^~~~~~~~~~~~~
include/linux/mlx5/device.h:1211:2: note: in expansion of macro 'MLX5_GET'
1211 | MLX5_GET(flow_table_eswitch_cap, \
| ^~~~~~~~
include/linux/mlx5/device.h:1219:2: note: in expansion of macro
'MLX5_CAP_ESW_FLOWTABLE'
1219 | MLX5_CAP_ESW_FLOWTABLE(mdev, flow_table_properties_nic_esw_fdb.cap)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:81:22: note: in expansion of
macro 'MLX5_CAP_ESW_FLOWTABLE_FDB'
81 | caps->sw_owner_v2 = MLX5_CAP_ESW_FLOWTABLE_FDB(mdev, sw_owner_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/mlx5/driver.h:52,
from drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h:7,
from drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:4:
> drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:81:55:
error: 'struct mlx5_ifc_flow_table_prop_layout_bits' has no member named
'sw_owner_v2'; did you mean 'sw_owner'?
81 |
caps->sw_owner_v2 = MLX5_CAP_ESW_FLOWTABLE_FDB(mdev, sw_owner_v2);
| ^~~~~~~~~~~
include/linux/mlx5/device.h:50:59: note: in definition of macro
'__mlx5_bit_sz'
50 | #define __mlx5_bit_sz(typ, fld) sizeof(__mlx5_nullp(typ)->fld)
| ^~~
include/linux/mlx5/device.h:96:30: note: in expansion of macro
'__mlx5_dw_bit_off'
96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \
| ^~~~~~~~~~~~~~~~~
include/linux/mlx5/device.h:1211:2: note: in expansion of macro 'MLX5_GET'
1211 | MLX5_GET(flow_table_eswitch_cap, \
| ^~~~~~~~
include/linux/mlx5/device.h:1219:2: note: in expansion of macro
'MLX5_CAP_ESW_FLOWTABLE'
1219 | MLX5_CAP_ESW_FLOWTABLE(mdev, flow_table_properties_nic_esw_fdb.cap)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:81:22: note: in expansion of
macro 'MLX5_CAP_ESW_FLOWTABLE_FDB'
81 | caps->sw_owner_v2 = MLX5_CAP_ESW_FLOWTABLE_FDB(mdev, sw_owner_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
> drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:81:55:
error: 'struct mlx5_ifc_flow_table_prop_layout_bits' has no member named
'sw_owner_v2'; did you mean 'sw_owner'?
81 |
caps->sw_owner_v2 = MLX5_CAP_ESW_FLOWTABLE_FDB(mdev, sw_owner_v2);
| ^~~~~~~~~~~
include/linux/compiler_types.h:133:57: note: in definition of macro
'__compiler_offsetof'
133 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
| ^
include/linux/mlx5/device.h:51:35: note: in expansion of macro 'offsetof'
51 | #define __mlx5_bit_off(typ, fld) (offsetof(struct mlx5_ifc_##typ##_bits, fld))
| ^~~~~~~~
include/linux/mlx5/device.h:56:70: note: in expansion of macro
'__mlx5_bit_off'
56 | #define __mlx5_dw_bit_off(typ, fld) (32 - __mlx5_bit_sz(typ, fld) -
(__mlx5_bit_off(typ, fld) & 0x1f))
|
^~~~~~~~~~~~~~
include/linux/mlx5/device.h:96:30: note: in expansion of macro
'__mlx5_dw_bit_off'
96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \
| ^~~~~~~~~~~~~~~~~
include/linux/mlx5/device.h:1211:2: note: in expansion of macro 'MLX5_GET'
1211 | MLX5_GET(flow_table_eswitch_cap, \
| ^~~~~~~~
include/linux/mlx5/device.h:1219:2: note: in expansion of macro
'MLX5_CAP_ESW_FLOWTABLE'
1219 | MLX5_CAP_ESW_FLOWTABLE(mdev, flow_table_properties_nic_esw_fdb.cap)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:81:22: note: in expansion of
macro 'MLX5_CAP_ESW_FLOWTABLE_FDB'
81 | caps->sw_owner_v2 = MLX5_CAP_ESW_FLOWTABLE_FDB(mdev, sw_owner_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/mlx5/driver.h:52,
from drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h:7,
from drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:4:
> drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:81:55:
error: 'struct mlx5_ifc_flow_table_prop_layout_bits' has no member named
'sw_owner_v2'; did you mean 'sw_owner'?
81 |
caps->sw_owner_v2 = MLX5_CAP_ESW_FLOWTABLE_FDB(mdev, sw_owner_v2);
| ^~~~~~~~~~~
include/linux/mlx5/device.h:50:59: note: in definition of macro
'__mlx5_bit_sz'
50 | #define __mlx5_bit_sz(typ, fld) sizeof(__mlx5_nullp(typ)->fld)
| ^~~
include/linux/mlx5/device.h:97:1: note: in expansion of macro '__mlx5_mask'
97 | __mlx5_mask(typ, fld))
| ^~~~~~~~~~~
include/linux/mlx5/device.h:1211:2: note: in expansion of macro 'MLX5_GET'
1211 | MLX5_GET(flow_table_eswitch_cap, \
| ^~~~~~~~
include/linux/mlx5/device.h:1219:2: note: in expansion of macro
'MLX5_CAP_ESW_FLOWTABLE'
1219 | MLX5_CAP_ESW_FLOWTABLE(mdev, flow_table_properties_nic_esw_fdb.cap)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:81:22: note: in expansion of
macro 'MLX5_CAP_ESW_FLOWTABLE_FDB'
81 | caps->sw_owner_v2 = MLX5_CAP_ESW_FLOWTABLE_FDB(mdev, sw_owner_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/byteorder/big_endian.h:5,
from arch/arc/include/uapi/asm/byteorder.h:14,
from include/asm-generic/bitops/le.h:6,
from arch/arc/include/asm/bitops.h:429,
from include/linux/bitops.h:26,
from include/linux/kernel.h:12,
from include/linux/mlx5/driver.h:36,
from drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h:7,
from drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:4:
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c: In function
'mlx5dr_cmd_query_device':
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:116:57: error: 'struct
mlx5_ifc_flow_table_prop_layout_bits' has no member named 'sw_owner_v2'; did
you mean 'sw_owner'?
116 | caps->rx_sw_owner_v2 = MLX5_CAP_FLOWTABLE_NIC_RX(mdev, sw_owner_v2);
| ^~~~~~~~~~~
include/uapi/linux/byteorder/big_endian.h:40:51: note: in definition of macro
'__be32_to_cpu'
40 | #define __be32_to_cpu(x) ((__force __u32)(__be32)(x))
| ^
include/linux/stddef.h:17:32: note: in expansion of macro
'__compiler_offsetof'
17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~~
include/linux/mlx5/device.h:51:35: note: in expansion of macro 'offsetof'
51 | #define __mlx5_bit_off(typ, fld) (offsetof(struct mlx5_ifc_##typ##_bits, fld))
| ^~~~~~~~
include/linux/mlx5/device.h:53:34: note: in expansion of macro
'__mlx5_bit_off'
53 | #define __mlx5_dw_off(typ, fld) (__mlx5_bit_off(typ, fld) / 32)
| ^~~~~~~~~~~~~~
include/linux/mlx5/device.h:96:1: note: in expansion of macro '__mlx5_dw_off'
96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \
| ^~~~~~~~~~~~~
include/linux/mlx5/device.h:1172:2: note: in expansion of macro 'MLX5_GET'
1172 | MLX5_GET(flow_table_nic_cap, mdev->caps.hca_cur[MLX5_CAP_FLOW_TABLE], cap)
| ^~~~~~~~
include/linux/mlx5/device.h:1181:2: note: in expansion of macro
'MLX5_CAP_FLOWTABLE'
1181 | MLX5_CAP_FLOWTABLE(mdev, flow_table_properties_nic_receive.cap)
| ^~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:116:25: note: in expansion of
macro 'MLX5_CAP_FLOWTABLE_NIC_RX'
116 | caps->rx_sw_owner_v2 = MLX5_CAP_FLOWTABLE_NIC_RX(mdev, sw_owner_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/mlx5/driver.h:52,
from drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h:7,
from drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:4:
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:116:57: error: 'struct
mlx5_ifc_flow_table_prop_layout_bits' has no member named 'sw_owner_v2'; did
you mean 'sw_owner'?
116 | caps->rx_sw_owner_v2 = MLX5_CAP_FLOWTABLE_NIC_RX(mdev, sw_owner_v2);
| ^~~~~~~~~~~
include/linux/mlx5/device.h:50:59: note: in definition of macro
'__mlx5_bit_sz'
50 | #define __mlx5_bit_sz(typ, fld) sizeof(__mlx5_nullp(typ)->fld)
| ^~~
include/linux/mlx5/device.h:96:30: note: in expansion of macro
'__mlx5_dw_bit_off'
96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \
| ^~~~~~~~~~~~~~~~~
include/linux/mlx5/device.h:1172:2: note: in expansion of macro 'MLX5_GET'
1172 | MLX5_GET(flow_table_nic_cap, mdev->caps.hca_cur[MLX5_CAP_FLOW_TABLE], cap)
| ^~~~~~~~
include/linux/mlx5/device.h:1181:2: note: in expansion of macro
'MLX5_CAP_FLOWTABLE'
1181 | MLX5_CAP_FLOWTABLE(mdev, flow_table_properties_nic_receive.cap)
| ^~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:116:25: note: in expansion of
macro 'MLX5_CAP_FLOWTABLE_NIC_RX'
116 | caps->rx_sw_owner_v2 = MLX5_CAP_FLOWTABLE_NIC_RX(mdev, sw_owner_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:116:57: error: 'struct
mlx5_ifc_flow_table_prop_layout_bits' has no member named 'sw_owner_v2'; did
you mean 'sw_owner'?
116 | caps->rx_sw_owner_v2 = MLX5_CAP_FLOWTABLE_NIC_RX(mdev, sw_owner_v2);
| ^~~~~~~~~~~
include/linux/compiler_types.h:133:57: note: in definition of macro
'__compiler_offsetof'
133 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
| ^
include/linux/mlx5/device.h:51:35: note: in expansion of macro 'offsetof'
51 | #define __mlx5_bit_off(typ, fld) (offsetof(struct mlx5_ifc_##typ##_bits, fld))
| ^~~~~~~~
include/linux/mlx5/device.h:56:70: note: in expansion of macro
'__mlx5_bit_off'
56 | #define __mlx5_dw_bit_off(typ, fld) (32 - __mlx5_bit_sz(typ, fld) -
(__mlx5_bit_off(typ, fld) & 0x1f))
|
^~~~~~~~~~~~~~
include/linux/mlx5/device.h:96:30: note: in expansion of macro
'__mlx5_dw_bit_off'
96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \
| ^~~~~~~~~~~~~~~~~
include/linux/mlx5/device.h:1172:2: note: in expansion of macro 'MLX5_GET'
1172 | MLX5_GET(flow_table_nic_cap, mdev->caps.hca_cur[MLX5_CAP_FLOW_TABLE], cap)
| ^~~~~~~~
include/linux/mlx5/device.h:1181:2: note: in expansion of macro
'MLX5_CAP_FLOWTABLE'
1181 | MLX5_CAP_FLOWTABLE(mdev, flow_table_properties_nic_receive.cap)
| ^~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c:116:25: note: in expansion of
macro 'MLX5_CAP_FLOWTABLE_NIC_RX'
116 | caps->rx_sw_owner_v2 = MLX5_CAP_FLOWTABLE_NIC_RX(mdev, sw_owner_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
..
vim +116 drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h
111
112 static inline bool
113 mlx5dr_is_supported(struct mlx5_core_dev *dev)
114 {
115 return MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner) ||
116 (MLX5_CAP_ESW_FLOWTABLE_FDB(dev, sw_owner_v2) &&
117 (MLX5_CAP_GEN(dev, steering_format_version) <=
118 MLX5_STEERING_FORMAT_CONNECTX_6DX));
119 }
120
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org