DPDK patches and discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Jun Xiao <xiaojuntime@gmail.com>
Cc: dev <dev@dpdk.org>, Stephen Hemminger <shemming@brocade.com>
Subject: Re: [dpdk-dev] [PATCH 0/4] Broadcom 10G NIC Poll Mode Driver
Date: Sat, 7 Feb 2015 07:15:23 -0800	[thread overview]
Message-ID: <CAOaVG17Yb0yYVxrpm_qo1w3mEyZXDzXN+LX2K8GAZ=7pc5Hv_w@mail.gmail.com> (raw)
In-Reply-To: <CACyt=TG8EgADhVpiWN4cu56z904hBFH4LyUJAPvgrWhddqemBQ@mail.gmail.com>

Source was from FreeBSD.

changes were to make it work and lots of de-uglification.

For example, the last change was to remove custom logging and debug macros.

There are still lots of style issues with the driver, because of the amount
of
useless macro wrapping.

I don't believe in the vendor model of taking one driver with lots of
macros and pretending
it is generic across OS's.

It has been tested by our QA group as part of our vRouter product release,
which is
based on DPDK 1.6. There are no open problem reports. The performance is
less
than IXGBE but that is probably because it a a port an not optimized.



On Sat, Feb 7, 2015 at 1:15 AM, Jun Xiao <xiaojuntime@gmail.com> wrote:

> Hi Stephen,
>
> Thanks for your great work on this!
>
> Could you elaborate on a few things:
> - What's the methodology used in the driver porting?
>   e.g. what's the base source you ported from?
>   what's the major change against the base source?
> - What kind of tests have been done on Linux? any known limitations?
>
> Thanks,
> Jun
>
> On Sat, Feb 7, 2015 at 2:36 AM, Stephen Hemminger
> <stephen@networkplumber.org> wrote:
> > From: Stephen Hemminger <shemming@brocade.com>
> >
> > These are the patches to enable supporting the Broadcom
> > NetExtreme II 10G devices (show up as bnx2x on Linux).
> >
> > The driver has only been tested on Linux, there maybe issues
> > with firmware loading and PCI config access on BSD.
> >
> > Stephen Hemminger (4):
> >   pci: allow access to PCI config space
> >   bcm: add BCM pci device ids
> >   bcm: new poll mode driver
> >   bcm: enable BCM poll mode driver in config
> >
> >  config/common_linuxapp                          |    10 +
> >  lib/Makefile                                    |     1 +
> >  lib/librte_eal/common/include/rte_pci.h         |    29 +
> >  lib/librte_eal/common/include/rte_pci_dev_ids.h |    30 +
> >  lib/librte_eal/linuxapp/eal/eal_pci.c           |    15 +
> >  lib/librte_eal/linuxapp/eal/eal_pci_uio.c       |    10 +
> >  lib/librte_eal/linuxapp/eal/rte_eal_version.map |     2 +
> >  lib/librte_pmd_bcm/Makefile                     |    28 +
> >  lib/librte_pmd_bcm/bcm.c                        | 11817
> +++++++++++++++++++
> >  lib/librte_pmd_bcm/bcm.h                        |  1998 ++++
> >  lib/librte_pmd_bcm/bcm_ethdev.c                 |   544 +
> >  lib/librte_pmd_bcm/bcm_ethdev.h                 |    79 +
> >  lib/librte_pmd_bcm/bcm_logs.h                   |    51 +
> >  lib/librte_pmd_bcm/bcm_rxtx.c                   |   487 +
> >  lib/librte_pmd_bcm/bcm_rxtx.h                   |    85 +
> >  lib/librte_pmd_bcm/bcm_stats.c                  |  1619 +++
> >  lib/librte_pmd_bcm/bcm_stats.h                  |   633 +
> >  lib/librte_pmd_bcm/bcm_vfpf.c                   |   597 +
> >  lib/librte_pmd_bcm/bcm_vfpf.h                   |   315 +
> >  lib/librte_pmd_bcm/debug.c                      |   113 +
> >  lib/librte_pmd_bcm/ecore_fw_defs.h              |   423 +
> >  lib/librte_pmd_bcm/ecore_hsi.h                  |  6349 ++++++++++
> >  lib/librte_pmd_bcm/ecore_init.h                 |   842 ++
> >  lib/librte_pmd_bcm/ecore_init_ops.h             |   886 ++
> >  lib/librte_pmd_bcm/ecore_mfw_req.h              |   207 +
> >  lib/librte_pmd_bcm/ecore_reg.h                  |  3664 ++++++
> >  lib/librte_pmd_bcm/ecore_sp.c                   |  5455 +++++++++
> >  lib/librte_pmd_bcm/ecore_sp.h                   |  1796 +++
> >  lib/librte_pmd_bcm/elink.c                      | 13378
> ++++++++++++++++++++++
> >  lib/librte_pmd_bcm/elink.h                      |   610 +
> >  30 files changed, 52073 insertions(+)
> >  create mode 100644 lib/librte_pmd_bcm/Makefile
> >  create mode 100644 lib/librte_pmd_bcm/bcm.c
> >  create mode 100644 lib/librte_pmd_bcm/bcm.h
> >  create mode 100644 lib/librte_pmd_bcm/bcm_ethdev.c
> >  create mode 100644 lib/librte_pmd_bcm/bcm_ethdev.h
> >  create mode 100644 lib/librte_pmd_bcm/bcm_logs.h
> >  create mode 100644 lib/librte_pmd_bcm/bcm_rxtx.c
> >  create mode 100644 lib/librte_pmd_bcm/bcm_rxtx.h
> >  create mode 100644 lib/librte_pmd_bcm/bcm_stats.c
> >  create mode 100644 lib/librte_pmd_bcm/bcm_stats.h
> >  create mode 100644 lib/librte_pmd_bcm/bcm_vfpf.c
> >  create mode 100644 lib/librte_pmd_bcm/bcm_vfpf.h
> >  create mode 100644 lib/librte_pmd_bcm/debug.c
> >  create mode 100644 lib/librte_pmd_bcm/ecore_fw_defs.h
> >  create mode 100644 lib/librte_pmd_bcm/ecore_hsi.h
> >  create mode 100644 lib/librte_pmd_bcm/ecore_init.h
> >  create mode 100644 lib/librte_pmd_bcm/ecore_init_ops.h
> >  create mode 100644 lib/librte_pmd_bcm/ecore_mfw_req.h
> >  create mode 100644 lib/librte_pmd_bcm/ecore_reg.h
> >  create mode 100644 lib/librte_pmd_bcm/ecore_sp.c
> >  create mode 100644 lib/librte_pmd_bcm/ecore_sp.h
> >  create mode 100644 lib/librte_pmd_bcm/elink.c
> >  create mode 100644 lib/librte_pmd_bcm/elink.h
> >
> > --
> > 2.1.4
> >
>

  reply	other threads:[~2015-02-07 15:15 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-06 18:36 Stephen Hemminger
2015-02-06 18:36 ` [dpdk-dev] [PATCH 1/4] pci: allow access to PCI config space Stephen Hemminger
2015-02-09  9:45   ` David Marchand
2015-02-10 23:49     ` Stephen Hemminger
     [not found]   ` <c058fdefd5564f3f96bd21593c9ea19a@BRMWP-EXMB11.corp.brocade.com>
2015-02-11  1:23     ` Stephen Hemminger
2015-02-06 18:36 ` [dpdk-dev] [PATCH 2/4] bcm: add BCM pci device ids Stephen Hemminger
2015-02-06 18:36 ` [dpdk-dev] [PATCH 3/4] bcm: new poll mode driver Stephen Hemminger
2015-02-06 18:36 ` [dpdk-dev] [PATCH 4/4] bcm: enable BCM poll mode driver in config Stephen Hemminger
2015-02-07  9:15 ` [dpdk-dev] [PATCH 0/4] Broadcom 10G NIC Poll Mode Driver Jun Xiao
2015-02-07 15:15   ` Stephen Hemminger [this message]
2015-02-07 16:05     ` Jun Xiao
2015-02-07 22:23       ` Stephen Hemminger
2015-02-12 14:00     ` Thomas Monjalon
2015-02-12 14:33       ` Stephen Hemminger
2015-02-12 14:56         ` Thomas Monjalon
     [not found]         ` <0a8c8ae93e354bf0a74dd8ade9d1cc70@BRMWP-EXMB11.corp.brocade.com>
2015-02-12 21:45           ` Stephen Hemminger
2015-02-13  8:31             ` 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='CAOaVG17Yb0yYVxrpm_qo1w3mEyZXDzXN+LX2K8GAZ=7pc5Hv_w@mail.gmail.com' \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    --cc=shemming@brocade.com \
    --cc=xiaojuntime@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).