[dpdk-dev] [PATCH v2 0/6] Cisco Systems Inc. VIC Ethernet PMD - ENIC PMD

2014-11-21 Thread Sujith Sankar
ENIC PMD is the poll-mode driver for the Cisco Systems Inc. VIC to be
used with DPDK suite.

Sujith Sankar (6):
  ENIC PMD License
  ENIC PMD Makefile
  VNIC common code partially shared with ENIC kernel mode driver
  ENIC PMD specific code
  DPDK-ENIC PMD interface
  DPDK changes for accommodating ENIC PMD

 config/common_linuxapp |6 +
 lib/Makefile   |1 +
 lib/librte_eal/linuxapp/eal/eal_pci_vfio.c |7 +
 lib/librte_eal/linuxapp/eal/include/eal_pci_init.h |1 +
 lib/librte_pmd_enic/LICENSE|   27 +
 lib/librte_pmd_enic/Makefile   |   67 +
 lib/librte_pmd_enic/enic.h |  158 +++
 lib/librte_pmd_enic/enic_clsf.c|  244 
 lib/librte_pmd_enic/enic_compat.h  |  142 +++
 lib/librte_pmd_enic/enic_etherdev.c|  620 +
 lib/librte_pmd_enic/enic_main.c| 1328 
 lib/librte_pmd_enic/enic_res.c |  221 
 lib/librte_pmd_enic/enic_res.h |  168 +++
 lib/librte_pmd_enic/vnic/cq_desc.h |  126 ++
 lib/librte_pmd_enic/vnic/cq_enet_desc.h|  261 
 lib/librte_pmd_enic/vnic/rq_enet_desc.h|   76 ++
 lib/librte_pmd_enic/vnic/vnic_cq.c |  117 ++
 lib/librte_pmd_enic/vnic/vnic_cq.h |  152 +++
 lib/librte_pmd_enic/vnic/vnic_dev.c| 1081 
 lib/librte_pmd_enic/vnic/vnic_dev.h|  202 +++
 lib/librte_pmd_enic/vnic/vnic_devcmd.h |  774 
 lib/librte_pmd_enic/vnic/vnic_enet.h   |   78 ++
 lib/librte_pmd_enic/vnic/vnic_intr.c   |   83 ++
 lib/librte_pmd_enic/vnic/vnic_intr.h   |  126 ++
 lib/librte_pmd_enic/vnic/vnic_nic.h|   88 ++
 lib/librte_pmd_enic/vnic/vnic_resource.h   |   97 ++
 lib/librte_pmd_enic/vnic/vnic_rq.c |  246 
 lib/librte_pmd_enic/vnic/vnic_rq.h |  282 +
 lib/librte_pmd_enic/vnic/vnic_rss.c|   85 ++
 lib/librte_pmd_enic/vnic/vnic_rss.h|   61 +
 lib/librte_pmd_enic/vnic/vnic_stats.h  |   86 ++
 lib/librte_pmd_enic/vnic/vnic_wq.c |  245 
 lib/librte_pmd_enic/vnic/vnic_wq.h |  283 +
 lib/librte_pmd_enic/vnic/wq_enet_desc.h|  114 ++
 mk/rte.app.mk  |4 +
 35 files changed, 7657 insertions(+)
 create mode 100644 lib/librte_pmd_enic/LICENSE
 create mode 100644 lib/librte_pmd_enic/Makefile
 create mode 100644 lib/librte_pmd_enic/enic.h
 create mode 100644 lib/librte_pmd_enic/enic_clsf.c
 create mode 100644 lib/librte_pmd_enic/enic_compat.h
 create mode 100644 lib/librte_pmd_enic/enic_etherdev.c
 create mode 100644 lib/librte_pmd_enic/enic_main.c
 create mode 100644 lib/librte_pmd_enic/enic_res.c
 create mode 100644 lib/librte_pmd_enic/enic_res.h
 create mode 100644 lib/librte_pmd_enic/vnic/cq_desc.h
 create mode 100644 lib/librte_pmd_enic/vnic/cq_enet_desc.h
 create mode 100644 lib/librte_pmd_enic/vnic/rq_enet_desc.h
 create mode 100644 lib/librte_pmd_enic/vnic/vnic_cq.c
 create mode 100644 lib/librte_pmd_enic/vnic/vnic_cq.h
 create mode 100644 lib/librte_pmd_enic/vnic/vnic_dev.c
 create mode 100644 lib/librte_pmd_enic/vnic/vnic_dev.h
 create mode 100644 lib/librte_pmd_enic/vnic/vnic_devcmd.h
 create mode 100644 lib/librte_pmd_enic/vnic/vnic_enet.h
 create mode 100644 lib/librte_pmd_enic/vnic/vnic_intr.c
 create mode 100644 lib/librte_pmd_enic/vnic/vnic_intr.h
 create mode 100644 lib/librte_pmd_enic/vnic/vnic_nic.h
 create mode 100644 lib/librte_pmd_enic/vnic/vnic_resource.h
 create mode 100644 lib/librte_pmd_enic/vnic/vnic_rq.c
 create mode 100644 lib/librte_pmd_enic/vnic/vnic_rq.h
 create mode 100644 lib/librte_pmd_enic/vnic/vnic_rss.c
 create mode 100644 lib/librte_pmd_enic/vnic/vnic_rss.h
 create mode 100644 lib/librte_pmd_enic/vnic/vnic_stats.h
 create mode 100644 lib/librte_pmd_enic/vnic/vnic_wq.c
 create mode 100644 lib/librte_pmd_enic/vnic/vnic_wq.h
 create mode 100644 lib/librte_pmd_enic/vnic/wq_enet_desc.h

-- 
1.9.1



[dpdk-dev] [PATCH v2 0/6] Cisco Systems Inc. VIC Ethernet PMD - ENIC PMD

2014-11-21 Thread David Marchand
On Fri, Nov 21, 2014 at 10:58 AM, Sujith Sankar (ssujith)  wrote:

>  Hi David,
> Since the kernel version is less than 3.6.0, support for VFIO is not
> there.
> Could you please turn off VFIO in config/common_linuxapp and try with
> IGB_UIO?
>

Arf, stupid me, I thought I had it disabled ...

Sorry for the noise.


-- 
David Marchand


[dpdk-dev] [PATCH v2 0/6] Cisco Systems Inc. VIC Ethernet PMD - ENIC PMD

2014-11-21 Thread David Marchand
Hello Sujith,

I just tried your patchset on my system but I can't get it to build :

$ make config T=x86_64-native-linuxapp-gcc && make
Configuration done
== Build scripts
== Build scripts/testhost
  HOSTCC testhost.o

[snip]

== Build lib/librte_pmd_enic
  CC enic_main.o
../lib/librte_pmd_enic/enic_main.c:43:24: fatal error: linux/vfio.h: No
such file or directory
compilation terminated.
make[3]: *** [enic_main.o] Error 1
make[2]: *** [librte_pmd_enic] Error 2
make[1]: *** [lib] Error 2
make: *** [all] Error 2

Looks like there is a problem with detecting vfio support and/or including
the right header.

$ uname -a
Linux ... 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux


Regards,
-- 
David Marchand


[dpdk-dev] [PATCH v2 0/6] Cisco Systems Inc. VIC Ethernet PMD - ENIC PMD

2014-11-21 Thread Sujith Sankar (ssujith)
Hi David,
Since the kernel version is less than 3.6.0, support for VFIO is not there.
Could you please turn off VFIO in config/common_linuxapp and try with IGB_UIO?

Thanks,
-Sujith

From: David Marchand mailto:david.march...@6wind.com>>
Date: Friday, 21 November 2014 3:22 pm
To: "Sujith Sankar (ssujith)" mailto:ssujith at 
cisco.com>>
Cc: "dev at dpdk.org<mailto:dev at dpdk.org>" mailto:dev at 
dpdk.org>>
Subject: Re: [dpdk-dev] [PATCH v2 0/6] Cisco Systems Inc. VIC Ethernet PMD - 
ENIC PMD

Hello Sujith,

I just tried your patchset on my system but I can't get it to build :

$ make config T=x86_64-native-linuxapp-gcc && make
Configuration done
== Build scripts
== Build scripts/testhost
  HOSTCC testhost.o

[snip]

== Build lib/librte_pmd_enic
  CC enic_main.o
../lib/librte_pmd_enic/enic_main.c:43:24: fatal error: linux/vfio.h: No 
such file or directory
compilation terminated.
make[3]: *** [enic_main.o] Error 1
make[2]: *** [librte_pmd_enic] Error 2
make[1]: *** [lib] Error 2
make: *** [all] Error 2

Looks like there is a problem with detecting vfio support and/or including the 
right header.

$ uname -a
Linux ... 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux


Regards,
--
David Marchand