Skip to contentSkip to conversation

net/*/base: allow experimental APIs in base of avf and qede

PATCH Applied Ilya Maximets 3 participants 7 messages Oct 4, 2018 – Oct 26, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20181004131626eucas1p1161f9245280c8a4ca3a7d5b2f93b8ee2@eucas1p1.samsung.com

#1 lore raw

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.

Fixes 1d75caf81474 ("net/avf: add meson support")
Fixes 30d3d0168301 ("net/qede: add in 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
index 90fd6b445..6f3d7192e 100644
@@ -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
index 59b41c895..71b89737d 100644
@@ -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
#4 lore raw
In reply to Ilya Maximets
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")
---
 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
index 90fd6b445..6f3d7192e 100644
@@ -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
index 59b41c895..71b89737d 100644
@@ -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
#5 lore raw
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")
---
 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
index 90fd6b445..6f3d7192e 100644
@@ -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
index 59b41c895..71b89737d 100644
@@ -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
#6 lore raw
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

Reviewed-by
#7 lore raw
In reply to Ilya Maximets
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 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,