DPDK patches and discussions
 help / color / mirror / Atom feed
From: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
To: William Tu <u9012063@gmail.com>
Cc: dev@dpdk.org, pallavi.kadam@intel.com, talshn@nvidia.com
Subject: Re: [dpdk-dev] [PATCH v3 4/4] net/ixgbe: Add support for Windows
Date: Fri, 1 Oct 2021 22:03:00 +0300	[thread overview]
Message-ID: <20211001220300.0a113830@sovereign> (raw)
In-Reply-To: <20211002003344.594-5-u9012063@gmail.com>

Hi William,

Recommended title: "net/ixgbe: build on Windows".

2021-10-01 17:33 (UTC-0700), William Tu:
> This patch enables building the ixgbe driver for Windows.
> It also enables its dependencies on security and cryptodev.
> I tested on AWS using ixgbe VF device, using dpdk-testpmd.
> 
> Signed-off-by: William Tu <u9012063@gmail.com>

I'm getting this error when building with MinGW:

	../drivers/net/ixgbe/ixgbe_ethdev.c:6416:29: error: ‘IPPROTO_SCTP’
	undeclared (first use in this function); did you mean ‘IPPROTO_TCP’?

Can be fixed by defining IPPROTO_SCTP in e.g. ixgbe_osdep.h if not defined.
Note that rte_os_shim.h cannot be used even in ixgbe_ethdev.c, because it
defines `read()` macro, which causes another error:

	../drivers/net/ixgbe/ixgbe_ethdev.c:4097:37: error: macro "read"
	passed 4 arguments, but takes just 3
	 4097 |  if (mbx->ops.read(hw, &in_msg, 1, 0))

> [...]
> diff --git a/drivers/net/ixgbe/base/meson.build b/drivers/net/ixgbe/base/meson.build
> index 22972c6b56..51a58a3183 100644
> --- a/drivers/net/ixgbe/base/meson.build
> +++ b/drivers/net/ixgbe/base/meson.build
> @@ -28,7 +28,14 @@ foreach flag: error_cflags
>      endif
>  endforeach
>  
> +inc = []
> +inc += include_directories('../../../../lib/net')
> +inc += include_directories('../../../../lib/mbuf')
> +inc += include_directories('../../../../lib/mempool')
> +inc += include_directories('../../../../lib/ring')
> +
>  base_lib = static_library('ixgbe_base', sources,
>      dependencies: static_rte_eal,
> +    include_directories: inc,
>      c_args: c_args)
>  base_objs = base_lib.extract_all_objects(recursive: true)

Looks messy, you could just do this:

    dependencies: [static_rte_eal, static_rte_net]

This works because all drivers/net have a standard dependency on lib/ethdev,
which pulls lib/net in its turn.

  reply	other threads:[~2021-10-01 19:03 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-02  0:33 [dpdk-dev] [PATCH v3 0/4] " William Tu
2021-10-02  0:33 ` [dpdk-dev] [PATCH v3 1/4] security: use the net library for IP structs William Tu
2021-10-05 10:52   ` [dpdk-dev] [EXT] " Akhil Goyal
2021-10-02  0:33 ` [dpdk-dev] [PATCH v3 2/4] security: build on Windows William Tu
2021-10-05 10:53   ` [dpdk-dev] [EXT] " Akhil Goyal
2021-10-02  0:33 ` [dpdk-dev] [PATCH v3 3/4] cryptodev: " William Tu
2021-10-05 10:53   ` [dpdk-dev] [EXT] " Akhil Goyal
2021-10-02  0:33 ` [dpdk-dev] [PATCH v3 4/4] net/ixgbe: Add support for Windows William Tu
2021-10-01 19:03   ` Dmitry Kozlyuk [this message]
2021-10-05 17:02 ` [dpdk-dev] [PATCH v4 0/4] net/ixgbe: build on Windows William Tu
2021-10-05 17:02   ` [dpdk-dev] [PATCH v4 1/4] security: use the net library for IP structs William Tu
2021-10-05 17:02   ` [dpdk-dev] [PATCH v4 2/4] security: build on Windows William Tu
2021-10-05 17:02   ` [dpdk-dev] [PATCH v4 3/4] cryptodev: " William Tu
2021-10-05 17:02   ` [dpdk-dev] [PATCH v4 4/4] net/ixgbe: " William Tu
2021-10-05 22:52     ` Dmitry Kozlyuk
2021-10-06  5:32     ` Kadam, Pallavi
2021-10-06 21:26       ` William Tu
2021-10-06 12:09   ` [dpdk-dev] [PATCH v4 0/4] " David Marchand
2021-10-06 21:48     ` William Tu
2021-10-06 22:35   ` William Tu
2021-10-06 22:35     ` [dpdk-dev] [PATCH v5 1/4] security: use the net library for IP structs William Tu
2021-10-06 22:35     ` [dpdk-dev] [PATCH v5 2/4] security: build on Windows William Tu
2021-10-07  7:44       ` Thomas Monjalon
2021-10-06 22:35     ` [dpdk-dev] [PATCH v5 3/4] cryptodev: " William Tu
2021-10-06 22:35     ` [dpdk-dev] [PATCH v5 4/4] net/ixgbe: " William Tu
2021-10-07  7:51       ` Thomas Monjalon
2021-10-07 11:53     ` [dpdk-dev] [PATCH v4 0/4] " Thomas Monjalon

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=20211001220300.0a113830@sovereign \
    --to=dmitry.kozliuk@gmail.com \
    --cc=dev@dpdk.org \
    --cc=pallavi.kadam@intel.com \
    --cc=talshn@nvidia.com \
    --cc=u9012063@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).