summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-07-20version: 2.1.0-rc1v2.1.0-rc1Thomas Monjalon
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2015-07-20devargs: fix crash on failureStephen Hemminger
This problem was discovered when passing invalid PCI id to the blacklist API in devargs. Any failures in rte_devargs_add would cause a core dump because it would call rte_log() before the the EAL log environment was initialized. Rather than try and log just remove the messages and leave it up to the caller to check the return value. Most of the other failure possibilities are when malloc() fails, and if that happens any logging that used malloc() would also fail. This failure was not caught by the standalone tests to devargs because the tests are run after calling rte_eal_init (which is not how devargs is intended to be used). Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Olivier Matz <olivier.matz@6wind.com>
2015-07-20bonding: fix name and port validationStephen Hemminger
Cleanup the code in bonding that checks ports. * Use standard rte_eth_dev_is_valid_port * Change name of driver string to avoid variable namespace conflicts * Get rid of unnecessary string comparison stuff. A simple pointer check is enough here. * Get rid of unnecessary assignment of driver_name, it is already done by common code. * Don't generate unnecessary log messages on error. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Declan Doherty <declan.doherty@intel.com>
2015-07-20ethdev: export function to check port validityStephen Hemminger
The function rte_eth_dev_is_valid_port is good way to have all drivers using same function and solves several hotplug related bugs from drivers not checking attached flag. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2015-07-20eal/linux: change log severity levelsStephen Hemminger
Change the log level of startup messages. Anything that is just normal activity (like getting virtual areas) is changed to debug level. Anything that is a failure should be NOTICE or ERR severity. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2015-07-20eal/linux: handle signal on event readStephen Hemminger
The read for events in the interrupt thread may get interrupted by signals from application. Avoid generating stray log message. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2015-07-20i40e: fix registers access from big endian CPUZhe Tao
Signed-off-by: Zhe Tao <zhe.tao@intel.com> Acked-by: Chao Zhu <chaozhu@linux.vnet.ibm.com>
2015-07-20i40evf: fix RSS with less Rx queues than Tx queuesJingjing Wu
I40e VF driver uses the num_queue_pairs in vf structure to construct queue index look up table. When the nb_rx_queue is less than nb_tx_queue, num_queue_pairs is equal to nb_tx_queue. It will make the table use invalid queue index, then application cannot poll packets on these queues. This patch also moves the inline function i40e_align_floor from i40e_ethdev.c to i40e_ethdev.h. Test report: http://dpdk.org/ml/archives/dev/2015-July/021838.html Signed-off-by: Jingjing Wu <jingjing.wu@intel.com> Acked-by: Helin Zhang <helin.zhang@intel.com> Tested-by: Qian Xu <qian.q.xu@intel.com>
2015-07-20i40e: fix SCTP flow directorJingjing Wu
Due to the NIC's firmware update, the input set of sctp flow is changed to source IP, destination IP, source port, destination port and Verification-Tag. This patch adds the sport and dport in the programming packet of flow director. Signed-off-by: Jingjing Wu <jingjing.wu@intel.com> Tested-by: Marvin Liu <yong.liu@intel.com>
2015-07-20ethdev: add ports to SCTP flow directorJingjing Wu
Add sport and dport into the input set of sctp flow. Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
2015-07-19app/testpmd: fix port detaching with virtioBernard Iremonger
At this point the stop() and close() functions have already been called. The rte_eth_promiscuous_disable() function does not return on the VM. Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org>
2015-07-19virtio: free queue memory when closingBernard Iremonger
Add function virtio_free_queues() and call from virtio_dev_close() Use virtio_dev_rx_queue_release() and virtio_dev_tx_queue_release() Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org>
2015-07-19virtio: add queue releaseBernard Iremonger
Add functions virtio_dev_queue_release(), virtio_dev_rx_queue_release() and virtio_dev_tx_queue_release(). Use queue_release in virtio_dev_uninit(). Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
2015-07-19virtio: check virtqueue parameter when detachingBernard Iremonger
If vq is NULL, there is a segmentation fault. Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Changchun Ouyang <changchun.ouyang@intel.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org>
2015-07-19virtio: support port hotplugBernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the eth_dev_uninit_t() function for virtio pmd. Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org>
2015-07-19fm10k: support port hotplugMichael Qiu
Add hotplug support for fm10k. Signed-off-by: Michael Qiu <michael.qiu@intel.com> Acked-by: Jing Chen <jing.d.chen@intel.com>
2015-07-19fm10k: free queue memory when closingMichael Qiu
When close a port, lots of memory should be released, such as software rings, queues, etc. Signed-off-by: Michael Qiu <michael.qiu@intel.com>
2015-07-19i40e: free queue memory when closingBernard Iremonger
Add i40e_dev_free_queues() function and call it from close() functions. Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Helin Zhang <helin.zhang@intel.com>
2015-07-19i40e: check Rx queue parameter when resettingBernard Iremonger
There is a segmentation fault if rxq is NULL. Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Helin Zhang <helin.zhang@intel.com>
2015-07-19i40evf: clear queues when stoppingBernard Iremonger
Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Helin Zhang <helin.zhang@intel.com>
2015-07-19i40evf: clear command when error occursBernard Iremonger
_clear_cmd() was not being called in failure situations, resulting in the next command also failing. Fix several typos. Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Helin Zhang <helin.zhang@intel.com>
2015-07-19i40evf: increase messaging wait timeBernard Iremonger
Increase delay from 50 * 10 to 100 * 20 to avoid i40evf_read_pfmsg() failures. Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Helin Zhang <helin.zhang@intel.com>
2015-07-19i40e: free vmdq vsi when closingBernard Iremonger
Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Helin Zhang <helin.zhang@intel.com>
2015-07-19i40e: support port hotplugBernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the eth_dev_uninit functions for rte_i40e_pmd and rte_i40evf_pmd. Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Helin Zhang <helin.zhang@intel.com>
2015-07-19ixgbe: free queue memory when closingBernard Iremonger
Add ixgbe_dev_free_queues() function and call it from close() functions. Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2015-07-19ixgbe: support port hotplugBernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the eth_dev_uninit functions for rte_ixgbe_pmd and rte_ixgbevf_pmd. Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2015-07-19e1000: free queue memory when closingBernard Iremonger
Queues were freed in clear function called in stop function. Split clearing and freeing in separate functions to move queue freeing from stop to close function. Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Helin Zhang <helin.zhang@intel.com>
2015-07-19e1000: support port hotplugBernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the eth_dev_uninit functions for rte_em_pmd, rte_igb_pmd and rte_igbvf_pmd. Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Helin Zhang <helin.zhang@intel.com>
2015-07-19ethdev: free queue array when closingBernard Iremonger
Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Michael Qiu <michael.qiu@intel.com>
2015-07-19ethdev: fix doxygen internal commentsThomas Monjalon
The internal functions must be marked with the doxygen command @internal. The allocate and release_port functions are not restricted only to dummy drivers. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2015-07-19ethdev: refactor port releaseThomas Monjalon
Use DEV_DETACHED constant and deduplicate code in init. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2015-07-18pci: fix detach and uninit namingThomas Monjalon
There are close and detach functions in ethdev. To keep a consistent naming, PCI functions called by ethdev detach must be named "detach" instead of "close". Fix also comments which mix close and uninit names. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2015-07-18doc: rename ABI chapter to deprecationThomas Monjalon
This chapter is for ABI and API. That's why a renaming is required. Remove also the examples which are now in the referenced guidelines. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2015-07-18hash: fix build for non-x86 archPablo de Lara
Hash library uses optimized compare functions that use x86 intrinsics, therefore non-x86 systems could not build the library. In that case, the compare function is set to the generic memcmp. Fixes: 48a399119619 ("hash: replace with cuckoo hash implementation") Reported-by: Zhigang Lu <zlu@ezchip.com> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Acked-by: Zhigang Lu <zlu@ezchip.com>
2015-07-17examples/vhost: fix driver unregisteringOuyang Changchun
The following commit broke vhost sample when it runs in second time: 292959c71961acde0cda6e77e737bb0a4df1559c It should call api to unregister vhost driver when sample exit/quit, then the socket file will be removed(by calling unlink), and thus make vhost sample work correctly in the second time startup. Test report: http://dpdk.org/ml/archives/dev/2015-July/020896.html Fixes: 292959c71961 ("vhost: cleanup unix socket") Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com> Acked-by: Huawei Xie <huawei.xie@intel.com>
2015-07-17examples/vhost: fix comment and logOuyang Changchun
It fixes the wrong log info when failing to unregister vhost driver. Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com> Acked-by: Huawei Xie <huawei.xie@intel.com>
2015-07-17vhost: add log on socket bind failureOuyang Changchun
It adds more readable log info if a socket fails to bind to local socket file name. Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com> Acked-by: Huawei Xie <huawei.xie@intel.com>
2015-07-17app: replace dump_cfg by proc_infoMaryam Tahhan
proc_info displays statistics information including extended stats for given DPDK ports and dumps the memory information for DPDK. Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
2015-07-17ixgbe: account more Rx errorsMaryam Tahhan
ierrors only included a base set of error statistics, this patch adds additional error registers to ierrors. Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
2015-07-17ixgbe: add specific statsMaryam Tahhan
Add the NIC/HW specific stats that were removed from rte_ethdev.c to the extended stats in ixgbe. Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
2015-07-17ethdev: remove driver specific statsMaryam Tahhan
Remove non generic stats in rte_stats_strings and mark the relevant fields in struct rte_eth_stats as deprecated. Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
2015-07-17ethdev: expose generic and driver specific stats in xstatsMaryam Tahhan
Extend rte_eth_xstats_get to retrieve additional stats from the device driver as well the ethdev generic stats. Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
2015-07-17ixgbe: add xstatsMaryam Tahhan
Implement ixgbe_dev_xstats_reset and ixgbe_dev_xstats_get. Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
2015-07-17ixgbe: refactor stats register readsMaryam Tahhan
Move stats register reads to ixgbe_read_stats_registers() as it will be used by the functions to retrieve stats and extended stats. Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
2015-07-17sched: hide structure of port hierarchyStephen Hemminger
Right now the scheduler hierarchy is encoded as a bitfield that is visible as part of the ABI. This creates an barrier limiting future expansion of the hierarchy. As a transistional step. hide the actual layout of the hierarchy and mark the exposed structure as deprecated. This will allow for expansion in later release. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
2015-07-17sched: fix level of log messagesStephen Hemminger
The setup messages should be at DEBUG level since they are not important for normal operation of system. The messages about problems should be at NOTICE or ERR level. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
2015-07-17sched: remove tabs from log messagesStephen Hemminger
syslog does not like tabs in log messages; tab gets translated to #011 Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
2015-07-17sched: make RED optional at runtimeStephen Hemminger
Want to be able to build with RTE_SCHED_RED enabled but allow disabling RED on a per-queue basis at runtime. RED is disabled unless min/max thresholds set. Signed-off-by: Stephen Hemmminger <stephen@networkplumber.org> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
2015-07-17ixgbe: add access to specific device infoLiang-Min Larry Wang
add function to support ethtool ops: - get_reg_length - get_regs - get_eeprom_length - get_eeprom - set_eeprom Signed-off-by: Liang-Min Larry Wang <liang-min.wang@intel.com> Acked-by: Andrew Harvey <agh@cisco.com> Acked-by: David Harton <dharton@cisco.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2015-07-16igb: add access to specific device infoLiang-Min Larry Wang
add function to support ethtool ops: - get_reg_length - get_regs - get_eeprom_length - get_eeprom - set_eeprom Signed-off-by: Liang-Min Larry Wang <liang-min.wang@intel.com> Acked-by: Andrew Harvey <agh@cisco.com> Acked-by: David Harton <dharton@cisco.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>