Skip to contentSkip to conversation

crypto/aesni_mb: fix compile

PATCH Superseded Fan Zhang 4 participants 10 messages Jan 16, 2019 – Jan 22, 2019 Crypto API

lore
Share & tools
lore

Fan Zhang

author
#0 lore raw

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.

Fixes c68d7aa354f6 ("crypto/aesni_mb: use architecture independent macros")
---
 drivers/crypto/aesni_mb/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/crypto/aesni_mb/Makefile +3 -1
index 7ef290dc5..1aae64a3c 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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_MB is not installed in default location.

Fixes c68d7aa354f6 ("crypto/aesni_mb: use architecture independent

macros")

#2 lore raw
In reply to Fan Zhang

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_MB is not installed in default location.

Fixes c68d7aa354f6 ("crypto/aesni_mb: use architecture independent macros")

---

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".

#3 lore raw
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 compile

16/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_MB is 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")

---

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".

#4 lore raw

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_MB is 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

---

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.

#5 lore raw
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 compile

18/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_MB is not installed in default location.

Fixes c68d7aa354f6 ("crypto/aesni_mb: use architecture independent macros")

---

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

#6 lore raw

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 compile

Quoted 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 compile

18/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_MB is not installed in default location.

Fixes c68d7aa354f6 ("crypto/aesni_mb: use architecture

independent macros")

---

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

author
#7 lore raw

PATCH v2 1/1 crypto/aesni_mb: fix compile

In reply to Fan Zhang

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.

Fixes c68d7aa354f6 ("crypto/aesni_mb: use architecture independent macros")

---
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
index 7ef290dc5..8d2024c9e 100644
@@ -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
Tested-by on v2 1/1
#8 lore raw
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 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.

Fixes c68d7aa354f6 ("crypto/aesni_mb: use architecture independent macros")

---
v2:
- uses standard head invocation

 drivers/crypto/aesni_mb/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/crypto/aesni_mb/Makefile +0 -0
index 7ef290dc5..8d2024c9e 100644
@@ -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 -2
 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)
--
Quoted 1 line

2.13.6