net/*/base: allow use of experimental APIs in base code
Subsystems (2)
PATCH 1/1 net/*/base: allow use of experimental APIs in base code
The driver setting of "allow_experimental_apis" was not being used when building the base code. To allow this we can manually put in a check in the base code files for the setting and set the appropriate cflag if it's needed.
--- drivers/net/e1000/base/meson.build | 3 +++ drivers/net/fm10k/base/meson.build | 3 +++ drivers/net/i40e/base/meson.build | 3 +++ drivers/net/ixgbe/base/meson.build | 3 +++ drivers/net/octeontx/base/meson.build | 6 +++++- drivers/net/sfc/base/meson.build | 3 +++ drivers/net/thunderx/base/meson.build | 6 +++++- 7 files changed, 25 insertions(+), 2 deletions(-)
drivers/net/e1000/base/meson.build +3 -0
@@ -25,6 +25,9 @@ error_cflags = ['-Wno-uninitialized', '-Wno-unused-parameter', '-Wno-unused-variable', '-Wno-misleading-indentation', '-Wno-implicit-fallthrough'] c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif foreach flag: error_cflags if cc.has_argument(flag) c_args += flag
drivers/net/fm10k/base/meson.build +3 -0
@@ -15,6 +15,9 @@ error_cflags = ['-Wno-unused-parameter', '-Wno-unused-value', '-Wno-unused-variable', '-Wno-missing-field-initializers' ] c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif foreach flag: error_cflags if cc.has_argument(flag) c_args += flag
drivers/net/i40e/base/meson.build +3 -0
@@ -16,6 +16,9 @@ error_cflags = ['-Wno-sign-compare', '-Wno-unused-value', '-Wno-strict-aliasing', '-Wno-unused-but-set-variable' ] c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif foreach flag: error_cflags if cc.has_argument(flag) c_args += flag
drivers/net/ixgbe/base/meson.build +3 -0
@@ -20,6 +20,9 @@ sources = [ error_cflags = ['-Wno-unused-value', '-Wno-unused-but-set-variable'] c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif foreach flag: error_cflags if cc.has_argument(flag) c_args += flag
drivers/net/octeontx/base/meson.build +5 -1
@@ -13,8 +13,12 @@ foreach d: depends static_objs += [get_variable('static_rte_' + d)] endforeach +c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif base_lib = static_library('octeontx_base', sources, - c_args: cflags, + c_args: c_args, dependencies: static_objs, )
drivers/net/sfc/base/meson.build +3 -0
@@ -58,6 +58,9 @@ extra_flags = [ ] c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif foreach flag: extra_flags if cc.has_argument(flag) c_args += flag
drivers/net/thunderx/base/meson.build +5 -1
@@ -7,8 +7,12 @@ sources = [ 'nicvf_bsvf.c' ] +c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif base_lib = static_library('nicvf_base', sources, - c_args: cflags, + c_args: c_args, dependencies: static_rte_ethdev )
Signature · 1 line
2.17.1
Quoted 6 lines · Bruce Richardson
The driver setting of "
allow_experimental_apis" was not being used when building the base code. To allow this we can manually put in a check in the base code files for the setting and set the appropriate cflag if it's needed.Signed-off-by Bruce Richardson <[email protected]>
Quoted 6 lines · Bruce Richardson
The driver setting of "
allow_experimental_apis" was not being used when building the base code. To allow this we can manually put in a check in the base code files for the setting and set the appropriate cflag if it's needed.Signed-off-by Bruce Richardson <[email protected]>
Quoted 117 lines
--- drivers/net/e1000/base/meson.build | 3 +++ drivers/net/fm10k/base/meson.build | 3 +++ drivers/net/i40e/base/meson.build | 3 +++ drivers/net/ixgbe/base/meson.build | 3 +++ drivers/net/octeontx/base/meson.build | 6 +++++- drivers/net/sfc/base/meson.build | 3 +++ drivers/net/thunderx/base/meson.build | 6 +++++- 7 files changed, 25 insertions(+), 2 deletions(-)drivers/net/e1000/base/meson.build +3
-0@@ -25,6 +25,9 @@ error_cflags = ['-Wno-uninitialized', '-Wno-unused-parameter', '-Wno-unused-variable', '-Wno-misleading-indentation', '-Wno-implicit-fallthrough'] c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif foreach flag: error_cflags if cc.has_argument(flag) c_args += flagdrivers/net/fm10k/base/meson.build +3
-0@@ -15,6 +15,9 @@ error_cflags = ['-Wno-unused-parameter', '-Wno-unused-value', '-Wno-unused-variable', '-Wno-missing-field-initializers' ] c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif foreach flag: error_cflags if cc.has_argument(flag) c_args += flagdrivers/net/i40e/base/meson.build +3
-0@@ -16,6 +16,9 @@ error_cflags = ['-Wno-sign-compare', '-Wno-unused-value', '-Wno-strict-aliasing', '-Wno-unused-but-set-variable' ] c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif foreach flag: error_cflags if cc.has_argument(flag) c_args += flagdrivers/net/ixgbe/base/meson.build +3
-0@@ -20,6 +20,9 @@ sources = [ error_cflags = ['-Wno-unused-value', '-Wno-unused-but-set-variable'] c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif foreach flag: error_cflags if cc.has_argument(flag) c_args += flagdrivers/net/octeontx/base/meson.build +5
-1@@ -13,8 +13,12 @@ foreach d: depends static_objs += [get_variable('static_rte_' + d)] endforeach +c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif base_lib = static_library('octeontx_base', sources, - c_args: cflags, + c_args: c_args, dependencies: static_objs, )drivers/net/sfc/base/meson.build +3
-0@@ -58,6 +58,9 @@ extra_flags = [ ] c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif foreach flag: extra_flags if cc.has_argument(flag) c_args += flagdrivers/net/thunderx/base/meson.build +5
-1@@ -7,8 +7,12 @@ sources = [ 'nicvf_bsvf.c' ] +c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif base_lib = static_library('nicvf_base', sources, - c_args: cflags, + c_args: c_args, dependencies: static_rte_ethdev )
Quoted 46 lines · Ilya Maximets
Quoted 6 lines · Bruce Richardson
The driver setting of "
allow_experimental_apis" was not being used when building the base code. To allow this we can manually put in a check in the base code files for the setting and set the appropriate cflag if it's needed.Signed-off-by Bruce Richardson <[email protected]>Tested-by Ilya Maximets <[email protected]>Quoted 36 lines
--- drivers/net/e1000/base/meson.build | 3 +++ drivers/net/fm10k/base/meson.build | 3 +++ drivers/net/i40e/base/meson.build | 3 +++ drivers/net/ixgbe/base/meson.build | 3 +++ drivers/net/octeontx/base/meson.build | 6 +++++- drivers/net/sfc/base/meson.build | 3 +++ drivers/net/thunderx/base/meson.build | 6 +++++- 7 files changed, 25 insertions(+), 2 deletions(-)drivers/net/e1000/base/meson.build +3
-0@@ -25,6 +25,9 @@ error_cflags = ['-Wno-uninitialized', '-Wno-unused-parameter', '-Wno-unused-variable', '-Wno-misleading-indentation', '-Wno-implicit-fallthrough'] c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif foreach flag: error_cflags if cc.has_argument(flag) c_args += flagdrivers/net/fm10k/base/meson.build +3
-0@@ -15,6 +15,9 @@ error_cflags = ['-Wno-unused-parameter', '-Wno-unused-value', '-Wno-unused-variable', '-Wno-missing-field-initializers' ] c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif foreach flag: error_cflags
Quoted 8 lines
drivers/net/i40e/base/meson.build error_cflags = ['-Wno-sign-compare', '-Wno-unused-value', · line 16
Quoted 8 lines
drivers/net/fm10k/base/meson.build +0
-0if cc.has_argument(flag) c_args += flagdrivers/net/i40e/base/meson.build +0
-0@@ -16,6 +16,9 @@ error_cflags = ['-Wno-sign-compare', '-Wno-unused-value', '-Wno-strict-aliasing', '-Wno-unused-but-set-variable'
Actually, "-Wno-unused-but-set-variable" part is missing on master, so the patch could not be applied cleanly. I tested it after removing this flag from the patch to make it applicable.
Quoted 75 lines
Quoted 73 lines
drivers/net/i40e/base/meson.build +3
-0] c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif foreach flag: error_cflags if cc.has_argument(flag) c_args += flagdrivers/net/ixgbe/base/meson.build +3
-0@@ -20,6 +20,9 @@ sources = [ error_cflags = ['-Wno-unused-value', '-Wno-unused-but-set-variable'] c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif foreach flag: error_cflags if cc.has_argument(flag) c_args += flagdrivers/net/octeontx/base/meson.build +5
-1@@ -13,8 +13,12 @@ foreach d: depends static_objs += [get_variable('static_rte_' + d)] endforeach +c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif base_lib = static_library('octeontx_base', sources, - c_args: cflags, + c_args: c_args, dependencies: static_objs, )drivers/net/sfc/base/meson.build +3
-0@@ -58,6 +58,9 @@ extra_flags = [ ] c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif foreach flag: extra_flags if cc.has_argument(flag) c_args += flagdrivers/net/thunderx/base/meson.build +5
-1@@ -7,8 +7,12 @@ sources = [ 'nicvf_bsvf.c' ] +c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif base_lib = static_library('nicvf_base', sources, - c_args: cflags, + c_args: c_args, dependencies: static_rte_ethdev )
Quoted 51 lines · Ilya Maximets
Quoted 50 lines · Ilya Maximets
Quoted 6 lines · Bruce Richardson
The driver setting of "
allow_experimental_apis" was not being used when building the base code. To allow this we can manually put in a check in the base code files for the setting and set the appropriate cflag if it's needed.Signed-off-by Bruce Richardson <[email protected]>Tested-by Ilya Maximets <[email protected]>Quoted 40 lines
--- drivers/net/e1000/base/meson.build | 3 +++ drivers/net/fm10k/base/meson.build | 3 +++ drivers/net/i40e/base/meson.build | 3 +++ drivers/net/ixgbe/base/meson.build | 3 +++ drivers/net/octeontx/base/meson.build | 6 +++++- drivers/net/sfc/base/meson.build | 3 +++ drivers/net/thunderx/base/meson.build | 6 +++++- 7 files changed, 25 insertions(+), 2 deletions(-)drivers/net/e1000/base/meson.build +3
-0@@ -25,6 +25,9 @@ error_cflags = ['-Wno-uninitialized', '-Wno-unused-parameter', '-Wno-unused-variable', '-Wno-misleading-indentation', '-Wno-implicit-fallthrough'] c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif foreach flag: error_cflags if cc.has_argument(flag) c_args += flagdrivers/net/fm10k/base/meson.build +3
-0@@ -15,6 +15,9 @@ error_cflags = ['-Wno-unused-parameter', '-Wno-unused-value', '-Wno-unused-variable', '-Wno-missing-field-initializers' ] c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif foreach flag: error_cflags if cc.has_argument(flag) c_args += flagdrivers/net/i40e/base/meson.build +0
-0
Quoted 9 lines
Quoted 4 lines
drivers/net/i40e/base/meson.build error_cflags = ['-Wno-sign-compare', '-Wno-unused-value', · line 16
Quoted 4 lines
drivers/net/i40e/base/meson.build +0
-0@@ -16,6 +16,9 @@ error_cflags = ['-Wno-sign-compare', '-Wno-unused-value', '-Wno-strict-aliasing', '-Wno-unused-but-set-variable'Actually, "-Wno-unused-but-set-variable" part is missing on master, so the patch could not be applied cleanly. I tested it after removing this flag from the patch to make it applicable.
Ok, could be. I was testing applying a few other meson patches - such as those from Luca - earlier. I think this should apply ok on top of those other sets.
/Bruce
Ferruh Yigit
AppliedQuoted 9 lines · Ilya Maximets
Quoted 6 lines · Bruce Richardson
The driver setting of "
allow_experimental_apis" was not being used when building the base code. To allow this we can manually put in a check in the base code files for the setting and set the appropriate cflag if it's needed.Signed-off-by Bruce Richardson <[email protected]>Tested-by Ilya Maximets <[email protected]>
Applied to dpdk-next-net/master, thanks.