crypto/aesni_mb: fix compile
PATCH 1/1 crypto/aesni_mb: fix compile
This patch fixes the inflexible compile issue AESNI-MB PMD. Originally the compile of the PMD will fail if IPSec_MB is not installed in default location.
--- drivers/crypto/aesni_mb/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/crypto/aesni_mb/Makefile +3 -1
@@ -23,7 +23,9 @@ LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring LDLIBS += -lrte_cryptodev LDLIBS += -lrte_bus_vdev -IMB_HDR = /usr/include/intel-ipsec-mb.h +IMB_HDR = $(shell echo "\#include <intel-ipsec-mb.h>" | \ + $(CC) -E $(EXTRA_CFLAGS) - | grep 'intel-ipsec-mb.h' | \ + head -1 | cut -d'"' -f2) # Detect library version IMB_VERSION = $(shell grep -e "IMB_VERSION_STR" $(IMB_HDR) | cut -d'"' -f2)
Signature · 1 line
2.13.6
Quoted 9 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Fan Zhang
Sent: Wednesday, January 16, 2019 1:21 PM
To: [email protected]
Cc: [email protected]
Subject: [dpdk-dev] [PATCH]crypto/aesni_mb: fix compile
Quoted 8 lines
This patch fixes the inflexible compile issue AESNI-MB PMD. Originally the compile of the PMD will fail if
IPSec_MBis not installed in default location.Fixes c68d7aa354f6 ("crypto/aesni_mb: use architecture independentmacros")
Signed-off-by Fan Zhang <[email protected]>
16/01/2019 14:21, Fan Zhang:
drivers/crypto/aesni_mb/Makefile LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring · line 26
Quoted 10 lines
This patch fixes the inflexible compile issue AESNI-MB PMD. Originally the compile of the PMD will fail if
IPSec_MBis not installed in default location.Fixes c68d7aa354f6 ("crypto/aesni_mb: use architecture independent macros")Signed-off-by Fan Zhang <[email protected]>---
drivers/crypto/aesni_mb/Makefile +1
-1-IMB_HDR = /usr/include/intel-ipsec-mb.h +IMB_HDR = $(shell echo "\#include <intel-ipsec-mb.h>" | \
What is the backslash? Looks like a typo.
drivers/crypto/aesni_mb/Makefile LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring · line 28
Quoted 2 lines
drivers/crypto/aesni_mb/Makefile +2
-0+ $(CC) -E $(EXTRA_CFLAGS) - | grep 'intel-ipsec-mb.h' | \ + head -1 | cut -d'"' -f2)
I think the most standard invocation of head is "head -n1". You can also use "sed 1q".
Quoted 14 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Sent: Thursday, January 17, 2019 10:27 PM
To: Zhang, Roy Fan <[email protected]>
Cc: [email protected]; [email protected]; De Lara Guarch, Pablo <[email protected]>
Subject: Re: [dpdk-dev] [PATCH]crypto/aesni_mb: fix compile16/01/2019 14:21, Fan Zhang:
Quoted 4 lines
This patch fixes the inflexible compile issue AESNI-MB PMD. Originally the compile of the PMD will fail if
IPSec_MBis not installed in default location.
Quoted 8 lines
drivers/crypto/aesni_mb/Makefile LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring · line 26
Quoted 6 lines
Fixes c68d7aa354f6 ("crypto/aesni_mb: use architecture independent macros")Signed-off-by Fan Zhang <[email protected]>---
drivers/crypto/aesni_mb/Makefile +1
-1-IMB_HDR = /usr/include/intel-ipsec-mb.h +IMB_HDR = $(shell echo "\#include <intel-ipsec-mb.h>" | \What is the backslash? Looks like a typo.
Wouldn't make get confused without it?
Konstantin
Quoted 7 lines
drivers/crypto/aesni_mb/Makefile LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring · line 28
Quoted 3 lines
drivers/crypto/aesni_mb/Makefile +2
-0+ $(CC) -E $(EXTRA_CFLAGS) - | grep 'intel-ipsec-mb.h' | \ + head -1 | cut -d'"' -f2)I think the most standard invocation of head is "head -n1". You can also use "sed 1q".
18/01/2019 11:57, Ananyev, Konstantin:
Quoted 8 lines
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Quoted 7 lines
16/01/2019 14:21, Fan Zhang:
Quoted 6 lines
This patch fixes the inflexible compile issue AESNI-MB PMD. Originally the compile of the PMD will fail if
IPSec_MBis not installed in default location.Fixes c68d7aa354f6 ("crypto/aesni_mb: use architecture independent macros")
Quoted 8 lines
Quoted 6 lines
drivers/crypto/aesni_mb/Makefile LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring · line 26
Quoted 4 lines
Signed-off-by Fan Zhang <[email protected]>---
drivers/crypto/aesni_mb/Makefile +1
-1-IMB_HDR = /usr/include/intel-ipsec-mb.h +IMB_HDR = $(shell echo "\#include <intel-ipsec-mb.h>" | \What is the backslash? Looks like a typo.
Wouldn't make get confused without it?
Confused about what?
I tested without backslash, it works.
Quoted 26 lines
-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Friday, January 18, 2019 11:03 AM
To: Ananyev, Konstantin <[email protected]>
Cc: Zhang, Roy Fan <[email protected]>; [email protected]; [email protected]; De Lara Guarch, Pablo <[email protected]>
Subject: Re: [dpdk-dev] [PATCH]crypto/aesni_mb: fix compile18/01/2019 11:57, Ananyev, Konstantin:
Quoted 15 lines
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Quoted 13 lines
16/01/2019 14:21, Fan Zhang:
drivers/crypto/aesni_mb/Makefile LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring · line 26
Quoted 10 lines
This patch fixes the inflexible compile issue AESNI-MB PMD. Originally the compile of the PMD will fail if
IPSec_MBis not installed in default location.Fixes c68d7aa354f6 ("crypto/aesni_mb: use architecture independent macros")Signed-off-by Fan Zhang <[email protected]>---
drivers/crypto/aesni_mb/Makefile +1
-1-IMB_HDR = /usr/include/intel-ipsec-mb.h +IMB_HDR = $(shell echo "\#include <intel-ipsec-mb.h>" | \What is the backslash? Looks like a typo.
Quoted 3 lines
Quoted 1 line
Wouldn't make get confused without it?
Confused about what?
My guess was - about '#'.
Quoted 1 line
I tested without backslash, it works.
Then I was wrong with my guess.
Konstantin
Hi,
Thanks guys. I will send a v2 to remove the backslash.
Regards,
Fan
Quoted 48 lines
-----Original Message-----
From: Ananyev, Konstantin
Sent: Friday, January 18, 2019 11:56 AM
To: Thomas Monjalon <[email protected]>
Cc: Zhang, Roy Fan <[email protected]>; [email protected]; [email protected]; De Lara Guarch, Pablo <[email protected]>
Subject: RE: [dpdk-dev] [PATCH]crypto/aesni_mb: fix compileQuoted 11 lines
-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Friday, January 18, 2019 11:03 AM
To: Ananyev, Konstantin <[email protected]>
Cc: Zhang, Roy Fan <[email protected]>; [email protected]; [email protected]; De Lara Guarch, Pablo <[email protected]>
Subject: Re: [dpdk-dev] [PATCH]crypto/aesni_mb: fix compile18/01/2019 11:57, Ananyev, Konstantin:
Quoted 1 line
From: dev [mailto:[email protected]] On Behalf Of Thomas
Monjalon
Quoted 15 lines
Quoted 15 lines
Quoted 14 lines
16/01/2019 14:21, Fan Zhang:
drivers/crypto/aesni_mb/Makefile LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring · line 26
Quoted 11 lines
This patch fixes the inflexible compile issue AESNI-MB PMD. Originally the compile of the PMD will fail if
IPSec_MBis not installed in default location.Fixes c68d7aa354f6 ("crypto/aesni_mb: use architectureindependent macros")
Signed-off-by Fan Zhang <[email protected]>---
drivers/crypto/aesni_mb/Makefile +1
-1-IMB_HDR = /usr/include/intel-ipsec-mb.h +IMB_HDR = $(shell echo "\#include <intel-ipsec-mb.h>" | \What is the backslash? Looks like a typo.
Quoted 3 lines
Quoted 1 line
Wouldn't make get confused without it?
Confused about what?
My guess was - about '#'.
Quoted 1 line
I tested without backslash, it works.
Then I was wrong with my guess.
Konstantin
PATCH v2 1/1 crypto/aesni_mb: fix compile
In reply to Fan ZhangThis patch fixes the inflexible compile issue AESNI-MB PMD. Originally the compile of the PMD will fail if IPSec_MB is not installed in default location.
---
v2:
- uses standard head invocation
drivers/crypto/aesni_mb/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/crypto/aesni_mb/Makefile +3 -1
@@ -23,7 +23,9 @@ LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring LDLIBS += -lrte_cryptodev LDLIBS += -lrte_bus_vdev -IMB_HDR = /usr/include/intel-ipsec-mb.h +IMB_HDR = $(shell echo '\#include <intel-ipsec-mb.h>' | \ + $(CC) -E $(EXTRA_CFLAGS) - | grep 'intel-ipsec-mb.h' | \ + head -n1 | cut -d'"' -f2) # Detect library version IMB_VERSION = $(shell grep -e "IMB_VERSION_STR" $(IMB_HDR) | cut -d'"' -f2)
Signature · 1 line
2.13.6
Quoted 30 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Fan Zhang
Sent: Monday, January 21, 2019 3:56 PM
To: [email protected]
Cc: [email protected]
Subject: [dpdk-dev] [PATCH v2]crypto/aesni_mb: fix compileThis patch fixes the inflexible compile issue AESNI-MB PMD. Originally the compile of the PMD will fail if
IPSec_MBis not installed in default location.Fixes c68d7aa354f6 ("crypto/aesni_mb: use architecture independent macros")Signed-off-by Fan Zhang <[email protected]>Acked-by Pablo de Lara <[email protected]>---
v2:
- uses standard head invocationdrivers/crypto/aesni_mb/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/crypto/aesni_mb/Makefile +0
-0@@ -23,7 +23,9 @@ LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring LDLIBS += -lrte_cryptodev
drivers/crypto/aesni_mb/Makefile LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
Quoted 10 lines
drivers/crypto/aesni_mb/Makefile +3
-2LDLIBS += -lrte_bus_vdev -IMB_HDR = /usr/include/intel-ipsec-mb.h +IMB_HDR = $(shell echo '\#include <intel-ipsec-mb.h>' | \ + $(CC) -E $(EXTRA_CFLAGS) - | grep 'intel-ipsec-mb.h' | \ + head -n1 | cut -d'"' -f2) # Detect library version IMB_VERSION = $(shell grep -e "IMB_VERSION_STR" $(IMB_HDR) | cut -d'"' -f2) --
Quoted 1 line
2.13.6
Thomas Monjalon
AppliedQuoted 10 lines
Quoted 8 lines
This patch fixes the inflexible compile issue AESNI-MB PMD. Originally the compile of the PMD will fail if
IPSec_MBis not installed in default location.Fixes c68d7aa354f6 ("crypto/aesni_mb: use architecture independent macros")Signed-off-by Fan Zhang <[email protected]>Acked-by Pablo de Lara <[email protected]>Tested-by Konstantin Ananyev <[email protected]>
Applied, thanks