[dpdk-dev] [PATCH v15 1/4] ethdev: add apis to support access device info

2015-07-13 Thread Liang-Min Larry Wang
add new apis: - rte_eth_dev_default_mac_addr_set - rte_eth_dev_get_reg_length - rte_eth_dev_get_reg_info - rte_eth_dev_get_eeprom_length - rte_eth_dev_get_eeprom - rte_eth_dev_set_eeprom to enable reading device parameters (mac-addr, register, eeprom) based upon ethtool alike data parameter specif

[dpdk-dev] [PATCH v15 1/4] ethdev: add apis to support access device info

2015-07-15 Thread Thomas Monjalon
2015-07-13 22:18, Liang-Min Larry Wang: > --- a/lib/librte_ether/Makefile > +++ b/lib/librte_ether/Makefile > @@ -51,6 +51,7 @@ SRCS-y += rte_ethdev.c > SYMLINK-y-include += rte_ether.h > SYMLINK-y-include += rte_ethdev.h > SYMLINK-y-include += rte_eth_ctrl.h > +SYMLINK-y-include += rte_eth_dev_

[dpdk-dev] [PATCH v15 1/4] ethdev: add apis to support access device info

2015-07-15 Thread Wang, Liang-min
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, July 15, 2015 2:16 AM > To: Wang, Liang-min > Cc: dev at dpdk.org; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v15 1/4] ethdev: add apis to support access > dev

[dpdk-dev] [PATCH v15 1/4] ethdev: add apis to support access device info

2015-07-15 Thread Thomas Monjalon
2015-07-15 10:07, Wang, Liang-min: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > Please precise offset from which point? > > Why offset is needed? > > > Is C always 0-base? > The offset is introduced because one of the review requesting to support > partial register read, > m

[dpdk-dev] [PATCH v15 1/4] ethdev: add apis to support access device info

2015-07-15 Thread Wang, Liang-min
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, July 15, 2015 6:27 AM > To: Wang, Liang-min > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v15 1/4] ethdev: add apis to support access > device info >

[dpdk-dev] [PATCH v15 1/4] ethdev: add apis to support access device info

2015-07-15 Thread Thomas Monjalon
2015-07-15 10:48, Wang, Liang-min: > > > > What means magic? Is it always a device id? > > > This field is the same as defined in kernel ethtool data structure. > > > > Not an excellent argument :) > > Actually you didn't answer. > > > I could not speak for other devices. For igb and ixgbe, it's

[dpdk-dev] [PATCH v15 1/4] ethdev: add apis to support access device info

2015-07-15 Thread Wang, Liang-min
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, July 15, 2015 7:21 AM > To: Wang, Liang-min > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v15 1/4] ethdev: add apis to support access > device info >

[dpdk-dev] [PATCH v15 1/4] ethdev: add apis to support access device info

2015-07-15 Thread Thomas Monjalon
2015-07-15 11:36, Wang, Liang-min: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > 2015-07-15 10:48, Wang, Liang-min: > > > > > > What means magic? Is it always a device id? > > > > > This field is the same as defined in kernel ethtool data structure. > > > > > > > > Not an excell