patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Ferruh Yigit <ferruh.yigit@intel.com>
To: "Patil, Harish" <Harish.Patil@cavium.com>,
	Pascal Mazon <pascal.mazon@6wind.com>,
	"dev@dpdk.org" <dev@dpdk.org>,
	"Mody, Rasesh" <Rasesh.Mody@cavium.com>,
	"Shaikh, Shahed" <Shahed.Shaikh@cavium.com>
Cc: "stable@dpdk.org" <stable@dpdk.org>
Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v2] net/qede: fix alloc from socket 0
Date: Wed, 7 Mar 2018 13:17:50 +0000	[thread overview]
Message-ID: <d0743950-8309-5aec-0c69-503092fbc7a6@intel.com> (raw)
In-Reply-To: <D6B99406.1B25DC%Harish.Patil@cavium.com>

On 2/26/2018 6:38 PM, Patil, Harish wrote:
> -----Original Message-----
> From: Pascal Mazon <pascal.mazon@6wind.com>
> Date: Monday, February 26, 2018 at 12:01 AM
> To: "dev@dpdk.org" <dev@dpdk.org>, "Mody, Rasesh"
> <Rasesh.Mody@cavium.com>, Harish Patil <Harish.Patil@cavium.com>, "Shaikh,
> Shahed" <Shahed.Shaikh@cavium.com>
> Cc: "pascal.mazon@6wind.com" <pascal.mazon@6wind.com>, "stable@dpdk.org"
> <stable@dpdk.org>
> Subject: [PATCH v2] net/qede: fix alloc from socket 0
> 
>> In case osal_dma_alloc_coherent() or osal_dma_alloc_coherent_aligned() are
>> called from a management thread, core_id turn out to be LCORE_ID_ANY, and
>> the resulting socket for alloc will be socket 0.
>>
>> This is not desirable when using a NIC from socket 1 which might very
>> likely be configured to use memory from that socket only.
>> In that case, allocation will fail.
>>
>> To address this, use master lcore instead when called from mgmt thread.
>> The associated socket should have memory available.
>>
>> Fixes: ec94dbc57362 ("qede: add base driver")
>> Cc: stable@dpdk.org
>>
>> Signed-off-by: Pascal Mazon <pascal.mazon@6wind.com>
>> Acked-by: Harish Patil <harish.patil@cavium.com>

> Acked-by: Harish Patil <harish.patil@cavium.com>

Applied to dpdk-next-net/master, thanks.

      reply	other threads:[~2018-03-07 13:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-23 12:53 [dpdk-stable] [PATCH] " Pascal Mazon
2018-02-25  6:38 ` Patil, Harish
2018-02-26  8:01 ` [dpdk-stable] [PATCH v2] " Pascal Mazon
2018-02-26 18:38   ` Patil, Harish
2018-03-07 13:17     ` Ferruh Yigit [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=d0743950-8309-5aec-0c69-503092fbc7a6@intel.com \
    --to=ferruh.yigit@intel.com \
    --cc=Harish.Patil@cavium.com \
    --cc=Rasesh.Mody@cavium.com \
    --cc=Shahed.Shaikh@cavium.com \
    --cc=dev@dpdk.org \
    --cc=pascal.mazon@6wind.com \
    --cc=stable@dpdk.org \
    /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).