All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [SPDK] DPDK linking, include question
@ 2018-07-31 21:28 Luse, Paul E
  0 siblings, 0 replies; 3+ messages in thread
From: Luse, Paul E @ 2018-07-31 21:28 UTC (permalink / raw)
  To: spdk

[-- Attachment #1: Type: text/plain, Size: 2078 bytes --]

Thanks Jim, “Make Q=” pointed out my mistake pretty quickly…  the issue was in my unit test code, the reference to the source below is, of course, because it was included by the UT c file.  Just needed a mock.

From: SPDK [mailto:spdk-bounces(a)lists.01.org] On Behalf Of Harris, James R
Sent: Monday, July 30, 2018 1:05 PM
To: Storage Performance Development Kit <spdk(a)lists.01.org>
Subject: Re: [SPDK] DPDK linking, include question

Hi Paul,

Can you provide more context for the linker failure including complete logs?  Also, prepending with “Q=” will give the full linker line.

Thanks,

-Jim


From: SPDK <spdk-bounces(a)lists.01.org<mailto:spdk-bounces(a)lists.01.org>> on behalf of Paul E Luse <paul.e.luse(a)intel.com<mailto:paul.e.luse(a)intel.com>>
Reply-To: Storage Performance Development Kit <spdk(a)lists.01.org<mailto:spdk(a)lists.01.org>>
Date: Monday, July 30, 2018 at 12:37 PM
To: Storage Performance Development Kit <spdk(a)lists.01.org<mailto:spdk(a)lists.01.org>>
Subject: [SPDK] DPDK linking, include question


Wrt the crypto module https://review.gerrithub.io/c/spdk/spdk/+/403107 I have the need to make a function call to a function that is declared/defined in rte_cryotp.h- a function called rte_crypto_op_free() (see https://doc.dpdk.org/guides/prog_guide/cryptodev_lib.html section 14.4.4<https://doc.dpdk.org/guides/prog_guide/cryptodev_lib.html%20section%2014.4.4>) as I believe I’ve been freeing crypto operation incorrectly and this is potentially the root cause for a data miscompare I get w/65K & >32 qd loads with bdevper and –verify option.

Anyway, I get a linker error (below) even though I have rte_crypto.h included and rte_cryptodev library is properly linked.

/home/peluse/spdk/lib/bdev/crypto/vbdev_crypto.c:420: undefined reference to `rte_crypto_op_free'
collect2: error: ld returned 1 exit status

Also note that I make other calls like rte_crypto_op_pool_create() that is defined in the same file but I have no problems ther.

Am I missing something really, really obvious here?

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 6178 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [SPDK] DPDK linking, include question
@ 2018-07-30 20:04 Harris, James R
  0 siblings, 0 replies; 3+ messages in thread
From: Harris, James R @ 2018-07-30 20:04 UTC (permalink / raw)
  To: spdk

[-- Attachment #1: Type: text/plain, Size: 1503 bytes --]

Hi Paul,

Can you provide more context for the linker failure including complete logs?  Also, prepending with “Q=” will give the full linker line.

Thanks,

-Jim


From: SPDK <spdk-bounces(a)lists.01.org> on behalf of Paul E Luse <paul.e.luse(a)intel.com>
Reply-To: Storage Performance Development Kit <spdk(a)lists.01.org>
Date: Monday, July 30, 2018 at 12:37 PM
To: Storage Performance Development Kit <spdk(a)lists.01.org>
Subject: [SPDK] DPDK linking, include question


Wrt the crypto module https://review.gerrithub.io/c/spdk/spdk/+/403107 I have the need to make a function call to a function that is declared/defined in rte_cryotp.h- a function called rte_crypto_op_free() (see https://doc.dpdk.org/guides/prog_guide/cryptodev_lib.html section 14.4.4<https://doc.dpdk.org/guides/prog_guide/cryptodev_lib.html%20section%2014.4.4>) as I believe I’ve been freeing crypto operation incorrectly and this is potentially the root cause for a data miscompare I get w/65K & >32 qd loads with bdevper and –verify option.

Anyway, I get a linker error (below) even though I have rte_crypto.h included and rte_cryptodev library is properly linked.

/home/peluse/spdk/lib/bdev/crypto/vbdev_crypto.c:420: undefined reference to `rte_crypto_op_free'
collect2: error: ld returned 1 exit status

Also note that I make other calls like rte_crypto_op_pool_create() that is defined in the same file but I have no problems ther.

Am I missing something really, really obvious here?

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 4978 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [SPDK] DPDK linking, include question
@ 2018-07-30 19:37 Luse, Paul E
  0 siblings, 0 replies; 3+ messages in thread
From: Luse, Paul E @ 2018-07-30 19:37 UTC (permalink / raw)
  To: spdk

[-- Attachment #1: Type: text/plain, Size: 1006 bytes --]


Wrt the crypto module https://review.gerrithub.io/c/spdk/spdk/+/403107 I have the need to make a function call to a function that is declared/defined in rte_cryotp.h- a function called rte_crypto_op_free() (see https://doc.dpdk.org/guides/prog_guide/cryptodev_lib.html section 14.4.4<https://doc.dpdk.org/guides/prog_guide/cryptodev_lib.html%20section%2014.4.4>) as I believe I've been freeing crypto operation incorrectly and this is potentially the root cause for a data miscompare I get w/65K & >32 qd loads with bdevper and -verify option.

Anyway, I get a linker error (below) even though I have rte_crypto.h included and rte_cryptodev library is properly linked.

/home/peluse/spdk/lib/bdev/crypto/vbdev_crypto.c:420: undefined reference to `rte_crypto_op_free'
collect2: error: ld returned 1 exit status

Also note that I make other calls like rte_crypto_op_pool_create() that is defined in the same file but I have no problems ther.

Am I missing something really, really obvious here?

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 3227 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-07-31 21:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-31 21:28 [SPDK] DPDK linking, include question Luse, Paul E
  -- strict thread matches above, loose matches on Subject: below --
2018-07-30 20:04 Harris, James R
2018-07-30 19:37 Luse, Paul E

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.