* [PATCH] enic: add support for enic in nic_uio driver for FreeBSD @ 2015-05-07 3:49 Sujith Sankar [not found] ` <1430970549-14965-1-git-send-email-ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Sujith Sankar @ 2015-05-07 3:49 UTC (permalink / raw) To: dev-VfR2kkLFssw This patch adds support for enic in the nic_uio driver so that enic could be used on FreeBSD. Signed-off-by: Sujith Sankar <ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org> --- lib/librte_eal/bsdapp/nic_uio/nic_uio.c | 1 + lib/librte_eal/common/include/rte_pci_dev_ids.h | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/lib/librte_eal/bsdapp/nic_uio/nic_uio.c b/lib/librte_eal/bsdapp/nic_uio/nic_uio.c index 5ae8560..e649e32 100644 --- a/lib/librte_eal/bsdapp/nic_uio/nic_uio.c +++ b/lib/librte_eal/bsdapp/nic_uio/nic_uio.c @@ -113,6 +113,7 @@ struct pci_bdf { #define RTE_PCI_DEV_ID_DECL_I40EVF(vend, dev) {vend, dev}, #define RTE_PCI_DEV_ID_DECL_VIRTIO(vend, dev) {vend, dev}, #define RTE_PCI_DEV_ID_DECL_VMXNET3(vend, dev) {vend, dev}, +#define RTE_PCI_DEV_ID_DECL_ENIC(vend, dev) {vend, dev}, const struct device devices[] = { #include <rte_pci_dev_ids.h> diff --git a/lib/librte_eal/common/include/rte_pci_dev_ids.h b/lib/librte_eal/common/include/rte_pci_dev_ids.h index 21d2eed..5d1b285 100644 --- a/lib/librte_eal/common/include/rte_pci_dev_ids.h +++ b/lib/librte_eal/common/include/rte_pci_dev_ids.h @@ -140,6 +140,10 @@ #define RTE_PCI_DEV_ID_DECL_FM10KVF(vend, dev) #endif +#ifndef RTE_PCI_DEV_ID_DECL_ENIC +#define RTE_PCI_DEV_ID_DECL_ENIC(vend, dev) +#endif + #ifndef PCI_VENDOR_ID_INTEL /** Vendor ID used by Intel devices */ #define PCI_VENDOR_ID_INTEL 0x8086 @@ -155,6 +159,11 @@ #define PCI_VENDOR_ID_VMWARE 0x15AD #endif +#ifndef PCI_VENDOR_ID_CISCO +/** Vendor ID used by Cisco VIC devices */ +#define PCI_VENDOR_ID_CISCO 0x1137 +#endif + /******************** Physical EM devices from e1000_hw.h ********************/ #define E1000_DEV_ID_82542 0x1000 @@ -548,6 +557,14 @@ RTE_PCI_DEV_ID_DECL_VMXNET3(PCI_VENDOR_ID_VMWARE, VMWARE_DEV_ID_VMXNET3) RTE_PCI_DEV_ID_DECL_FM10KVF(PCI_VENDOR_ID_INTEL, FM10K_DEV_ID_VF) +/****************** Cisco VIC devices ******************/ + +#define PCI_DEVICE_ID_CISCO_VIC_ENET 0x0043 /* ethernet vnic */ +#define PCI_DEVICE_ID_CISCO_VIC_ENET_VF 0x0071 /* enet SRIOV VF */ + +RTE_PCI_DEV_ID_DECL_ENIC(PCI_VENDOR_ID_CISCO, PCI_DEVICE_ID_CISCO_VIC_ENET) +RTE_PCI_DEV_ID_DECL_ENIC(PCI_VENDOR_ID_CISCO, PCI_DEVICE_ID_CISCO_VIC_ENET_VF) + /* * Undef all RTE_PCI_DEV_ID_DECL_* here. */ -- 1.9.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
[parent not found: <1430970549-14965-1-git-send-email-ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] enic: add support for enic in nic_uio driver for FreeBSD [not found] ` <1430970549-14965-1-git-send-email-ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org> @ 2015-05-07 9:23 ` Bruce Richardson 2015-05-07 10:57 ` David Marchand 0 siblings, 1 reply; 4+ messages in thread From: Bruce Richardson @ 2015-05-07 9:23 UTC (permalink / raw) To: Sujith Sankar; +Cc: dev-VfR2kkLFssw On Thu, May 07, 2015 at 09:19:09AM +0530, Sujith Sankar wrote: > This patch adds support for enic in the nic_uio driver so that enic could be used on FreeBSD. > > Signed-off-by: Sujith Sankar <ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org> Acked-by: Bruce Richardson <bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > --- > lib/librte_eal/bsdapp/nic_uio/nic_uio.c | 1 + > lib/librte_eal/common/include/rte_pci_dev_ids.h | 17 +++++++++++++++++ > 2 files changed, 18 insertions(+) > > diff --git a/lib/librte_eal/bsdapp/nic_uio/nic_uio.c b/lib/librte_eal/bsdapp/nic_uio/nic_uio.c > index 5ae8560..e649e32 100644 > --- a/lib/librte_eal/bsdapp/nic_uio/nic_uio.c > +++ b/lib/librte_eal/bsdapp/nic_uio/nic_uio.c > @@ -113,6 +113,7 @@ struct pci_bdf { > #define RTE_PCI_DEV_ID_DECL_I40EVF(vend, dev) {vend, dev}, > #define RTE_PCI_DEV_ID_DECL_VIRTIO(vend, dev) {vend, dev}, > #define RTE_PCI_DEV_ID_DECL_VMXNET3(vend, dev) {vend, dev}, > +#define RTE_PCI_DEV_ID_DECL_ENIC(vend, dev) {vend, dev}, > > const struct device devices[] = { > #include <rte_pci_dev_ids.h> > diff --git a/lib/librte_eal/common/include/rte_pci_dev_ids.h b/lib/librte_eal/common/include/rte_pci_dev_ids.h > index 21d2eed..5d1b285 100644 > --- a/lib/librte_eal/common/include/rte_pci_dev_ids.h > +++ b/lib/librte_eal/common/include/rte_pci_dev_ids.h > @@ -140,6 +140,10 @@ > #define RTE_PCI_DEV_ID_DECL_FM10KVF(vend, dev) > #endif > > +#ifndef RTE_PCI_DEV_ID_DECL_ENIC > +#define RTE_PCI_DEV_ID_DECL_ENIC(vend, dev) > +#endif > + > #ifndef PCI_VENDOR_ID_INTEL > /** Vendor ID used by Intel devices */ > #define PCI_VENDOR_ID_INTEL 0x8086 > @@ -155,6 +159,11 @@ > #define PCI_VENDOR_ID_VMWARE 0x15AD > #endif > > +#ifndef PCI_VENDOR_ID_CISCO > +/** Vendor ID used by Cisco VIC devices */ > +#define PCI_VENDOR_ID_CISCO 0x1137 > +#endif > + > /******************** Physical EM devices from e1000_hw.h ********************/ > > #define E1000_DEV_ID_82542 0x1000 > @@ -548,6 +557,14 @@ RTE_PCI_DEV_ID_DECL_VMXNET3(PCI_VENDOR_ID_VMWARE, VMWARE_DEV_ID_VMXNET3) > > RTE_PCI_DEV_ID_DECL_FM10KVF(PCI_VENDOR_ID_INTEL, FM10K_DEV_ID_VF) > > +/****************** Cisco VIC devices ******************/ > + > +#define PCI_DEVICE_ID_CISCO_VIC_ENET 0x0043 /* ethernet vnic */ > +#define PCI_DEVICE_ID_CISCO_VIC_ENET_VF 0x0071 /* enet SRIOV VF */ > + > +RTE_PCI_DEV_ID_DECL_ENIC(PCI_VENDOR_ID_CISCO, PCI_DEVICE_ID_CISCO_VIC_ENET) > +RTE_PCI_DEV_ID_DECL_ENIC(PCI_VENDOR_ID_CISCO, PCI_DEVICE_ID_CISCO_VIC_ENET_VF) > + > /* > * Undef all RTE_PCI_DEV_ID_DECL_* here. > */ > -- > 1.9.1 > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] enic: add support for enic in nic_uio driver for FreeBSD 2015-05-07 9:23 ` Bruce Richardson @ 2015-05-07 10:57 ` David Marchand 2015-05-11 9:20 ` Thomas Monjalon 0 siblings, 1 reply; 4+ messages in thread From: David Marchand @ 2015-05-07 10:57 UTC (permalink / raw) To: Bruce Richardson; +Cc: dev-VfR2kkLFssw@public.gmane.org On Thu, May 7, 2015 at 11:23 AM, Bruce Richardson < bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> wrote: > On Thu, May 07, 2015 at 09:19:09AM +0530, Sujith Sankar wrote: > > This patch adds support for enic in the nic_uio driver so that enic > could be used on FreeBSD. > > > > Signed-off-by: Sujith Sankar <ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org> > > Acked-by: Bruce Richardson <bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > > Well this is not really bsd specific, as people who rely on rte_pci_dev_ids.h header to find devices that must be bound to igb_uio and consort, will also benefit from this fix. By the way, I am working on removing these device ids from the eal, since the pmds should be the only one that maintain their devices ids list. Will send some patches soon. Acked-by: David Marchand <david.marchand-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> -- David Marchand ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] enic: add support for enic in nic_uio driver for FreeBSD 2015-05-07 10:57 ` David Marchand @ 2015-05-11 9:20 ` Thomas Monjalon 0 siblings, 0 replies; 4+ messages in thread From: Thomas Monjalon @ 2015-05-11 9:20 UTC (permalink / raw) To: Sujith Sankar; +Cc: dev 2015-05-07 12:57, David Marchand: > On Thu, May 7, 2015 at 11:23 AM, Bruce Richardson wrote: > > On Thu, May 07, 2015 at 09:19:09AM +0530, Sujith Sankar wrote: > > > This patch adds support for enic in the nic_uio driver so that enic > > could be used on FreeBSD. > > > > > > Signed-off-by: Sujith Sankar <ssujith@cisco.com> > > > > Acked-by: Bruce Richardson <bruce.richardson@intel.com> > > Well this is not really bsd specific, as people who rely on > rte_pci_dev_ids.h header to find devices that must be bound to igb_uio and > consort, will also benefit from this fix. > By the way, I am working on removing these device ids from the eal, since > the pmds should be the only one that maintain their devices ids list. Agree > Will send some patches soon. > > Acked-by: David Marchand <david.marchand@6wind.com> Applied, thanks ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-05-11 9:20 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-05-07 3:49 [PATCH] enic: add support for enic in nic_uio driver for FreeBSD Sujith Sankar [not found] ` <1430970549-14965-1-git-send-email-ssujith-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org> 2015-05-07 9:23 ` Bruce Richardson 2015-05-07 10:57 ` David Marchand 2015-05-11 9:20 ` Thomas Monjalon
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).