All of lore.kernel.org
 help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: Jan Medala <jan@semihalf.com>, dev@dpdk.org
Cc: Evgeny Schemeilin <evgenys@amazon.com>, matua@amazon.com
Subject: Re: [PATCH v4 4/4] ena: DPDK polling-mode driver for Amazon Elastic Network Adapters (ENA)
Date: Wed, 2 Mar 2016 10:18:50 +0200	[thread overview]
Message-ID: <56D6A1EA.3040604@redhat.com> (raw)
In-Reply-To: <1456850801-3737-5-git-send-email-jan@semihalf.com>

On 03/01/2016 06:46 PM, Jan Medala wrote:
> This is a PMD for the Amazon ethernet ENA family.
> The driver operates variety of ENA adapters through feature negotiation
> with the adapter and upgradable commands set.
> ENA driver handles PCI Physical and Virtual ENA functions.
>
> Signed-off-by: Evgeny Schemeilin <evgenys@amazon.com>
> Signed-off-by: Jan Medala <jan@semihalf.com>
> Signed-off-by: Jakub Palider <jpa@semihalf.com>
> ---
>   config/common_linuxapp                  |   11 +
>   drivers/net/Makefile                    |    1 +
>   drivers/net/ena/Makefile                |   65 ++
>   drivers/net/ena/ena_ethdev.c            | 1311 +++++++++++++++++++++++++++++++
>   drivers/net/ena/ena_ethdev.h            |  155 ++++
>   drivers/net/ena/ena_logs.h              |   74 ++
>   drivers/net/ena/ena_platform.h          |   58 ++
>   drivers/net/ena/rte_pmd_ena_version.map |    4 +
>   mk/rte.app.mk                           |    1 +
>   9 files changed, 1680 insertions(+)
>   create mode 100644 drivers/net/ena/Makefile
>   create mode 100644 drivers/net/ena/ena_ethdev.c
>   create mode 100644 drivers/net/ena/ena_ethdev.h
>   create mode 100644 drivers/net/ena/ena_logs.h
>   create mode 100644 drivers/net/ena/ena_platform.h
>   create mode 100644 drivers/net/ena/rte_pmd_ena_version.map
>
[...]
> diff --git a/drivers/net/ena/Makefile b/drivers/net/ena/Makefile
> new file mode 100644
> index 0000000..0beb850
> --- /dev/null
> +++ b/drivers/net/ena/Makefile
> @@ -0,0 +1,65 @@
> +#
[...]
> +include $(RTE_SDK)/mk/rte.vars.mk
> +
> +#
> +# library name
> +#
> +LIB = librte_pmd_ena.a
> +CFLAGS += $(WERROR_FLAGS) -O2
> +INCLUDES :=-I$(SRCDIR) -I$(SRCDIR)/base/ena_defs -I$(SRCDIR)/base
> +
> +EXPORT_MAP := rte_pmd_ena_version.map
> +LIBABIVER := 1
> +
> +VPATH += $(SRCDIR)/base
> +#
> +# all source are stored in SRCS-y
> +#
> +SRCS-$(CONFIG_RTE_LIBRTE_ENA_PMD) += ena_ethdev.c
> +SRCS-$(CONFIG_RTE_LIBRTE_ENA_PMD) += ena_com.c
> +SRCS-$(CONFIG_RTE_LIBRTE_ENA_PMD) += ena_eth_com.c
> +
> +# this lib depends upon:
> +DEPDIRS-$(CONFIG_RTE_LIBRTE_ENA_PMD) += lib/librte_eal lib/librte_ether
> +DEPDIRS-$(CONFIG_RTE_LIBRTE_ENA_PMD) += lib/librte_mempool lib/librte_mbuf
> +DEPDIRS-$(CONFIG_RTE_LIBRTE_ENA_PMD) += lib/librte_net lib/librte_malloc
> +
> +ifeq ($(CONFIG_RTE_EXEC_ENV),"cvos")
> +CFLAGS += -Wno-old-style-definition
> +endif

Hmm, what's this? There's no "cvos" exec env in DPDK that I know of, and 
while its of course quite harmless I dont think its entirely appropriate 
to have references to in-house projects and the like (assuming that's 
what it is) in an OSS project.

[...]
> diff --git a/drivers/net/ena/rte_pmd_ena_version.map b/drivers/net/ena/rte_pmd_ena_version.map
> new file mode 100644
> index 0000000..ef35398
> --- /dev/null
> +++ b/drivers/net/ena/rte_pmd_ena_version.map
> @@ -0,0 +1,4 @@
> +DPDK_2.0 {
> +
> +	local: *;
> +};

The symbol versions should reflect the actual DPDK version where 
introduced. Its fairly academical here since no actual symbols are 
exported but for correctness sake, it should say DPDK_16.04 as the version.

	- Panu -

      reply	other threads:[~2016-03-02  8:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-01 16:46 [PATCH v4 0/4] DPDK polling-mode driver for Amazon Elastic Network Adapters (ENA Jan Medala
2016-03-01 16:46 ` [PATCH v4 1/4] ena: Amazon ENA documentation Jan Medala
2016-03-01 16:46 ` [PATCH v4 2/4] ena: Amazon ENA communication layer Jan Medala
2016-03-01 16:46 ` [PATCH v4 3/4] ena: Amazon ENA communication layer for DPDK platform Jan Medala
2016-03-01 16:46 ` [PATCH v4 4/4] ena: DPDK polling-mode driver for Amazon Elastic Network Adapters (ENA) Jan Medala
2016-03-02  8:18   ` Panu Matilainen [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=56D6A1EA.3040604@redhat.com \
    --to=pmatilai@redhat.com \
    --cc=dev@dpdk.org \
    --cc=evgenys@amazon.com \
    --cc=jan@semihalf.com \
    --cc=matua@amazon.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 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.