[dpdk-dev] [PATCH] net/i40e: fix VF reset stats crash

2018-01-11 Thread David C Harton
Calling i40evf_dev_xstats_reset can sometimes crash. Fixed issue by adding a pstats NULL check. Fixes: da61cd0849766 ("i40evf: add extended stats") 8210e9e0d805e ("net/i40e: fix clear xstats bug in VF") Cc: wei.zh...@intel.com Signed-off-by: David C Harton -

[dpdk-dev] [PATCH v2] net/i40e: fix VF reset stats crash

2018-01-11 Thread David C Harton
Calling i40evf_dev_xstats_reset can sometimes crash. Fixed issue by adding a pstats NULL check. Fixes: 8210e9e0d805e ("net/i40e: fix clear xstats bug in VF") Cc: wei.zh...@intel.com Signed-off-by: David C Harton --- v2: * Fixed fixes line in commit message. driver

[dpdk-dev] [PATCH v3] net/i40e: fix VF reset stats crash

2018-01-11 Thread David C Harton
Calling i40evf_dev_xstats_reset can sometimes crash. Fixed issue by checking return code before using pstats. Fixes: 8210e9e0d805e ("net/i40e: fix clear xstats bug in VF") Cc: wei.zh...@intel.com Signed-off-by: David C Harton --- v2: * Fixed fixes line in commit message. v3:

[dpdk-dev] [PATCH v2] ixgbe: eliminate duplicate filterlist symbols

2017-09-14 Thread David C Harton
From: David Harton Some compilers generate warnings for duplicate symbols for the set of filter lists current defined in ixgbe_ethdev.h. This commits moves the defintion and declaration to the source file that actually uses them and provides a function to initialize the values akin to its flush f

[dpdk-dev] [PATCH v3] ixgbe: eliminate duplicate filterlist symbols

2017-09-14 Thread David C Harton
From: David Harton Some compilers generate warnings for duplicate symbols for the set of filter lists current defined in ixgbe_ethdev.h. This commits moves the definition and declaration to the source file that actually uses them and provides a function to initialize the values akin to its flush

[dpdk-dev] [PATCH v6] ethdev: add return code to rte_eth_stats_reset()

2017-09-20 Thread David C Harton
From: David Harton Some devices do not support reset of eth stats. An application may need to know not to clear shadow stats if the device cannot. rte_eth_stats_reset is updated to provide a return code to share whether the device supports reset or not. Signed-off-by: David Harton --- v6: *

[dpdk-dev] [PATCH] net/virtio: Fix crash in virtio_dev_free_mbufs

2018-02-03 Thread David C Harton
virtio_dev_free_mbufs was recently modified to free the virtqueues but failed to check whether the array was allocated. Added a check to ensure vqs was non-null. Fixes: bdb32afbb610 ("net/virtio: rationalize queue flushing") Cc: olivier.m...@6wind.com Signed-off-by: David C Harton --