drivers/octeontx2: compilation fails without RTE_LIBRTE_SECURITY
Hello,
When RTE_LIBRTE_SECURITY is disabled, compilation fails for octeontx2 (on an Intel machine):
git clone git://dpdk.org/dpdk
cd dpdk
make config T=x86_64-native-linux-gcc
cd build
vi .config
=> disable RTE_LIBRTE_IPSEC and RTE_LIBRTE_SECURITY
make
...
== Build drivers/net/octeontx2
CC otx2_rx.o
In file included from .../dpdk/drivers/net/octeontx2/otx2_ethdev_sec.h:10,
from .../dpdk/drivers/net/octeontx2/otx2_rx.h:11,
from .../dpdk/drivers/net/octeontx2/otx2_ethdev.h:24,
from .../dpdk/drivers/net/octeontx2/otx2_rx.c:7:
.../dpdk/drivers/crypto/octeontx2/otx2_ipsec_fp.h:9:10: fatal error: rte_security.h: No such file or directory
#include <rte_security.h>
^~~~~~~~~~~~~~~~compilation terminated.
This seems cause by f44e7163775537 ('net/octeontx2: add security session operations').
Thanks
Thierry
Signature · 3 lines
Thierry Herbelot 6WIND Software Engineer
Quoted 23 lines · Thierry Herbelot
Hello,
When
RTE_LIBRTE_SECURITYis disabled, compilation fails for octeontx2 (on an Intel machine):git clone
git://dpdk.org/dpdk
cd dpdk
make config T=x86_64-native-linux-gcc
cd build
vi .config
=> disableRTE_LIBRTE_IPSECandRTE_LIBRTE_SECURITY
make
...
== Builddrivers/net/octeontx2
CC otx2_rx.o
In file included from.../dpdk/drivers/net/octeontx2/otx2_ethdev_sec.h:10,from .../dpdk/drivers/net/octeontx2/otx2_rx.h:11, from .../dpdk/drivers/net/octeontx2/otx2_ethdev.h:24, from .../dpdk/drivers/net/octeontx2/otx2_rx.c:7: .../dpdk/drivers/crypto/octeontx2/otx2_ipsec_fp.h:9:10: fatal error: rte_security.h: No such file or directory #include <rte_security.h> ^~~~~~~~~~~~~~~~
Quoted 5 lines
compilation terminated.
This seems cause by
f44e7163775537('net/octeontx2: add security session operations').
Disabling parts of the build, particularly libraries, is always likely to cause other build failures. I'm not sure we should, or even need to, support the disabling of arbitrary libs in DPDK.
/Bruce
Quoted 26 lines · Bruce Richardson
Quoted 25 lines · Thierry Herbelot
Hello,
When
RTE_LIBRTE_SECURITYis disabled, compilation fails for octeontx2 (on an Intel machine):git clone
git://dpdk.org/dpdk
cd dpdk
make config T=x86_64-native-linux-gcc
cd build
vi .config
=> disableRTE_LIBRTE_IPSECandRTE_LIBRTE_SECURITY
make
...
== Builddrivers/net/octeontx2
CC otx2_rx.o
In file included from.../dpdk/drivers/net/octeontx2/otx2_ethdev_sec.h:10,from .../dpdk/drivers/net/octeontx2/otx2_rx.h:11, from .../dpdk/drivers/net/octeontx2/otx2_ethdev.h:24, from .../dpdk/drivers/net/octeontx2/otx2_rx.c:7: .../dpdk/drivers/crypto/octeontx2/otx2_ipsec_fp.h:9:10: fatal error: rte_security.h: No such file or directory #include <rte_security.h> ^~~~~~~~~~~~~~~~compilation terminated.
Quoted 6 lines
Quoted 3 lines
This seems cause by
f44e7163775537('net/octeontx2: add security session operations').Disabling parts of the build, particularly libraries, is always likely to cause other build failures. I'm not sure we should, or even need to, support the disabling of arbitrary libs in DPDK.
Hello,
On the other hand, there is no reason delivering unused code in a DPDK application: an application should be free to select its needed 'modules'.
Thanks
Thierry
Quoted 3 lines
/Bruce
Quoted 31 lines · Thierry Herbelot
Quoted 29 lines · Bruce Richardson
Quoted 28 lines · Thierry Herbelot
Hello,
When
RTE_LIBRTE_SECURITYis disabled, compilation fails for octeontx2 (on an Intel machine):git clone
git://dpdk.org/dpdk
cd dpdk
make config T=x86_64-native-linux-gcc
cd build
vi .config
=> disableRTE_LIBRTE_IPSECandRTE_LIBRTE_SECURITY
make
...
== Builddrivers/net/octeontx2
CC otx2_rx.o
In file included from.../dpdk/drivers/net/octeontx2/otx2_ethdev_sec.h:10,from .../dpdk/drivers/net/octeontx2/otx2_rx.h:11, from .../dpdk/drivers/net/octeontx2/otx2_ethdev.h:24, from .../dpdk/drivers/net/octeontx2/otx2_rx.c:7: .../dpdk/drivers/crypto/octeontx2/otx2_ipsec_fp.h:9:10: fatal error: rte_security.h: No such file or directory #include <rte_security.h> ^~~~~~~~~~~~~~~~compilation terminated.
This seems cause by
f44e7163775537('net/octeontx2: add security session operations').
Quoted 8 lines
Quoted 3 lines
Disabling parts of the build, particularly libraries, is always likely to cause other build failures. I'm not sure we should, or even need to, support the disabling of arbitrary libs in DPDK.
Hello,
On the other hand, there is no reason delivering unused code in a DPDK
application: an application should be free to select its needed 'modules'.
Just to understand the use case, What would be the downside of compiling unwanted code?
In meson, it takes only jiffies to compile code and If we use, -no-whole-archive then the generated binary will not be bloated, Considering the case where "make" build system will be deprecated soon and, for meson, I don't think, we are
planning to take the route of disabling the "core libraries".
Could you share the real-world use for this?
My only concern is we can not make tons of #define in the driver code. So, eventually, we end up
disabling the driver.
Quoted 9 lines
Thanks
Thierry
Quoted 3 lines
/Bruce
Quoted 50 lines · Jerin Jacob
Quoted 31 lines · Thierry Herbelot
Quoted 29 lines · Bruce Richardson
Quoted 28 lines · Thierry Herbelot
Hello,
When
RTE_LIBRTE_SECURITYis disabled, compilation fails for octeontx2 (on an Intel machine):git clone
git://dpdk.org/dpdk
cd dpdk
make config T=x86_64-native-linux-gcc
cd build
vi .config
=> disableRTE_LIBRTE_IPSECandRTE_LIBRTE_SECURITY
make
...
== Builddrivers/net/octeontx2
CC otx2_rx.o
In file included from.../dpdk/drivers/net/octeontx2/otx2_ethdev_sec.h:10,from .../dpdk/drivers/net/octeontx2/otx2_rx.h:11, from .../dpdk/drivers/net/octeontx2/otx2_ethdev.h:24, from .../dpdk/drivers/net/octeontx2/otx2_rx.c:7: .../dpdk/drivers/crypto/octeontx2/otx2_ipsec_fp.h:9:10: fatal error: rte_security.h: No such file or directory #include <rte_security.h> ^~~~~~~~~~~~~~~~compilation terminated.
This seems cause by
f44e7163775537('net/octeontx2: add security session operations').Quoted 8 lines
Quoted 3 lines
Disabling parts of the build, particularly libraries, is always likely to cause other build failures. I'm not sure we should, or even need to, support the disabling of arbitrary libs in DPDK.
Hello,
On the other hand, there is no reason delivering unused code in a DPDK
application: an application should be free to select its needed 'modules'.Just to understand the use case, What would be the downside of compiling unwanted code?
In meson, it takes only jiffies to compile code and If we use, -no-whole-archive then the generated binary will not be bloated, Considering the case where "make" build system will be deprecated soon and, for meson, I don't think, we are
planning to take the route of disabling the "core libraries".
Quoted 4 lines
Could you share the real-world use for this?
My only concern is we can not make tons of #define in the driver code. So, eventually, we end up
disabling the driver.
Hello Jerin,
Our use case is that IPsec is provided as part of 6WIND stack, not using the version from DPDK (we are using the crypto PMDs from DPDK).
In any case, as the compilation of DPDK is (still) driven by a separate configuration file, it should be possible that some combination of options are disabled, and still DPDK builds fine.
Thierry
Quoted 12 lines
Quoted 12 lines
Thanks
Thierry
Quoted 3 lines
/Bruce
Signature · 13 lines
Thierry Herbelot 6WIND Senior Software Engineer Tel: +33 1 39 30 92 61 Fax: +33 1 39 30 92 11 [email protected] www.6wind.com Immeuble Central Gare - Bât C 1, place Charles de Gaulle 78180 Montigny-le-Bretonneux, France Ce courriel ainsi que toutes les pièces jointes, est uniquement destiné à son ou ses destinataires. Il contient des informations confidentielles qui sont la propriété de 6WIND. Toute révélation, distribution ou copie des informations qu'il contient est strictement interdite. Si vous avez reçu ce message par erreur, veuillez immédiatement le signaler à l'émetteur et détruire toutes les données reçues This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and contains information that is confidential and proprietary to 6WIND. All unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Quoted 52 lines · Thierry Herbelot
Quoted 50 lines · Jerin Jacob
Quoted 31 lines · Thierry Herbelot
Quoted 29 lines · Bruce Richardson
Quoted 28 lines · Thierry Herbelot
Hello,
When
RTE_LIBRTE_SECURITYis disabled, compilation fails for octeontx2 (on an Intel machine):git clone
git://dpdk.org/dpdk
cd dpdk
make config T=x86_64-native-linux-gcc
cd build
vi .config
=> disableRTE_LIBRTE_IPSECandRTE_LIBRTE_SECURITY
make
...
== Builddrivers/net/octeontx2
CC otx2_rx.o
In file included from.../dpdk/drivers/net/octeontx2/otx2_ethdev_sec.h:10,from .../dpdk/drivers/net/octeontx2/otx2_rx.h:11, from .../dpdk/drivers/net/octeontx2/otx2_ethdev.h:24, from .../dpdk/drivers/net/octeontx2/otx2_rx.c:7: .../dpdk/drivers/crypto/octeontx2/otx2_ipsec_fp.h:9:10: fatal error: rte_security.h: No such file or directory #include <rte_security.h> ^~~~~~~~~~~~~~~~compilation terminated.
This seems cause by
f44e7163775537('net/octeontx2: add security session operations').Quoted 8 lines
Quoted 3 lines
Disabling parts of the build, particularly libraries, is always likely to cause other build failures. I'm not sure we should, or even need to, support the disabling of arbitrary libs in DPDK.
Hello,
On the other hand, there is no reason delivering unused code in a DPDK
application: an application should be free to select its needed 'modules'.Just to understand the use case, What would be the downside of compiling unwanted code?
In meson, it takes only jiffies to compile code and If we use, -no-whole-archive then the generated binary will not be bloated, Considering the case where "make" build system will be deprecated soon and, for meson, I don't think, we are
planning to take the route of disabling the "core libraries".
Quoted 6 lines
Quoted 4 lines
Could you share the real-world use for this?
My only concern is we can not make tons of #define in the driver code. So, eventually, we end up
disabling the driver.Hello Jerin,
Hello Thierry,
Quoted 3 lines
Our use case is that IPsec is provided as part of 6WIND stack, not using the version from DPDK (we are using the crypto PMDs from DPDK).
I see. But still, I don't see any issue even If the 6WIND stack is not using any security or IPsec lib files. Both library and header files will be just unused in the install directory. Right? Or am I missing something?
Quoted 2 lines
In any case, as the compilation of DPDK is (still) driven by a separate configuration file, it should be possible that some combination of
No configuration file option with meson to opt-in and opt-out the library.
Quoted 43 lines
options are disabled, and still DPDK builds fine.
Thierry
Quoted 4 lines
Quoted 4 lines
Quoted 8 lines
Quoted 8 lines
Thanks
Thierry
Quoted 3 lines
/Bruce
--
Thierry Herbelot
6WIND
Senior Software EngineerTel: +33 1 39 30 92 61
Fax: +33 1 39 30 92 11
[email protected]
www.6wind.com
Immeuble Central Gare - Bât C 1, place Charles de Gaulle 78180 Montigny-le-Bretonneux, FranceCe courriel ainsi que toutes les pièces jointes, est uniquement destiné à son ou ses destinataires. Il contient des informations confidentielles qui sont la propriété de 6WIND. Toute révélation, distribution ou copie des informations qu'il contient est strictement interdite. Si vous avez reçu ce message par erreur, veuillez immédiatement le signaler à l'émetteur et détruire toutes les données reçues
This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and contains information that is confidential and proprietary to 6WIND. All unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Quoted 64 lines · Jerin Jacob
Quoted 52 lines · Thierry Herbelot
Quoted 50 lines · Jerin Jacob
Quoted 31 lines · Thierry Herbelot
Quoted 29 lines · Bruce Richardson
Quoted 28 lines · Thierry Herbelot
Hello,
When
RTE_LIBRTE_SECURITYis disabled, compilation fails for octeontx2 (on an Intel machine):git clone
git://dpdk.org/dpdk
cd dpdk
make config T=x86_64-native-linux-gcc
cd build
vi .config
=> disableRTE_LIBRTE_IPSECandRTE_LIBRTE_SECURITY
make
...
== Builddrivers/net/octeontx2
CC otx2_rx.o
In file included from.../dpdk/drivers/net/octeontx2/otx2_ethdev_sec.h:10,from .../dpdk/drivers/net/octeontx2/otx2_rx.h:11, from .../dpdk/drivers/net/octeontx2/otx2_ethdev.h:24, from .../dpdk/drivers/net/octeontx2/otx2_rx.c:7: .../dpdk/drivers/crypto/octeontx2/otx2_ipsec_fp.h:9:10: fatal error: rte_security.h: No such file or directory #include <rte_security.h> ^~~~~~~~~~~~~~~~compilation terminated.
This seems cause by
f44e7163775537('net/octeontx2: add security session operations').Quoted 8 lines
Quoted 3 lines
Disabling parts of the build, particularly libraries, is always likely to cause other build failures. I'm not sure we should, or even need to, support the disabling of arbitrary libs in DPDK.
Hello,
On the other hand, there is no reason delivering unused code in a DPDK
application: an application should be free to select its needed 'modules'.Just to understand the use case, What would be the downside of compiling unwanted code?
In meson, it takes only jiffies to compile code and If we use, -no-whole-archive then the generated binary will not be bloated, Considering the case where "make" build system will be deprecated soon and, for meson, I don't think, we are
planning to take the route of disabling the "core libraries".Quoted 6 lines
Quoted 4 lines
Could you share the real-world use for this?
My only concern is we can not make tons of #define in the driver code. So, eventually, we end up
disabling the driver.Hello Jerin,
Hello Thierry,
Quoted 1 line
Quoted 6 lines
Quoted 2 lines
Our use case is that IPsec is provided as part of 6WIND stack, not using the version from DPDK (we are using the crypto PMDs from DPDK).
I see. But still, I don't see any issue even If the 6WIND stack is not using any security or IPsec lib files. Both library and header files will be just unused in the install directory. Right? Or am I missing something?
Hello Jerin,
All calls to libsecurity will still be part of the octeontx2 driver (by way of otx2_ethdev_sec.c), so the library will not be 'just unused in the install drectory'.
Precisely in a context of security code, it seems strange to bundle unused code in a larger application.
Quoted 5 lines
Quoted 3 lines
In any case, as the compilation of DPDK is (still) driven by a separate configuration file, it should be possible that some combination of
No configuration file option with meson to opt-in and opt-out the library.
Indeed a better wording would be:
the compilation of DPDK can be driven by a separate configuration file, so ...
Thierry
Quoted 15 lines
Quoted 15 lines
options are disabled, and still DPDK builds fine.
Thierry
Quoted 10 lines
Quoted 10 lines
Thanks
Thierry
Quoted 2 lines
/Bruce
Quoted 66 lines · Thierry Herbelot
Quoted 64 lines · Jerin Jacob
Quoted 52 lines · Thierry Herbelot
Quoted 50 lines · Jerin Jacob
Quoted 31 lines · Thierry Herbelot
Quoted 29 lines · Bruce Richardson
Quoted 28 lines · Thierry Herbelot
Hello,
When
RTE_LIBRTE_SECURITYis disabled, compilation fails for octeontx2 (on an Intel machine):git clone
git://dpdk.org/dpdk
cd dpdk
make config T=x86_64-native-linux-gcc
cd build
vi .config
=> disableRTE_LIBRTE_IPSECandRTE_LIBRTE_SECURITY
make
...
== Builddrivers/net/octeontx2
CC otx2_rx.o
In file included from.../dpdk/drivers/net/octeontx2/otx2_ethdev_sec.h:10,from .../dpdk/drivers/net/octeontx2/otx2_rx.h:11, from .../dpdk/drivers/net/octeontx2/otx2_ethdev.h:24, from .../dpdk/drivers/net/octeontx2/otx2_rx.c:7: .../dpdk/drivers/crypto/octeontx2/otx2_ipsec_fp.h:9:10: fatal error: rte_security.h: No such file or directory #include <rte_security.h> ^~~~~~~~~~~~~~~~compilation terminated.
This seems cause by
f44e7163775537('net/octeontx2: add security session operations').Quoted 8 lines
Quoted 3 lines
Disabling parts of the build, particularly libraries, is always likely to cause other build failures. I'm not sure we should, or even need to, support the disabling of arbitrary libs in DPDK.
Hello,
On the other hand, there is no reason delivering unused code in a DPDK
application: an application should be free to select its needed 'modules'.Just to understand the use case, What would be the downside of compiling unwanted code?
In meson, it takes only jiffies to compile code and If we use, -no-whole-archive then the generated binary will not be bloated, Considering the case where "make" build system will be deprecated soon and, for meson, I don't think, we are
planning to take the route of disabling the "core libraries".Quoted 6 lines
Quoted 4 lines
Could you share the real-world use for this?
My only concern is we can not make tons of #define in the driver code. So, eventually, we end up
disabling the driver.Hello Jerin,
Hello Thierry,
Quoted 1 line
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Our use case is that IPsec is provided as part of 6WIND stack, not using the version from DPDK (we are using the crypto PMDs from DPDK).
I see. But still, I don't see any issue even If the 6WIND stack is not using any security or IPsec lib files. Both library and header files will be just unused in the install directory. Right? Or am I missing something?
Hello Jerin,
Hello Thierry,
Quoted 4 lines
All calls to libsecurity will still be part of the octeontx2 driver (by way of
otx2_ethdev_sec.c), so the library will not be 'just unused in the install drectory'.
If you are not using the octeontx2 driver and it will be unused. But if you are using the octeontx2 driver anyway there is a dependency that we can not avoid it. So are we gaining anything here?
Quoted 3 lines
Precisely in a context of security code, it seems strange to bundle unused code in a larger application.
Now that rte_secuirty is not experimental. Maybe there should different treatment.
Assuming someone else needs to disable yet another library say RTE_LIBRTE_CRYPTODEV,
again we are back to square one.
So I think, we need to have a policy on minimal dependency.
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
In any case, as the compilation of DPDK is (still) driven by a separate configuration file, it should be possible that some combination of
No configuration file option with meson to opt-in and opt-out the library.
Indeed a better wording would be:
the compilation of DPDK can be driven by a separate configuration file,
But meson does not allow disabling the libraries.
If the stack has some other dependency on such assumptions, I think, better to improve that now, in the view of meson build in mind.
Quoted 21 lines
so ...
Thierry
Quoted 15 lines
Quoted 15 lines
options are disabled, and still DPDK builds fine.
Thierry
Quoted 10 lines
Quoted 10 lines
Thanks
Thierry
Quoted 2 lines
/Bruce
Hi Bruce/Thierry,
Quoted 27 lines · Thierry Herbelot
Quoted 3 lines
Hello,
When
RTE_LIBRTE_SECURITYis disabled, compilation fails for octeontx2 (onan
Quoted 22 lines
Intel machine):
git clone
git://dpdk.org/dpdk
cd dpdk
make config T=x86_64-native-linux-gcc
cd build
vi .config
=> disableRTE_LIBRTE_IPSECandRTE_LIBRTE_SECURITY
make
...
== Builddrivers/net/octeontx2
CC otx2_rx.o
In file included from.../dpdk/drivers/net/octeontx2/otx2_ethdev_sec.h:10,from .../dpdk/drivers/net/octeontx2/otx2_rx.h:11, from .../dpdk/drivers/net/octeontx2/otx2_ethdev.h:24, from .../dpdk/drivers/net/octeontx2/otx2_rx.c:7: .../dpdk/drivers/crypto/octeontx2/otx2_ipsec_fp.h:9:10: fatal error: rte_security.h: No such file or directory #include <rte_security.h> ^~~~~~~~~~~~~~~~compilation terminated.
Quoted 7 lines
Quoted 3 lines
This seems cause by
f44e7163775537('net/octeontx2: add security session operations').Disabling parts of the build, particularly libraries, is always likely to cause other build failures. I'm not sure we should, or even need to, support the disabling of arbitrary libs in DPDK.
This was followed in the past when rte_security was experimental
And we made sure that compilation should work even after disabling the Lib. Now since the lib has been removed with the experimental tag, shall we Follow the same in future as well. It depends on the community and the users Of the code. If there is a valid use case, we can continue test compilation without Rte_security.
-Akhil