All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
To: Sujith Sankar <ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
Cc: dev-VfR2kkLFssw@public.gmane.org
Subject: Re: [PATCH] enic: corrected the usage of VFIO_PRESENT
Date: Tue, 16 Dec 2014 00:24:19 +0100	[thread overview]
Message-ID: <5911790.4rCTPaIceN@xps13> (raw)
In-Reply-To: <1418372303-31565-1-git-send-email-ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>

2014-12-12 13:48, Sujith Sankar:
> This patch corrects the usage of the flag VFIO_PRESENT in enic driver.

Please, could you explain why the flag VFIO_PRESENT was not well used?

> This has uncovered a few warnings, and this patch corrects those too.
[...]
> --- a/lib/librte_pmd_enic/enic_main.c
> +++ b/lib/librte_pmd_enic/enic_main.c
> @@ -39,6 +39,7 @@
>  #include <sys/mman.h>
>  #include <fcntl.h>
>  #include <libgen.h>
> +#include <sys/ioctl.h>
>  
>  #include <rte_pci.h>
>  #include <rte_memzone.h>
> @@ -46,6 +47,7 @@
>  #include <rte_mbuf.h>
>  #include <rte_string_fns.h>
>  #include <rte_ethdev.h>
> +#include <eal_vfio.h>

This header was not designed to be included by PMDs.
It will break compilation on BSD.

>  #include "enic_compat.h"
>  #include "enic.h"
> @@ -561,6 +563,7 @@ enic_free_consistent(__rte_unused struct rte_pci_device *hwdev,
>  	/* Nothing to be done */
>  }
>  
> +#ifndef VFIO_PRESENT
>  static void
>  enic_intr_handler(__rte_unused struct rte_intr_handle *handle,
>  	void *arg)
> @@ -572,6 +575,7 @@ enic_intr_handler(__rte_unused struct rte_intr_handle *handle,
>  
>  	enic_log_q_error(enic);
>  }
> +#endif

-- 
Thomas

  parent reply	other threads:[~2014-12-15 23:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-12  8:18 [PATCH] enic: corrected the usage of VFIO_PRESENT Sujith Sankar
     [not found] ` <1418372303-31565-1-git-send-email-ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2014-12-15 23:24   ` Thomas Monjalon [this message]
2014-12-16  4:12     ` Sujith Sankar (ssujith)
2014-12-16  7:51       ` Qiu, Michael
     [not found]         ` <533710CFB86FA344BFBF2D6802E60286CA02DA-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-12-16 10:00           ` Sujith Sankar (ssujith)
     [not found]             ` <D0B5EBF7.2AAF2%ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2014-12-16 10:16               ` Thomas Monjalon
     [not found]       ` <D0B5AE42.2A9E2%ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2014-12-16 10:22         ` Burakov, Anatoly
     [not found]           ` <C6ECDF3AB251BE4894318F4E4512369780C259D2-kPTMFJFq+rHjxeytcECX8bfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-12-16 10:34             ` Sujith Sankar (ssujith)
     [not found]               ` <D0B6061A.2ABCF%ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2014-12-16 10:36                 ` Burakov, Anatoly
     [not found]                   ` <C6ECDF3AB251BE4894318F4E4512369780C25A09-kPTMFJFq+rHjxeytcECX8bfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-12-16 10:40                     ` Sujith Sankar (ssujith)

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=5911790.4rCTPaIceN@xps13 \
    --to=thomas.monjalon-pdr9zngts4eavxtiumwx3w@public.gmane.org \
    --cc=dev-VfR2kkLFssw@public.gmane.org \
    --cc=ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.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 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.