From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 648A7A318B for ; Fri, 18 Oct 2019 08:51:47 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 84DDD1BF61; Fri, 18 Oct 2019 08:51:46 +0200 (CEST) Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by dpdk.org (Postfix) with ESMTP id 97A9A1BEAD for ; Fri, 18 Oct 2019 08:51:45 +0200 (CEST) Received: by mail-wm1-f65.google.com with SMTP id m18so4927166wmc.1 for ; Thu, 17 Oct 2019 23:51:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eto1d3xoMqYTiTKeo90jKprD1SijjLAJoqsTYhdYCKQ=; b=nQcjev+DAZ6yxqruFyQdC+FP43+nZ70MiT0DIeuSfRxP8xkLTnaBkPfkwJMUZy1QuQ T+39ThUduxaIeE1RPYoB98ir57ztVsP3plrjAglwm3CLdGyxIFyv747ZldbpC4ZPC0ah BQCO3cTZyO1BYuY9Pt/xxtEyj7AxtcKNF0CuT90sVE4eSXGMm4/O/PAIEW9xhnmJ42Iw C9FONBexrZcSKnmhG6eRIv7wn/9pazXgwMTNMxotG6vtbBtF/mPTF3rLUCWNgEMNxnOV JzBNDJLJy2AxGCsZ2aXGqrPJE+0Rp6gG3KEdiXk2TlRAa3/b7cpJ43eq4CGeKMdxyw7W /l0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eto1d3xoMqYTiTKeo90jKprD1SijjLAJoqsTYhdYCKQ=; b=JlKJTyIIVOWxhsfoVVC0nSXXzzueU5HvWm9eIgviIcWVHX73Dh2QhM+1oa65BU0xas IIwWU/1G91E/JneJAu1odxe0AaVrOEozQY4JqaZdbDu4YQ68ctfhs9aKxfze4l/wn1oC szfFKUA1/6r+TzfRRhn/c9X/LXv9pfCAaZ4O/dPtFadA5oHXFZEOA7gxsjQEhxjfPLK1 wXfLXlq9lAsBEbp9P/4WSUEAjk2QJ/p2QtGSI/UKtrwZTrr28vdwBhQmSNRgw5zTX8pu gU3U56uR2Z9/Rq4hhWO5dtoA4+CzntdtIEZeqN0aiwvE1V+ZuolBrDO+bXX32T/JtxWF GJng== X-Gm-Message-State: APjAAAWbEYjg+HPjNnWgE83lf1cwheSR85qf7IHrflpA59GDJCj9ORwH IqWmJHXihrBm5fkX1adnM7YDhS9nacJ+z9wVme4= X-Google-Smtp-Source: APXvYqzN67JXp+AlTQ3oZYngz1iXQOwY1R+FonDGz0RFcyP8WmLpgxo/oFDmIR6c6Z/lJ6jE0qAjRYn4RcjNU89eP7U= X-Received: by 2002:a7b:c34a:: with SMTP id l10mr2710138wmj.110.1571381505043; Thu, 17 Oct 2019 23:51:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Georgios Katsikas Date: Fri, 18 Oct 2019 09:51:33 +0300 Message-ID: To: Asaf Penso Cc: "dev@dpdk.org" , Tom Barbette Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Testpmd parameter --enable-lro fails on Mellanox ConnectX5 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Asaf, Unfortunately, this extra parameter did not work., I got the same error as before. However, the result of the command "show port 0 rx_offload configuration" shows that TCP_LRO is "enabled" testpmd> show port 0 rx_offload configuration Rx Offloading Configuration of port 0 : Port : TCP_LRO Queue[ 0] : TCP_LRO Queue[ 1] : TCP_LRO Queue[ 2] : TCP_LRO Queue[ 3] : TCP_LRO Queue[ 4] : TCP_LRO Queue[ 5] : TCP_LRO Queue[ 6] : TCP_LRO Queue[ 7] : TCP_LRO Queue[ 8] : TCP_LRO Queue[ 9] : TCP_LRO Queue[10] : TCP_LRO Queue[11] : TCP_LRO Queue[12] : TCP_LRO Queue[13] : TCP_LRO Queue[14] : TCP_LRO Queue[15] : TCP_LRO Also, this feature is advertised by the offload capabilities of the device: testpmd> show port 0 rx_offload capabilities Rx Offloading Capabilities of port 0 : Per Queue : VLAN_STRIP IPV4_CKSUM UDP_CKSUM TCP_CKSUM TCP_LRO JUMBO_FRAME SCATTER TIMESTAMP KEEP_CRC Per Port : VLAN_FILTER Finally, activating LRO from the testpmd cmd results in the same error: testpmd> port config 0 rx_offload tcp_lro off testpmd> port config 0 rx_offload tcp_lro on testpmd> port start 0 Configuring Port 0 (socket 0) net_mlx5: Failed to create RQ using DevX net_mlx5: port 0 Rx queue 3 RQ creation failure net_mlx5: port 0 Rx queue allocation failed: Cannot allocate memory Fail to start port 0 Please stop the ports first Done Thanks for your feedback, Georgios On Thu, Oct 17, 2019 at 7:20 PM Asaf Penso wrote: > Hi, > > For the LRO feature to work in our pmd, please add dv_flow_en=1 as > following: > sudo ./testpmd -l 0-15 -w 0000:03:00.1,dv_flow_en=1 -v -- --txq=16 > --rxq=16 --nb-cores=15 --enable-lro -i > > Can you try this and let us know the result? > > Regards, > Asaf Penso > > > -----Original Message----- > > From: dev On Behalf Of Asaf Penso > > Sent: Tuesday, October 15, 2019 5:07 PM > > To: Georgios Katsikas ; dev@dpdk.org > > Cc: Tom Barbette > > Subject: Re: [dpdk-dev] Testpmd parameter --enable-lro fails on Mellanox > > ConnectX5 > > > > Hello Georgios, > > > > Thanks for your mail! > > We'll have a deeper look internally and will contact you about our > results. > > > > Regards, > > Asaf Penso > > > > > -----Original Message----- > > > From: dev On Behalf Of Georgios Katsikas > > > Sent: Tuesday, October 15, 2019 9:06 AM > > > To: dev@dpdk.org > > > Cc: Tom Barbette > > > Subject: [dpdk-dev] Testpmd parameter --enable-lro fails on Mellanox > > > ConnectX5 > > > > > > Hi all, > > > > > > In the latest features of the MLX5 PMD (i.e., DPDK 19.08), there is LRO > > > hardware support. > > > However, I cannot make it work with our dual port 100GbE Mellanox > > > ConnectX5 > > > (MT27800) card. > > > > > > Let me first describe the configuration of my testbed: First,I upgraded > > > OFED to the latest 4.7-1.0.0 with firmware version 16.26.1040 > > > (MT_0000000008) and installed the latest MFT (4.13) to enable DevX > > > according to the instructions here > > > > > > > > > dpdk.org%2Fguides%2Fnics%2Fmlx5.html&data=02%7C01%7Casafp%40 > > > > > mellanox.com%7C18e034c229d64911ff7b08d75135d96a%7Ca652971c7d2e4d9 > > > > > ba6a4d149256f461b%7C0%7C1%7C637067164036442822&sdata=PfV3NV > > > Nj3t0Bw3CiWxRIiVgats8Ma1b755qY4UIXXo0%3D&reserved=0>: > > > > > > mlxconfig -d set UCTX_EN=1 > > > > > > My OS is Ubuntu server 18.04 with kernel 4.15.0-65-generic. I also > tested > > > on another server with the same distro but more recent kernel (5.15), > > > without any luck. > > > > > > To test LRO, I simply use testpmd as follows: > > > > > > sudo ./testpmd -l 0-15 -w 0000:03:00.1 -v -- --txq=16 --rxq=16 > > > --nb-cores=15 --enable-lro -i > > > > > > Th output I get is: > > > > > > Configuring Port 0 (socket 0) > > > net_mlx5: Failed to create RQ using DevX > > > net_mlx5: port 0 Rx queue 8 RQ creation failure > > > net_mlx5: port 0 Rx queue allocation failed: Cannot allocate memory > > > Fail to start port 0 > > > Please stop the ports first > > > Done > > > > > > Reducing the number of queues does not solve the problem. > Specifically, if > > > I ask for 1 rX and 1 Tx queue, testpmd fails without an error from > the mlx > > > driver: > > > > > > Configuring Port 0 (socket 0) > > > Fail to start port 0 > > > Please stop the ports first > > > Done > > > > > > I would appreciate your help on this issue. > > > > > > Best regards, > > > Georgios >