From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3F9A0A0543 for ; Tue, 7 Jun 2022 10:14:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BEDFE4281C; Tue, 7 Jun 2022 10:14:37 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2086.outbound.protection.outlook.com [40.107.220.86]) by mails.dpdk.org (Postfix) with ESMTP id C6C3E40150 for ; Mon, 6 Jun 2022 12:24:11 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yf3Snj3rgjmEM+ybAncLqUQsH3EPKiMmdvvDq31bMWcTtbjLS1ncvSEsSALVezMMqsbQAYkkxmsilJYjOOQw593/gFmWjr6+tKxcuUZIGbM+Uo4dmEmZmc3QWyC1n2SWh5wU6uL2QJKdhiMlSApF1hb4B5JC+cQUya8B3LrexYxVqGi63XPcMNsZ7PTEm2Bwz7E8czvGDiVJA3csOmOD9mI68Q7ZQFrRkYt2tDjc0xu52fVhw7pJYYwcybO9nNU7d+sdfrr9E6hN+JE1tUL4K1dkRW9Fg65Xv6ECetpoyAA9sE4ZUofyF+2FWUGOr2zy7zGSIFBN8XMcA7LFeyGC3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rLDxkOcWR4B98yviBbs1LDhKSVTGFWxgWgGeirXNhiA=; b=RTXi+ob8MKxmdybNb32ygdxLcPTqF2lj0J9nzupjo+R5ij77zXMCexvXon2wemJMu7XhXwrHRoHngwA98rJ73AGWB2OZ2QkdxSgCOcDdYkZFTaFIhJ4Ao6k1pKmS3bWrJk0m49JSUhne1JBWxRlb0/cSgamK7Haa+PlhYDsOPU8UfTSjrPPKMMWDjbnGTOztpmtw1ZciQLbrBmLJuDM6fVxAWJSDwAHQ0xRulj2K37RwrV66xrpB1zChKEAIeE3lXJ4w03oqFe0knqDe3SSUiZApnxkh84U3U7g25Z9J7WwKXQHVkoxXK8g7BI4c9f6Bs9UPBkSfyHfR4gqpaMqmmQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=dreambigsemi.com; dmarc=pass action=none header.from=dreambigsemi.com; dkim=pass header.d=dreambigsemi.com; arc=none Received: from MW5PR22MB3395.namprd22.prod.outlook.com (2603:10b6:303:1c1::9) by SA2PR22MB2730.namprd22.prod.outlook.com (2603:10b6:806:14f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.19; Mon, 6 Jun 2022 10:24:09 +0000 Received: from MW5PR22MB3395.namprd22.prod.outlook.com ([fe80::c5ce:b0b9:f7d4:2d76]) by MW5PR22MB3395.namprd22.prod.outlook.com ([fe80::c5ce:b0b9:f7d4:2d76%4]) with mapi id 15.20.5314.019; Mon, 6 Jun 2022 10:24:09 +0000 From: Haider Ali To: users CC: Asaf Penso , "rasland@nvidia.com" Subject: Re: link up / down not working with Mellanox Thread-Topic: link up / down not working with Mellanox Thread-Index: AQHYabAbCVKDv70qdE6i4zaRHfmJsK1CSog+ Date: Mon, 6 Jun 2022 10:24:09 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: suggested_attachment_session_id: 24206f9e-0448-d060-577e-e0b5c0b5fab0 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=dreambigsemi.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7fa42467-9fe4-4ad3-1921-08da47a6b177 x-ms-traffictypediagnostic: SA2PR22MB2730:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wS+DqIjSd28it1hjw48ZNj2G6P4R8bpF+pNwOWWxQRtZxgQOxCrogD3xNdvdJqlIsqQYY5pHCo1HjtZN2s1O8wVQlFQqu/ka5LiVjrdWi4NLFK7mPOg/WdR3Rqle7F9uE9zVf8biOa6hlermL7VVGY/QbvEYH2tj+TjqUgtvHicYYCd+Kk9u1bq65Ch5ZVUNQaG4ygAHajJ7QLBodfDuW40GxcAg/ZOzutXmBwGpIb6iDvDUkZKLVHID9pFLldjgUb8qpo1XQczPqtmEQ2crmQZtRpD+tqow1SrhMNbbu8mwAerryyj32fn/fd9/tTrcPnGk0SgCqZv3kc3ckBHUw99pIfrRVwwMbXaOCOvU0mmtoV9HEcruClM+QRrfANwQHVQGZr3fT25l+OMhqkgUI8KmklIx6Q0uBlsyYuRxho2kzXvcROknk3v6a4EgGaDDqdw2gRff3HOEOzv3MJqrpmP4yQJoCspeikEgW6mJ6/umlc9eIFAdoyZGJ3uYDqKAY38dbdgNTxR1rvx4wIAQhVYdhHkyfWSM1nedIKNN7ipKW5w/HI6tp6C8ZHZZMIeICOtps7b8F6vPpTaJ6jFzAxgZnX7CmTP8dZldOuZreT3AhmiejkRUygea00MJTOOjp3oXMx/NPJ1vAbIil92qX0IOVcWVRTbtnOVxiKK65772/d0bODEZmfKkYerGHQWmsWmG3ZU8CucvMx91fllpEQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW5PR22MB3395.namprd22.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(346002)(136003)(396003)(366004)(376002)(39830400003)(71200400001)(41300700001)(55016003)(4326008)(76116006)(66446008)(66556008)(64756008)(66476007)(66946007)(91956017)(8676002)(33656002)(7696005)(21615005)(9686003)(38070700005)(26005)(53546011)(6506007)(2906002)(38100700002)(166002)(966005)(508600001)(5660300002)(52536014)(86362001)(8936002)(122000001)(316002)(54906003)(186003)(6916009)(19627235002)(19627405001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?27qnsJAkBNMlkPYjDs8/WcOB8EvfMbSjH9NpwkJkBlaPojeCBwHUn/jRf2pE?= =?us-ascii?Q?sN0a1noTFgZcTYZOo/03zBH9axtYHLvfeO+RzJT5iXZTFpELy2B6gSmdrXhB?= =?us-ascii?Q?ntVQ5g//cB1cRfCGxdu9LZrmjGnLWT7Dmmmv37+G2hmt4TnwU73esBMRBtJQ?= =?us-ascii?Q?OIVKg318H6qfgQYDFBOK/e0SaESR+EleMBkNb+itj/jv/OJO0k/aWYF0oAQX?= =?us-ascii?Q?jSIIuosxvVi6Udg2C/he380wSQUhjq6wNZs7Uo0w1ySm7kODUTfCr75tEDHj?= =?us-ascii?Q?na8f6ni4JFyEUI3fy8b8HCYsxtiFu0bYdxC3jNqP6XyLy+R/4Bhea1K5ca9v?= =?us-ascii?Q?7AGxFPbu3kmgeYa01OuDs6GALArosPYjQ0+uz2fQjmIPI0qH+6fRUmJkWTJ/?= =?us-ascii?Q?Q+RhRl5F9gQlj2cUh+pVMkAhTVJpSCqCTrZPtaU1tb/DENvuR7XXnBVJwPcG?= =?us-ascii?Q?YIACZpoCq8zAJ0BTvXSqFpsvj3aZi/hgd3HdjciYpRGZMOujo3YHdFwAuLsB?= =?us-ascii?Q?l16nSZf65iN+B3ugs3htJsojCcgNB0dM4uYSnwp49VIBi+i4avwxT06Zo/Kl?= =?us-ascii?Q?kVoEhpzUpOSLXeSkSZm4jv9CjouYMtWhfQt2hCT8y4Xc/4SWupvWaNMDCBGG?= =?us-ascii?Q?EWGCV3I95jcrq4MVnXiVAX5kCvPD7ntMhskGcYsqSUe/ZJyGaHzX0zgWFugC?= =?us-ascii?Q?NLPJTmXXLIgbAL0bG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q?ZWZA/46CgpHC8POCDWNTCXOPm/9gZrg5FuqpLtRpJXXnV0GiePcKSLYKMXfL?= =?us-ascii?Q?BeXo0r12jHQL+8+cKFOgQRmSyFdz0M5F1wQ3rr3qVqkgX/EEs8kAz5M9sLmX?= =?us-ascii?Q?iuFn2YjICw=3D=3D?= Content-Type: multipart/alternative; boundary="_000_MW5PR22MB33954947615EFC28A7DE727DA7A29MW5PR22MB3395namp_" MIME-Version: 1.0 X-OriginatorOrg: dreambigsemi.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW5PR22MB3395.namprd22.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7fa42467-9fe4-4ad3-1921-08da47a6b177 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jun 2022 10:24:09.3549 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f492af1f-9d8c-414b-ac8c-6732fc0649d5 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 6qPnJVtyy5UiIDgxt1N+MS66bkxKlKAs9h60rbBx2L8JWvFEbitbp9K7ie0A35Io9VI9tQYL6rsFsF7bRamdJA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR22MB2730 X-Mailman-Approved-At: Tue, 07 Jun 2022 10:14:35 +0200 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --_000_MW5PR22MB33954947615EFC28A7DE727DA7A29MW5PR22MB3395namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi All, Thanks, Asaf and Raslan for resolving this issue. After doing the below FW configurations that separate the logical vs physic= al link status of the NIC, this issue gets resolved: mlxconfig -d 0000:04:00.1 set KEEP_ETH_LINK_UP_P1=3D0 KEEP_ETH_LINK_UP_P= 2=3D0 Regards, Haider ________________________________ From: Haider Ali Sent: Tuesday, May 17, 2022 11:46 AM To: users Subject: link up / down not working with Mellanox Hi, I am trying to test the link-up and link-down features of Mellanox using th= is link https://dpdk-test-plans.readthedocs.io/en/latest/shutdown_api_test_= plan.html. But found that even after setting the link-down, NIC is forwardi= ng the traffic. Please check my test setup: Server 1: $ sudo ./build/app/dpdk-testpmd -l 0,2 -n 4 --file-prefix=3Dha -a 0000:04:0= 0.1 -- -i --rxq=3D1 --txq=3D1 testpmd> set fwd mac testpmd> start testpmd> set link-down port 0 Port 0: link state change event Server 2: >>> sendp(Ether()/IP()/TCP()/Raw('x'*300),iface=3D'enp4s0f1') $ sudo tcpdump -i enp4s0f1 -vve 22:59:52.469337 00:00:00:00:00:00 (oui Ethernet) > Broadcast, ethertype IPv= 4 (0x0800), length 354: (tos 0x0, ttl 64, id 1, offset 0, flags [none], pro= to TCP (6), length 340) localhost.ftp-data > localhost.http: Flags [S], cksum 0xf9b9 (correct),= seq 0:300, win 8192, length 300: HTTP 22:59:52.469379 b8:ce:f6:ed:9f:af (oui Unknown) > 02:00:00:00:00:00 (oui Un= known), ethertype IPv4 (0x0800), length 354: (tos 0x0, ttl 64, id 1, offset= 0, flags [none], proto TCP (6), length 340) localhost.ftp-data > localhost.http: Flags [S], cksum 0xf9b9 (correct),= seq 0:300, win 8192, length 300: HTTP Please correct me if I am doing anything wrong. Regards, Haider --_000_MW5PR22MB33954947615EFC28A7DE727DA7A29MW5PR22MB3395namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi All,

Thanks, Asaf and Raslan for resolving this issue.

After doing the below FW configurations that separate the logical vs physic= al link status of the NIC, this issue gets resolved:
mlxconfig -d 0000:04:00.1  set  KEEP_ETH_LINK_UP_P1=3D0  KEE= P_ETH_LINK_UP_P2=3D0

Regards,
Haider

From: Haider Ali
Sent: Tuesday, May 17, 2022 11:46 AM
To: users <users@dpdk.org>
Subject: link up / down not working with Mellanox
 
Hi,

I am trying to test the link-up and link-down features of Mellanox using th= is link https://dpdk-test-plans.readthedocs.io/en/latest/shutdown_api_test_plan.htm= l. But found that even after setting the link-down, NIC is forwarding t= he traffic. Please check my test setup:

Server 1:
$ sudo ./build/app/dpdk-testpmd -l 0,2 -n 4 --file-prefix=3Dha -a 0000:04:0= 0.1 -- -i --rxq=3D1 --txq=3D1
testpmd> set fwd mac
testpmd> start
testpmd> set link-down port 0
Port 0: link state change event

Server 2:
>>> sendp(Ether()/IP()/TCP()/Raw('x'*300),iface=3D'enp4s0f1')
$ sudo tcpdump -i enp4s0f1 -vve

22:59:52.469337 00:00:00:00:00:00 (oui Ethernet) > Broadcast, ethertype = IPv4 (0x0800), length 354: (tos 0x0, ttl 64, id 1, offset 0, flags [none], = proto TCP (6), length 340)
    localhost.ftp-data > localhost.http: Flags [S], cksum= 0xf9b9 (correct), seq 0:300, win 8192, length 300: HTTP

22:59:52.469379 b8:ce:f6:ed:9f:af (oui Unknown) > 02:00:00:00:00:00= (oui Unknown), ethertype IPv4 (0x0800), length 354: (tos 0x0, ttl 64, id 1= , offset 0, flags [none], proto TCP (6), length 340)
    localhost.ftp-data > localhost.http: Flags [S], cksum= 0xf9b9 (correct), seq 0:300, win 8192, length 300: HTTP


Please correct me if I am doing anything wrong.

Regards,
Haider
--_000_MW5PR22MB33954947615EFC28A7DE727DA7A29MW5PR22MB3395namp_--