net/*/base: allow experimental APIs in base of avf and qede
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): CGME20181004131626eucas1p1161f9245280c8a4ca3a7d5b2f93b8ee2@eucas1p1.samsung.com
PATCH 1/1 net/*/base: allow experimental APIs in base of avf and qede
This functionality was missed while adding new drivers to the meson build.
--- drivers/net/avf/base/meson.build | 3 +++ drivers/net/qede/base/meson.build | 3 +++ 2 files changed, 6 insertions(+)
drivers/net/avf/base/meson.build +3 -0
@@ -8,6 +8,9 @@ sources = [ error_cflags = ['-Wno-pointer-to-int-cast'] 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/qede/base/meson.build +3 -0
@@ -45,6 +45,9 @@ error_cflags = [ '-Wno-pointer-bool-conversion', ] 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
Signature · 1 line
2.17.1
Quoted 8 lines · Ilya Maximets
This functionality was missed while adding new drivers to the meson build.
Fixes 1d75caf81474 ("net/avf: add meson support")Fixes 30d3d0168301 ("net/qede: add in meson build")Signed-off-by Ilya Maximets <[email protected]>---
Ferruh Yigit
AppliedQuoted 10 lines · Bruce Richardson
Quoted 8 lines · Ilya Maximets
This functionality was missed while adding new drivers to the meson build.
Fixes 1d75caf81474 ("net/avf: add meson support")Fixes 30d3d0168301 ("net/qede: add in meson build")Signed-off-by Ilya Maximets <[email protected]>---
Acked-by Bruce Richardson <[email protected]>
Applied to dpdk-next-net/master, thanks.
Quoted 2 lines · Ilya Maximets
This functionality was missed while adding new drivers to the meson build.
Is there any call from base code to experimental APIs? What do you think adding this when we need it, since I have feeling that this may not be needed.
Quoted 39 lines
Fixes 1d75caf81474 ("net/avf: add meson support")Fixes 30d3d0168301 ("net/qede: add in meson build")Signed-off-by Ilya Maximets <[email protected]>--- drivers/net/avf/base/meson.build | 3 +++ drivers/net/qede/base/meson.build | 3 +++ 2 files changed, 6 insertions(+)drivers/net/avf/base/meson.build +3
-0@@ -8,6 +8,9 @@ sources = [ error_cflags = ['-Wno-pointer-to-int-cast'] 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/qede/base/meson.build +3
-0@@ -45,6 +45,9 @@ error_cflags = [ '-Wno-pointer-bool-conversion', ] 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
Quoted 6 lines · Ferruh Yigit
Quoted 2 lines · Ilya Maximets
This functionality was missed while adding new drivers to the meson build.
Is there any call from base code to experimental APIs? What do you think adding this when we need it, since I have feeling that this may not be needed.
The patch itself does not enable the experimental APIs, it only adds the ability to enable them in the future. It's actually pretty hard for the person that not much familiar with meson to find out why your code provides deprecation warnings. I spent few hours trying to make it work but failed. After that Bruce found that 'base' code parts ignores 'allow_experimental_apis' flag and prepared the patch. Thank you, Bruce!
This patch possibly will save a few hours for someone like me, who will try to enable experimental APIs for avf and qede drivers.
And I already need avf part for my patch set with nanosleep based delay:
http://patches.dpdk.org/cover/46088/
Quoted 43 lines
Quoted 40 lines
Fixes 1d75caf81474 ("net/avf: add meson support")Fixes 30d3d0168301 ("net/qede: add in meson build")Signed-off-by Ilya Maximets <[email protected]>--- drivers/net/avf/base/meson.build | 3 +++ drivers/net/qede/base/meson.build | 3 +++ 2 files changed, 6 insertions(+)drivers/net/avf/base/meson.build +3
-0@@ -8,6 +8,9 @@ sources = [ error_cflags = ['-Wno-pointer-to-int-cast'] 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/qede/base/meson.build +3
-0@@ -45,6 +45,9 @@ error_cflags = [ '-Wno-pointer-bool-conversion', ] 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
Quoted 18 lines · Ilya Maximets
Quoted 6 lines · Ferruh Yigit
Quoted 2 lines · Ilya Maximets
This functionality was missed while adding new drivers to the meson build.
Is there any call from base code to experimental APIs? What do you think adding this when we need it, since I have feeling that this may not be needed.
The patch itself does not enable the experimental APIs, it only adds the ability to enable them in the future. It's actually pretty hard for the person that not much familiar with meson to find out why your code provides deprecation warnings. I spent few hours trying to make it work but failed. After that Bruce found that 'base' code parts ignores '
allow_experimental_apis' flag and prepared the patch. Thank you, Bruce!
This patch possibly will save a few hours for someone like me, who will try to enable experimental APIs for avf and qede drivers.
Quoted 4 lines
And I already need avf part for my patch set with nanosleep based delay:
http://patches.dpdk.org/cover/46088/
+1, I think it should be added, as it basically just is allowing passthrough of the flag to the base drivers.
/Bruce
Ferruh Yigit
Reviewed-byQuoted 18 lines · Ilya Maximets
Quoted 6 lines · Ferruh Yigit
Quoted 2 lines · Ilya Maximets
This functionality was missed while adding new drivers to the meson build.
Is there any call from base code to experimental APIs? What do you think adding this when we need it, since I have feeling that this may not be needed.
The patch itself does not enable the experimental APIs, it only adds the ability to enable them in the future. It's actually pretty hard for the person that not much familiar with meson to find out why your code provides deprecation warnings. I spent few hours trying to make it work but failed. After that Bruce found that 'base' code parts ignores '
allow_experimental_apis' flag and prepared the patch. Thank you, Bruce!
This patch possibly will save a few hours for someone like me, who will try to enable experimental APIs for avf and qede drivers.
Quoted 3 lines
And I already need avf part for my patch set with nanosleep based delay:
http://patches.dpdk.org/cover/46088/
Taking into account that there is already a need,