[dpdk-dev] [RFC PATCH 1/6] librte_ether: add fields from rte_pci_driver to rte_eth_dev and rte_eth_dev_data.

2015-09-01 Thread Bruce Richardson
On Tue, Sep 01, 2015 at 11:38:31AM +, Iremonger, Bernard wrote: > Hi THomas, > > > > > > @@ -424,7 +425,10 @@ rte_eth_dev_socket_id(uint8_t port_id) { > > > if (!rte_eth_dev_is_valid_port(port_id)) > > > return -1; > > > - return rte_eth_devices[port_id].pci_dev->numa_node; > >

[dpdk-dev] [RFC PATCH 1/6] librte_ether: add fields from rte_pci_driver to rte_eth_dev and rte_eth_dev_data.

2015-09-01 Thread Richardson, Bruce
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Ananyev, Konstantin > Sent: Tuesday, September 1, 2015 1:37 PM > To: Iremonger, Bernard; Thomas Monjalon > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [RFC PATCH 1/6] librte_ethe

[dpdk-dev] [RFC PATCH 1/6] librte_ether: add fields from rte_pci_driver to rte_eth_dev and rte_eth_dev_data.

2015-09-01 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Iremonger, Bernard > Sent: Tuesday, September 01, 2015 12:39 PM > To: Thomas Monjalon > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [RFC PATCH 1/6] librte_ether: add fields from

[dpdk-dev] [RFC PATCH 1/6] librte_ether: add fields from rte_pci_driver to rte_eth_dev and rte_eth_dev_data.

2015-09-01 Thread Iremonger, Bernard
Hi THomas, > > @@ -424,7 +425,10 @@ rte_eth_dev_socket_id(uint8_t port_id) { > > if (!rte_eth_dev_is_valid_port(port_id)) > > return -1; > > - return rte_eth_devices[port_id].pci_dev->numa_node; > > + if (rte_eth_devices[port_id].dev_type == RTE_ETH_DEV_PCI) > > +

[dpdk-dev] [RFC PATCH 1/6] librte_ether: add fields from rte_pci_driver to rte_eth_dev and rte_eth_dev_data.

2015-08-31 Thread Thomas Monjalon
2015-08-27 16:40, Bernard Iremonger: > add dev_flags to rte_eth_dev, add macros for dev_flags. > add numa_node to rte_eth_dev_data. > use dev_type to distinguish between vdev's and pdev's. > remove unused RTE_ETH_DEV_MAX. > > Signed-off-by: Bernard Iremonger [...] > @@ -424,7 +425,10 @@

[dpdk-dev] [RFC PATCH 1/6] librte_ether: add fields from rte_pci_driver to rte_eth_dev and rte_eth_dev_data.

2015-08-27 Thread Bernard Iremonger
add dev_flags to rte_eth_dev, add macros for dev_flags. add numa_node to rte_eth_dev_data. use dev_type to distinguish between vdev's and pdev's. remove unused RTE_ETH_DEV_MAX. Signed-off-by: Bernard Iremonger --- lib/librte_ether/rte_ethdev.c | 19 +++