[PATCH] net/vmxnet3: Fix vmxnet3 NULL pointer deref after configuration failure

2024-10-26 Thread Roger B Melton
in eth_vmxnet3_dev_init(), to prevent stop processing. Signed-off-by: Roger B Melton --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index 467fb61137..8d7f95a753 100644 --- a/driv

Re: [dpdk-dev] Retire x86 32 bit?

2018-04-17 Thread Roger B Melton
On 4/17/18 4:46 PM, Stephen Hemminger wrote: On Tue, 17 Apr 2018 13:01:14 -0700 Jim Murphy wrote: Still used in certain memory constrained environments. On Tue, Apr 17, 2018 at 11:39 AM, David Harton (dharton) wrote: It is used and tested in production and non-production environments. Re

Re: [dpdk-dev] [PATCH v2] net/e1000: correct VLAN tag byte order for i35x LB packets

2017-10-25 Thread Roger B. Melton
On 10/25/17 4:22 PM, Ferruh Yigit wrote: On 10/25/2017 1:16 PM, Bruce Richardson wrote: On Wed, Oct 25, 2017 at 11:11:08AM -0700, Ferruh Yigit wrote: On 10/23/2017 10:42 AM, Roger B. Melton wrote: On 10/20/17 3:04 PM, Ferruh Yigit wrote: On 10/12/2017 10:24 AM, Roger B Melton wrote: When

Re: [dpdk-dev] [PATCH v2] net/e1000: correct VLAN tag byte order for i35x LB packets

2017-10-23 Thread Roger B. Melton
On 10/20/17 3:04 PM, Ferruh Yigit wrote: On 10/12/2017 10:24 AM, Roger B Melton wrote: When copying VLAN tags from the RX descriptor to the vlan_tci field in the mbuf header, igb_rxtx.c:eth_igb_recv_pkts() and eth_igb_recv_scattered_pkts() both assume that the VLAN tag is always little endian

[dpdk-dev] [PATCH v2] net/e1000: correct VLAN tag byte order for i35x LB packets

2017-10-12 Thread Roger B Melton
tags in loopback packets for those devices are big endian. For i350, i354 and i350vf VLAN loopback packets, swap the tag when copying from the RX descriptor to the mbuf header. This will ensure that the mbuf vlan_tci is always little endian. Signed-off-by: Roger B Melton --- v2: * PF: Limit swap

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/i40e: fix unexpected mbuf free in vPMD

2017-10-12 Thread Roger B. Melton
On 10/10/17 7:47 AM, Roger B. Melton wrote: On 10/10/17 7:39 AM, Bruce Richardson wrote: On Tue, Oct 10, 2017 at 07:05:33AM -0400, Roger B. Melton wrote: Hi Bruce, I can.  It will take a day or 2 to get the results. Regards, Roger Thanks. Keep us posted. We want to ensure we have the best

Re: [dpdk-dev] [PATCH] net/e1000: i350 VLAN tags in loopback packets are big endian

2017-10-11 Thread Roger B. Melton
Hi Wenzhou, On 10/10/17 9:32 PM, Lu, Wenzhuo wrote: Hi Roger, -Original Message- From: Roger B Melton [mailto:rmel...@cisco.com] Sent: Saturday, October 7, 2017 7:34 AM To: Lu, Wenzhuo Cc: dev@dpdk.org; Roger B Melton Subject: [PATCH] net/e1000: i350 VLAN tags in loopback packets

Re: [dpdk-dev] [PATCH] net/i40e: fix unexpected mbuf free in vPMD

2017-10-10 Thread Roger B. Melton
On 10/10/17 7:39 AM, Bruce Richardson wrote: On Tue, Oct 10, 2017 at 07:05:33AM -0400, Roger B. Melton wrote: Hi Bruce, I can.  It will take a day or 2 to get the results. Regards, Roger Thanks. Keep us posted. We want to ensure we have the best fix possible for the issue in this release

Re: [dpdk-dev] [PATCH] net/i40e: fix unexpected mbuf free in vPMD

2017-10-10 Thread Roger B. Melton
Hi Bruce, I can.  It will take a day or 2 to get the results. Regards, Roger On 10/10/17 4:48 AM, Bruce Richardson wrote: +Roger Melton On Tue, Oct 10, 2017 at 09:22:05AM -0400, Qi Zhang wrote: vPMD tx does not set sw_ring's mbuf to NULL after free it. So to prevent same mbuf be free again,

[dpdk-dev] [PATCH] net/e1000: i350 VLAN tags in loopback packets are big endian

2017-10-06 Thread Roger B Melton
loopback packets are big endian. For i350 VLAN loopback packets, swap the tag when copying from the RX descriptor to the mbuf header. This will ensure that the mbuf vlan_tci is always little endian. Signed-off-by: Roger B Melton --- drivers/net/e1000/igb_rxtx.c | 56

[dpdk-dev] [PATCH v2] net/i40e: improve i40evf buffer cleanup in Tx vector mode

2017-10-06 Thread Roger B Melton
Signed-off-by: Roger B Melton --- v2 - Same content as v1, but properly signed-off. i40evf tx vector logic frees mbufs, but it does not remove the mbufs from software rings which leads to double frees. This change corrects that oversight. I've validated this fix within our applic

Re: [dpdk-dev] [PATCH] net/i40e: Improve i40evf buffer cleanup in tx vector mode

2017-10-06 Thread Roger B. Melton
On 10/6/17 9:51 AM, Bruce Richardson wrote: On Fri, Oct 06, 2017 at 08:38:01AM -0400, Roger B. Melton wrote: On 10/6/17 4:54 AM, Bruce Richardson wrote: On Thu, Oct 05, 2017 at 03:11:11PM -0400, Roger B Melton wrote: --- i40evf tx vector logic frees mbufs, but it does not remove the mbufs

Re: [dpdk-dev] [PATCH] net/i40e: Improve i40evf buffer cleanup in tx vector mode

2017-10-06 Thread Roger B. Melton
On 10/6/17 4:54 AM, Bruce Richardson wrote: On Thu, Oct 05, 2017 at 03:11:11PM -0400, Roger B Melton wrote: --- i40evf tx vector logic frees mbufs, but it does not remove the mbufs from software rings which leads to double frees. This change corrects that oversight. We've validated

Re: [dpdk-dev] [PATCH] net/i40e: Improve i40evf buffer cleanup in tx vector mode

2017-10-05 Thread Roger B. Melton
Hi Everyone, As soon as I submitted the patch, I realized I neglected to signoff.  What's the recommended procedure, resubmit the original signed off, or bump to v1? Thanks, Roger On 10/5/17 3:11 PM, Roger B Melton wrote: --- i40evf tx vector logic frees mbufs, but it does not remov

[dpdk-dev] [PATCH] net/i40e: Improve i40evf buffer cleanup in tx vector mode

2017-10-05 Thread Roger B Melton
--- i40evf tx vector logic frees mbufs, but it does not remove the mbufs from software rings which leads to double frees. This change corrects that oversight. We've validated this fix within our application. drivers/net/i40e/i40e_rxtx_vec_common.h | 4 1 file changed, 4 insertions(+) di

Re: [dpdk-dev] Byte order of vlan_tci of rte_mbuf is different on different source

2017-08-24 Thread Roger B Melton
Hi folks, Resurrecting this old thread.  I ran across this issue recently in DPDK 17.05, and it's also present in17.08.  It appears no fix was committed.  I'm working on a solution, but if anyone has a fix in flight please let me know. Regards, Roger On 4/29/16 3:29 AM, Olivier Matz wrote:

Re: [dpdk-dev] 2nd try: problem with ixgbe_dev_link_update() for multi-speed fiber [was] Re: [PATCH v4] net/ixgbe: ensure link status is updated

2017-06-02 Thread Roger B. Melton
Hi Wei, Have you had a chance to look at the debug output yet? Is there any additional data you need? Regards, Roger On 5/24/17 2:38 PM, Roger B. Melton wrote: Hi Wei, I am using ixgbe: 00:02.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev

Re: [dpdk-dev] 2nd try: problem with ixgbe_dev_link_update() for multi-speed fiber [was] Re: [PATCH v4] net/ixgbe: ensure link status is updated

2017-05-24 Thread Roger B. Melton
18:15:39.887 (debug): PMD: ixgbe_check_mac_link_generic(): ixgbe_check_mac_link_generic 2017/05/24 18:15:39.887 (debug): rmeltonDBG posix_pmd_oper_state_get_by_id:End rte_eth_link_get_nowait() On 5/24/17 10:40 AM, Roger B. Melton wrote: Hi Wei, Thanks for getting back to me. I'm

Re: [dpdk-dev] 2nd try: problem with ixgbe_dev_link_update() for multi-speed fiber [was] Re: [PATCH v4] net/ixgbe: ensure link status is updated

2017-05-24 Thread Roger B. Melton
hould set --log-level=8 Regards -Wei -Original Message- From: Dai, Wei Sent: Tuesday, May 23, 2017 3:24 PM To: 'Roger B. Melton' ; Laurent Hardy ; dev@dpdk.org Cc: Yigit, Ferruh ; Zhang, Helin ; Ananyev, Konstantin ; olivier.m...@6wind.com Subject: RE: 2nd try: problem with ix

[dpdk-dev] 2nd try: problem with ixgbe_dev_link_update() for multi-speed fiber [was] Re: [PATCH v4] net/ixgbe: ensure link status is updated

2017-05-22 Thread Roger B. Melton
Hi Laurent/Wei, Any thoughts? Regards, Roger On 5/17/17 9:31 AM, Roger B Melton wrote: Hi Laurent/Wei, As I continue to integrate DPDK 17.05 into my application, I have hit another issue with this patch while testing in a VM with multispeed fiber ixgbe PCI passthrough. My application

Re: [dpdk-dev] [PATCH v4] net/ixgbe: ensure link status is updated

2017-05-17 Thread Roger B Melton
Hi Laurent/Wei, As I continue to integrate DPDK 17.05 into my application, I have hit another issue with this patch while testing in a VM with multispeed fiber ixgbe PCI passthrough. My application periodically invokes rte_eth_link_get_nowait() to detect link state changes. If the link is d

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/ixgbe: fix calling null function of VF

2017-05-10 Thread Roger B Melton
: hw->mac.ops.get_media-type() of ixgbe VF is NULL and should not be called directly. It had better be replaced by calling ixgbe_get_media_type( ) to avoid crash. Fixes: c12d22f65b13 ("net/ixgbe: ensure link status is updated") Cc: sta...@dpdk.org Signed-off-by: Wei Dai Tested-by R

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/ixgbe: fix calling null function of VF

2017-05-10 Thread Roger B. Melton
On 5/10/17 5:50 AM, Ferruh Yigit wrote: On 5/10/2017 8:00 AM, Wei Dai wrote: hw->mac.ops.get_media-type() of ixgbe VF is NULL and should not be called directly. It had better be replaced by calling ixgbe_get_media_type( ) to avoid crash. Fixes: c12d22f65b13 ("net/ixgbe: ensure link status is

Re: [dpdk-dev] bug in net/ixgbe/ixgbe_ethdev.c:ixgbe_dev_link_update beginning in 17.05-rc3?

2017-05-10 Thread Roger B. Melton
Thanks -Roger On 5/10/17 4:20 AM, Dai, Wei wrote: Yes, it is a bug. The hw->mac.ops.get_media_type of ixgbe VF is NULL. I have just submitted a patch to fix it. http://dpdk.org/dev/patchwork/patch/24188/ -Original Message- From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Roge

[dpdk-dev] bug in net/ixgbe/ixgbe_ethdev.c:ixgbe_dev_link_update beginning in 17.05-rc3?

2017-05-09 Thread Roger B Melton
t's the proper fix? Regards, Roger -- ________ |Roger B. Melton| | Cisco Systems | |CPP Software :|::|: 7100 Kit Creek Rd | |+1.919.476.2332 phone:|||: :|||:RTP, NC 27709-4987 | |+1.919.392.

Re: [dpdk-dev] [PATCH v6 0/5] Extended xstats API in ethdev library to allow grouping of stats

2017-04-25 Thread Roger B Melton
On 4/24/17 11:49 AM, Mcnamara, John wrote: -Original Message- From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Thomas Monjalon Sent: Monday, April 24, 2017 1:41 PM To: Kozak, KubaX Cc: dev@dpdk.org; Olivier Matz ; Van Haaren, Harry ; Jain, Deepak K ; Piasecki, JacekX Subject: Re: [d

[dpdk-dev] [PATCH v2] eal: fix compile error for old glibc caused by pthread_setname_np()

2015-11-25 Thread Roger B. Melton
On 11/25/15 9:03 AM, Thomas Monjalon wrote: > 2015-11-25 08:51, Roger B. Melton: >> Have you thought about a way to set thread name when glibc < 2.12. I >> also ran into the problem recently and played around with prctl() >> (Linux) to set thread (process) name. e.g

[dpdk-dev] [PATCH v2] eal: fix compile error for old glibc caused by pthread_setname_np()

2015-11-25 Thread Roger B. Melton
> +/** > + * Set thread names. > + * > + * Macro to wrap `pthread_setname_np()` with a glibc version check. > + * Only glibc >= 2.12 supports this feature. > + * > + * This macro only used for Linux, BSD does direct libc call. > + * BSD libc version of function is `pthread_set_name_np()`. > + */

[dpdk-dev] Making rte_eal_pci_probe() in rte_eal_init() optional?

2015-11-21 Thread Roger B. Melton
David/Thomas, in-line -Roger On 11/18/15 5:13 PM, Roger B. Melton wrote: > Hi Thomas, in-line -Roger > > On 11/17/15 10:46 AM, Thomas Monjalon wrote: >> 2015-11-17 08:56, Roger B. Melton: >>> Hi David, in-line -Roger >>> >>> On 11/16/15 4:46

[dpdk-dev] Making rte_eal_pci_probe() in rte_eal_init() optional?

2015-11-18 Thread Roger B. Melton
Hi Thomas, in-line -Roger On 11/17/15 10:46 AM, Thomas Monjalon wrote: > 2015-11-17 08:56, Roger B. Melton: >> Hi David, in-line -Roger >> >> On 11/16/15 4:46 AM, David Marchand wrote: >>> Hello Roger, >>> >>> On Sun, Nov 15, 2015 at 3:45 PM,

[dpdk-dev] Making rte_eal_pci_probe() in rte_eal_init() optional?

2015-11-17 Thread Roger B. Melton
Hi David, in-line -Roger On 11/16/15 4:46 AM, David Marchand wrote: > Hello Roger, > > On Sun, Nov 15, 2015 at 3:45 PM, Roger B. Melton <mailto:rmelton at cisco.com>> wrote: > > I like the "-b all" and "-w none" idea, but I think it might be

[dpdk-dev] Making rte_eal_pci_probe() in rte_eal_init() optional?

2015-11-15 Thread Roger B. Melton
t be simpler to have an option to disable the rte_eal_init() time the probe. Would that address the issue with VFIO, prevent automatically attaching to devices while permitting on demand attach? Thanks again. Regards, -Roger On 11/14/15 12:51 PM, David Marchand wrote: > Hello Roger, >

[dpdk-dev] Making rte_eal_pci_probe() in rte_eal_init() optional?

2015-11-14 Thread Roger B. Melton
provan > dprovan at bivio.net > > -Original Message- > From: David Marchand [mailto:david.marchand at 6wind.com] > Sent: Friday, November 13, 2015 12:50 AM > To: Roger B Melton > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] Making rte_eal_pci_probe() in rte_eal_init() o

[dpdk-dev] Making rte_eal_pci_probe() in rte_eal_init() optional?

2015-11-13 Thread Roger B. Melton
Hi David, On 11/13/15 3:49 AM, David Marchand wrote: > Hello Roger, > > On Thu, Nov 12, 2015 at 11:43 PM, Roger B Melton <mailto:rmelton at cisco.com>> wrote: > > Hi folks, > > With the addition of hot plug support we have been migrating away > fr

[dpdk-dev] Making rte_eal_pci_probe() in rte_eal_init() optional?

2015-11-12 Thread Roger B Melton
Hi folks, With the addition of hot plug support we have been migrating away from device discovery and attach at initialization time to a model where it is controlled from a separate process. The separate process manages the binding of devices to UIO and instructs the DPDK process when to atta

[dpdk-dev] [PATCH 2/2] igb: fix VF statistic wraparound handling macro

2015-10-14 Thread Roger B. Melton
On 10/12/15 12:45 PM, Harry van Haaren wrote: > Fix a misinterpreatation of VF statistic macro in e1000/igb. > > Signed-off-by: Harry van Haaren Acked-by: Roger Melton

[dpdk-dev] [PATCH 1/2] ixgbe: fix VF statistic wraparound handling macro

2015-10-14 Thread Roger B. Melton
On 10/12/15 12:45 PM, Harry van Haaren wrote: > Fix a misinterpretation of VF stats in ixgbe > > Signed-off-by: Harry van Haaren Acked-by: Roger Melton

[dpdk-dev] [PATCH 2/2] igb: fix VF statistic wraparound handling macro

2015-10-13 Thread Roger B. Melton
test;\ > } > > - > #define IGB_FC_PAUSE_TIME 0x0680 > #define IGB_LINK_UPDATE_CHECK_TIMEOUT 90 /* 9s */ > #define IGB_LINK_UPDATE_CHECK_INTERVAL 100 /* ms */ -- ____ |Roge

[dpdk-dev] [PATCH 1/2] ixgbe: fix VF statistic wraparound handling macro

2015-10-13 Thread Roger B. Melton
\ > uint32_t latest = IXGBE_READ_REG(hw, reg); \ > - cur += latest - last; \ > + cur += (latest-last) & UINT_MAX;\ > last = latest; \ > } >

[dpdk-dev] [PATCH 1/2] ixgbe: fix VF statistic wraparound handling macro

2015-10-13 Thread Roger B. Melton
the calculation itself. > > So the correct way to compute this would be "cur += (latest - last) & > UINT_MAX". Also the mask approach should be faster as it avoids any > conditional jumps. > > - Alex > . > -- __

[dpdk-dev] [PATCH 2/2] igb: fix VF statistic wraparound handling macro

2015-10-12 Thread Roger B. Melton
cur += latest - last; \ > + } else { \ > + cur += (UINT_MAX - last) + latest;\ > + } \ > last = latest;\ > } > -- ___

[dpdk-dev] [PATCH 1/2] ixgbe: fix VF statistic wraparound handling macro

2015-10-12 Thread Roger B. Melton
else {\ > + cur += (UINT_MAX - last) + latest; \ > + } \ > last = latest; \ >

[dpdk-dev] [PATCH 4/4] ethdev: check support for rx_queue_count and descriptor_done fns

2015-06-12 Thread Roger B. Melton
t; return -ENODEV; > } > - RTE_ETH_FPTR_OR_ERR_RET(*dev->dev_ops->rx_descriptor_done, -ENOTSUP); > #endif > + RTE_ETH_FPTR_OR_ERR_RET(*dev->dev_ops->rx_descriptor_done, -ENOTSUP); > > return (*dev->dev_ops->rx_descriptor_done)( \ >