DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Riccardo Ravaioli <riccardoravaioli@gmail.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] AVX check
Date: Thu, 26 Apr 2018 17:34:38 +0100	[thread overview]
Message-ID: <20180426163437.GA84332@bricha3-MOBL.ger.corp.intel.com> (raw)
In-Reply-To: <CAOFj0UVHOVFrEdKCZPuQMLWffxoKp9o=DbtDNnmTdyQtEb0yGQ@mail.gmail.com>

On Thu, Apr 26, 2018 at 06:06:47PM +0200, Riccardo Ravaioli wrote:
> Hi all,
> 
> I need to install DPDK on 64-bit Linux machines whose processors might or
> might not support AVX instructions. In my current configuration file,
> defconfig_x86-64-native-linuxapp-gcc, the parameter CONFIG_RTE_MACHINE is
> set to native. If I compile DPDK on a machine that supports AVX and then I
> install it (along with openvswitch) on a machine that does *not* support
> AVX, openvswitch won't start and will output an "illegal instruction"
> error.
> 
> I'm proposing the following patch to fix this issue:
> 

Hi,

rather than changing the code, the best way to handle this is to change the
build target to something other than "native" in the build config file. I
would suggest "nehalem" as a suitable MACHINE type value. This provides
SSE4.x support, but no AVX.

/Bruce

      reply	other threads:[~2018-04-26 16:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-26 16:06 Riccardo Ravaioli
2018-04-26 16:34 ` Bruce Richardson [this message]

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=20180426163437.GA84332@bricha3-MOBL.ger.corp.intel.com \
    --to=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=riccardoravaioli@gmail.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).