DPDK patches and discussions
 help / color / mirror / Atom feed
From: reshma sarat <reshmasarat@gmail.com>
To: dev@dpdk.org, nhorman@tuxdriver.com
Subject: Re: [dpdk-dev] dev Digest, Vol 139, Issue 35
Date: Mon, 17 Apr 2017 14:53:02 +0530	[thread overview]
Message-ID: <CAKjoOuYs4v-3ZSjBzYSC-Q+iiPXtU04FEYEX=vae-Lsu935sug@mail.gmail.com> (raw)
In-Reply-To: <mailman.1071.1491914801.31772.dev@dpdk.org>

Yes, as you said I had copied the header files to a location that is in
some way packagable with your application. But it didn't work even after I
had copied the rte_config.h file. Now I have removed the header files from
the location and included them using -I directives in the makefile of my
application. On building DPDK, no error is obtained. But after setting the
source and target and running the makefile of my application, I am getting
the same error as:-

/root/dpdk-stable-16.07.2/lib/librte_eal/common/include/rte_memory.h:83:2:
error: #error "Unsupported cache line size".

I have checked my cacheline size using

/sys/devices/system/cpu/cpu0/cache/coherency_line_size in which the size is 64.

Is there any dependency on the system in which I am running the
application. Since I am
running my application in 32-bit system.


Message: 5

> Date: Tue, 11 Apr 2017 08:34:40 -0400
> From: Neil Horman <nhorman@tuxdriver.com>
> To: reshma sarat <reshmasarat@gmail.com>
> Cc: dev@dpdk.org
> Subject: Re: [dpdk-dev] Integration of DPDK with a seperate
>         application
> Message-ID: <20170411123439.GA20485@hmswarspite.think-freely.org>
> Content-Type: text/plain; charset=us-ascii
>
> On Tue, Apr 11, 2017 at 05:44:50PM +0530, reshma sarat wrote:
> > Hi,
> > In my application, I am making use of DPDK APIs for sending and receiving
> > packets. I have now imported some of its header files of DPDK to my
> > application. But on executing make command, an error such as
> > :/rte_memory.h:83:2: error: #error "Unsupported cache line size"
> >  is what I am getting. How to overcome this error?
> > Regards,
> > Reshma
> >
>
> I assume by exporting, you mean moving the header files to a location that
> is in
> some way packagable with your application?
>
> Don't do that.
>
> the DPDK header files rely on their heirarchy to work properly.  You could
> move
> the rte_config.h file, which is what you are missing in this case, to
> define the
> proper cache line size for the system on which you are building, but the
> correct
> solution is to independently install the DPDK on your devel system, and
> include
> those dpdk header files with -I directives
>
> Neil
>
>
>
> ------------------------------
>
>
>
>
>
>

           reply	other threads:[~2017-04-17  9:23 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <mailman.1071.1491914801.31772.dev@dpdk.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKjoOuYs4v-3ZSjBzYSC-Q+iiPXtU04FEYEX=vae-Lsu935sug@mail.gmail.com' \
    --to=reshmasarat@gmail.com \
    --cc=dev@dpdk.org \
    --cc=nhorman@tuxdriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).