DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Tom Jones <thj@freebsd.org>
Cc: <dev@dpdk.org>
Subject: Re: [PATCH] freebsd: Add support for multiple dpdk instances on FreeBSD
Date: Fri, 3 May 2024 17:25:16 +0100	[thread overview]
Message-ID: <ZjUP7Cm8-RyMrT75@bricha3-mobl1.ger.corp.intel.com> (raw)
In-Reply-To: <20240503094615.1427-1-thj@freebsd.org>

On Fri, May 03, 2024 at 09:46:15AM +0000, Tom Jones wrote:
> Add support to the contigmem module on FreeBSD for multiple concurrent
> files, this enables running multiple dpdk instances with the nic_uio
> driver.
> 
> Add relevant parts in dpdk to support this.
> 
> Signed-off-by: Tom Jones <thj@freebsd.org>
> ---
>  config/rte_config.h                  |   2 +
>  kernel/freebsd/contigmem/contigmem.c | 225 ++++++++++++++++++---------
>  lib/eal/common/eal_common_options.c  |   2 +
>  lib/eal/freebsd/eal.c                |  12 ++
>  lib/eal/freebsd/eal_hugepage_info.c  |  12 +-
>  lib/eal/freebsd/eal_memory.c         |   3 +-
>  6 files changed, 180 insertions(+), 76 deletions(-)
> 

<snip>

> @@ -238,10 +312,14 @@ contigmem_cdev_pager_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot,
>  {
>  	struct contigmem_vm_handle *vmh = handle;
>  	struct contigmem_buffer *buf;
> +	struct contigmem_device *cd;
>  
> -	buf = &contigmem_buffers[vmh->buffer_index];
> +	cd = &contigmem_device_list[vmh->device_index];
> +	buf = &cd->cm_buffers[vmh->buffer_index];
> +		vmh, vmh->buffer_index, vmh->device_index, cd, buf, buf->refcnt);
>  

The CI reports build failures with this patch, and the above is the
offending line. Looking and comparing with the previous version, you've
deleted a printf, but I think you missed the line continuation of it.

/Bruce

  parent reply	other threads:[~2024-05-03 16:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-02 13:55 Tom Jones
2024-05-03  9:46 ` Tom Jones
2024-05-03 13:03   ` Bruce Richardson
2024-05-03 13:12     ` Tom Jones
2024-05-03 13:24       ` Bruce Richardson
2024-05-03 16:25   ` Bruce Richardson [this message]
2024-05-03 16:48   ` Bruce Richardson
2024-05-03 16:52     ` Bruce Richardson
2024-05-06 15:34       ` Tom Jones

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=ZjUP7Cm8-RyMrT75@bricha3-mobl1.ger.corp.intel.com \
    --to=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=thj@freebsd.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).