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 AB5DFA04C7; Wed, 16 Sep 2020 14:00:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F30EA1C28F; Wed, 16 Sep 2020 14:00:16 +0200 (CEST) Received: from us-smtp-delivery-181.mimecast.com (us-smtp-delivery-181.mimecast.com [63.128.21.181]) by dpdk.org (Postfix) with ESMTP id 396381C25A for ; Wed, 16 Sep 2020 14:00:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rbbn.com; s=mimecast20180816; t=1600257614; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=FXNeKAduq6hZFKyVS8qw0Fk5IvHH/oI8DX6wo9zA8tc=; b=i5BjXn3g3vqfsXE4OjipGACWBX40q8mN9yUwJre6QVndh/49VcBVGTdnlK/HAOdRiKydtn dvYDYpUkdXvltFFH29eEUKX8QplNUPebsGuJQy8tn29+QGgdwD6Wra2w41iNse0uj+Ia2F wDlw+DyoP0lifY+OkxAzKYSveYzEeSs= Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02lp2057.outbound.protection.outlook.com [104.47.37.57]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-158-e8B9bycBMYqujB29Wj6oag-1; Wed, 16 Sep 2020 08:00:07 -0400 Received: from DM6PR03MB4777.namprd03.prod.outlook.com (2603:10b6:5:18b::26) by DM6PR03MB4700.namprd03.prod.outlook.com (2603:10b6:5:18b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Wed, 16 Sep 2020 12:00:04 +0000 Received: from DM6PR03MB4777.namprd03.prod.outlook.com ([fe80::2196:3be:8122:7b98]) by DM6PR03MB4777.namprd03.prod.outlook.com ([fe80::2196:3be:8122:7b98%4]) with mapi id 15.20.3370.019; Wed, 16 Sep 2020 12:00:04 +0000 From: "Dey, Souvik" To: "dev@dpdk.org" CC: Stephen Hemminger , "longli@microsoft.com" , "Yigit, Ferruh" , "sthemmin@microsoft.com" Thread-Topic: Issue with net/netvsc pmd in 18.11.9 Thread-Index: AdaMHsW3cCwXsyP/Rn6fVvBLPu8+lw== Date: Wed, 16 Sep 2020 12:00:04 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [72.70.55.110] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d110daf6-d220-4904-25d7-08d85a380c54 x-ms-traffictypediagnostic: DM6PR03MB4700: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: SdYo1BKd7uy1A2cZZohszwusAlhUKqoaUHI6cAcosNNga3v28CAIRdOcHNdWLOHKmjB7NlA3npUrMbXEhlu/C98Hcfc9O3kkm+tw+RMhADOuf+NALHIkGqQbE3j0T4Tmdk4HyiIilg6MTIxHNNplfDSDzImIuuAftsIORLCF0a/aGEqx+ATcKhAb0cr640VX/5HkthACX/svoWN5KHikkIn7bssAjBT4CjCU03F7JrDW6fksGmMbhc/CmYj3VB8Nf2IbkFxR8FabbwSGciOeh1y/8I28swmfLuHGWLrcWv/o0Nwv4jS/82jXjWyIc76KuC4a07veq7kaBFORwibJ0tZohgOuZfprLRsF0kseQRBFbGWq3OMKaHOZHOqXFPHGYoqW6PzfqMHLyKyd5FqocA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR03MB4777.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(376002)(396003)(346002)(366004)(39860400002)(5660300002)(83380400001)(2906002)(33656002)(71200400001)(86362001)(966005)(9686003)(316002)(166002)(52536014)(66946007)(9326002)(66446008)(64756008)(6506007)(66476007)(186003)(55016002)(76116006)(26005)(478600001)(66556008)(8676002)(8936002)(6916009)(54906003)(4326008)(7696005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: zo0YFZccUmuWFfUlF/xNa+sxUmm4S1PRuvTBho/08jbS0YSpojp4R04zIqXvsyaR+NnEPBkZl5jMMt9SBjnxxo2Ivrs/rCc6VlvQfgp9QXiF2F548v5zrxvDn4JHsWSmjXtJaqy9PQQWQec+Ah3s7OJN3s/YHCHO/koaiZk0OYHwhr4nhUBGZPQosQjoWJSZJUWos62lgHLf3pBBYZfoaaJPtDRs7jDO1R7RLnYGb7FIln79TNl9nKu62VV+yZ3PwgzYeRwzbztVKc5OV8SGMFB3n+qthT6ujUw+KkhHvOpqIlwm9ibtsliteC10puEogHYSdeS25z2mmkyjV8RLdABK4MnApiyrg2OK3+RQRbAGZeg1SQjLPnsjitVIQNni/aXZdsWT+ysT5kcfgI5mYsIqi76E+5CpmKE1u0yFJAS0rPhhGN8k5bZW4zdNfyFDT/gtBQm5daw6DaP3uvCT2gd3JiDsSzC+NFcfFGWMygarxfboHHVpKWY1zYXADfo6YlMhQMguEFhpsIzfZRXxDVn73hNOU/LyIufs7dcjj9Sz+UTnR5EXhIx2x5zJIk5Jt8wEox0NwOiCefGj/nNhjb7mcawREBxIdc5zLkxnK2S1+uMJLd/fXXNmY/KWrWShqUS/MUqQNqdXRpp9vo5Gaw== x-ms-exchange-transport-forked: True x-mc-unique: e8B9bycBMYqujB29Wj6oag-1 x-originatororg: rbbn.com x-ms-exchange-crosstenant-authas: Internal x-ms-exchange-crosstenant-authsource: DM6PR03MB4777.namprd03.prod.outlook.com x-ms-exchange-crosstenant-network-message-id: d110daf6-d220-4904-25d7-08d85a380c54 x-ms-exchange-crosstenant-originalarrivaltime: 16 Sep 2020 12:00:04.4005 (UTC) x-ms-exchange-crosstenant-fromentityheader: Hosted x-ms-exchange-crosstenant-id: 29a671dc-ed7e-4a54-b1e5-8da1eb495dc3 x-ms-exchange-crosstenant-mailboxtype: HOSTED x-ms-exchange-crosstenant-userprincipalname: 3ViMdiyveS90SHpt6rn0KM1h4d9E4RLsJISDkb/UHiflM+FLjWyak/cYPDJWgQBP x-ms-exchange-transport-crosstenantheadersstamped: DM6PR03MB4700 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA81A106 smtp.mailfrom=sodey@rbbn.com X-Mimecast-Spam-Score: 0.002 X-Mimecast-Originator: rbbn.com Content-Language: en-US Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Issue with net/netvsc pmd in 18.11.9 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 All, I updated from dpdk 18.11.6 to 18.11.9 and my netvsc pmd stopped work= ing as expected. Firstly, I saw a crash in tx packets as soon as the dpdk a= pp comes up. In doing some googling found a bug that was fixed after 18.11.= 9 https://patches.dpdk.org/patch/75001/ . Ported this fix and was able to g= et rid of the seg fault, but now stuck at another issue. When we are transm= itting packets of size within HN_TXCOPY_THRESHOLD we are all good but any l= arger packets/fragmented packets are getting dropped after some time. As so= on as we start to receive the transmit completion event NVS_TYPE_RNDIS_ACK = as failed, packets with size greater than HN_TXCOPY_THRESHOLD starts to dro= p and never recovers. Packets less than HN_TXCOPY_THRESHOLD works properly = there after though. Any idea why this is happening and is there is some fix= which is already there which is done after 18.11.9 release ? We are at the critical part of our release, so any help in this regard will= be highly appreciated. Thanks in advance for all the help. PS: I also tried to put the net/netvsc: return the correct chimney index fix in but nothing changed. -- Regards, Souvik Log Snippet: I can see the below errors coming after some transmitting. hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 3 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 3 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 3 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 3 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 3 size 0 hn_flush_txagg() tx: port 2:0 tx 2048 size 302 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 packets 1 bytes= 1514 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 packets 1 bytes= 1514 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 packets 1 bytes= 1514 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 packets 1 bytes= 1514 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 packets 1 bytes= 1514 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 packets 1 bytes= 1514 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 packets 1 bytes= 1514 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 packets 1 bytes= 1514 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 packets 1 bytes= 1514 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 packets 1 bytes= 1514 hn_nvs_send_completed() tx: port 2:0 complete tx 2048 packets 1 bytes 242 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 3 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 3 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 3 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_flush_txagg() tx: port 2:0 tx 2624 size 302 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 failed status 2 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 failed status 2 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 failed status 2 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 failed status 2 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 packets 1 bytes= 1514 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 packets 1 bytes= 1514 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 packets 1 bytes= 1514 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 packets 1 bytes= 1514 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 packets 1 bytes= 1514 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 packets 1 bytes= 1514 hn_nvs_send_completed() tx: port 2:0 complete tx 2624 packets 1 bytes 242 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 3 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 3 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 3 size 0 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_flush_txagg() tx: port 2:0 tx 2688 size 302 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 failed status 2 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 failed status 2 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 failed status 2 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 failed status 2 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 failed status 2 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 failed status 2 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 failed status 2 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 failed status 2 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 failed status 2 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 failed status 2 hn_nvs_send_completed() tx: port 2:0 complete tx 2688 packets 1 bytes 242 hn_flush_txagg() tx: port 2:0 tx 3264 size 571 hn_nvs_send_completed() tx: port 2:0 complete tx 3264 packets 1 bytes 511 hn_rxpkt() rx: port 2:0 RX id 3 size 511 type 0x11 ol_flags 0x2 hn_flush_txagg() tx: port 2:0 tx 3328 size 571 hn_nvs_send_completed() tx: port 2:0 complete tx 3328 packets 1 bytes 511 hn_rxpkt() rx: port 2:0 RX id 3 size 512 type 0x11 ol_flags 0x2 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 failed status 2 hn_rxpkt() rx: port 2:0 RX id 3 size 512 type 0x11 ol_flags 0x2 hn_xmit_sg() tx: port 2:0 tx 4294967295 segs 2 size 0 hn_nvs_send_completed() tx: port 2:0 complete tx 4294967295 failed status 2 hn_flush_txagg() tx: port 2:0 tx 3392 size 120 hn_nvs_send_completed() tx: port 2:0 complete tx 3392 packets 1 bytes 60 hn_rxpkt() rx: port 2:0 RX id 3 size 42 type 0x1 ol_flags 0