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 35F47A0503 for ; Thu, 19 May 2022 17:28:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8FEE642B84; Thu, 19 May 2022 17:28:55 +0200 (CEST) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam08on2056.outbound.protection.outlook.com [40.107.102.56]) by mails.dpdk.org (Postfix) with ESMTP id 189AC40041 for ; Tue, 17 May 2022 08:46:47 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WvN0VS5bjuQQOugzq+8GxHjYAtAQOT/i3ck8Fs0AT0PBJO55oEdlvFisAUXm1wiCXZGEBGIF+VulZ7PSUpWhMDRXEatnJlE2iyzfX4PzjwOuJRyiG5zI7NC8p4fdWJtAnpcEOyG+PW5kq3B9E/OdPJyRBlrceD7/GsA8hHVPVNaR+Ux0ArvK091mxX0PE99LwX94D2GIYl6Bx3+qoS8MFHDwGWy9lA475cqa4CeijlxyrUDNOLJEIDRgGjbf87JMug6h/T6Y8b6qQ448k1+qeOkNOjSvBMZvZv2auAEgq41h66cFMBgoCa1eWA7hRMnp41zWD/Osq7e/eM8c943ieg== 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=Wq9NINdlouiIe9JwaBBlgEUdPsXcQd2Ci0GeQOxgrR0=; b=SGP5Gq8suhLBrV2MB3epHbEz33JllLLXviqgE84EAL9cMMoXKgyXtQTtvGbJb8o1H8JxuZD1f8VjWrVDbzjE4IZCET99p/byJm0TeD0pnlSbtWfXmc3Y221TJbwIp9uL9uHq+/04bPSfwW5V8QIXu+NeNUi5KjhetqNnFWm+y6YnOOharKjEDe2zm2QNEAVBkWEuckwPBeePtAFNc9VtikZeoJZwq/WPvrg4wYtd6OfP9fmGvKmYp5+Kt00UwMZ4oX53YUtjVgz7VE1arsyVw26GbKG0UdUGvIT2cE7EedgGHebdW0vQWTt/Vo3szPdMz4hBUtz+t+Np0UveM4FaMw== 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 SA0PR22MB3488.namprd22.prod.outlook.com (2603:10b6:806:1bd::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.18; Tue, 17 May 2022 06:46:43 +0000 Received: from MW5PR22MB3395.namprd22.prod.outlook.com ([fe80::18c:c25e:f20:a580]) by MW5PR22MB3395.namprd22.prod.outlook.com ([fe80::18c:c25e:f20:a580%9]) with mapi id 15.20.5250.018; Tue, 17 May 2022 06:46:43 +0000 From: Haider Ali To: users Subject: link up / down not working with Mellanox Thread-Topic: link up / down not working with Mellanox Thread-Index: AQHYabAbCVKDv70qdE6i4zaRHfmJsA== Date: Tue, 17 May 2022 06:46:43 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: suggested_attachment_session_id: 4cd8ab3d-0c64-bee4-bcf5-90ea9d6d7882 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: 6d4026d8-7284-43f4-6948-08da37d1010f x-ms-traffictypediagnostic: SA0PR22MB3488: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: 5+c7W9OSXbdeaR94ixhHRUKtVox6O7OSoYLwtihpTsQjxJVuPOFCaHwwM0WSCVmvMTg8UFHKMfDZ8SdDNXkn5dgiXilQQ8PGRIyMiAXxMjYvBaq0/02jIP9sbb4bNcV8OnttfZjV4C+xipsthPwbFBOwVlx/u3VhD8OqZeYtrt2w04LB//ycw1oWFvtVMiPsWShAFdfsQRExU40MGEy0rUilGwjbaUJ+GLi4yNI93MkqYSJlVJGijLFUEOnHemhvdOSwywwwl0j299fer4aGbh3kfQYbjRzkL1E7nlHtRQocWEDAiz28yPA095XcTV+cjkWGxsABsGSf78O4RsSvt1Q68qpnq/q/Pt2VhLFWsrwGwSIR7r6UrfHcuGb6QJHsYx7p75wsL544FqrI12LMNh3cy667efxUF6BWzlv9MqSImyx+7hBCT6THzM0okMq47zA25XDriAtKdVUNxCIf3wEA6goBkG5RdQKflUwG+U2OQkm2KmBl5yl/3vLvniBpoKM6z6b+/Gxl94fNsPaY9z1Pg5685uuWQNYOU+bUHRMkvEAL9xV4m2b1syVbeejCiBIqTSv9i3pc3G9YoDt0zitGz3mSj7qklANebKuOD0ktBpq/kBo6fHG/I8KB8b7Fpd7ySwkxLEHQA5JXMnc2jAaSem5BOahxPHRfLP2DRpHIkM4Of1qgMexk4DQQ3w9MTfSwhC3ZTwi3EPAp6dZdlg== 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)(376002)(346002)(366004)(136003)(39830400003)(396003)(66556008)(76116006)(66946007)(19627235002)(66446008)(8676002)(66476007)(33656002)(19627405001)(6506007)(91956017)(166002)(21615005)(71200400001)(26005)(41300700001)(64756008)(2906002)(316002)(9686003)(6916009)(186003)(966005)(8936002)(55016003)(122000001)(7696005)(52536014)(5660300002)(38100700002)(86362001)(38070700005)(508600001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?UDBH42duhfftfLvJiK4ib9UA/K/xk48K5HgaKQsOr7AX1mqAKOfKcGiRx+?= =?iso-8859-1?Q?Y70HtP60jWKWhOi/X7fK5Yj4ja6b3IszTbjYaSgbWGrHVvzI86s8QkrtR3?= =?iso-8859-1?Q?fpoJFeBu1DjHuuJqjse1JT5ypncWmoeJX0Mi/8Uu2Sh8kQd0CmIRaVDE/Y?= =?iso-8859-1?Q?LiX+Jie/22xzPM3keEkRcxLrK5YuIWNgzY7j3s2VOjDY3AsH5pXC2RWDc1?= =?iso-8859-1?Q?InxflLSViEENa+OAWlxui8NbGA9OQMwowZBCB+rnfh8TdDVkHe0hHV0fcY?= =?iso-8859-1?Q?cFWecDJkZFDoRhUErYAu5ap1Bs9uUKHNdzNtsCM/4jKzWB1qcdZyoTYFXs?= =?iso-8859-1?Q?kLQdyFeHus8cXP9zyQvjzWly1bFsxkxCM+rKORy8SiUSjXFnun5lnnidBI?= =?iso-8859-1?Q?1VHm+R9xS8D6VoTUTvat0aP2p25eGzg2/LG9U4SozqEAxnmD06uJHf+OzC?= =?iso-8859-1?Q?5Tkqk3XGg/Jd7wdU5dwyM2kLb2/5jdyTLHznA5MGiu0ByI5Qpd6QDQUsHJ?= =?iso-8859-1?Q?lja6H2u5EhxLRFWwNlguug322VCFZdlOYvWBdiLBVn0cGb+wN2kh7Kr1Ro?= =?iso-8859-1?Q?DTVZh5NKjYEaztXsOyFOuHSWge+srDjM/qHFD+qLgxDX4STPu+bl1qMRDO?= =?iso-8859-1?Q?gV/3B6+2FMauH6wa1mWr4YdLsMVoevvILDIoqcTXrDaYgW7iMqmFxhrNJF?= =?iso-8859-1?Q?v96BXpOT2BOdzem40WFZj8YrJ9qTNGlYgxNBK/i2LjZjhG6xlhEqdO6hiF?= =?iso-8859-1?Q?srRYr5uwIsAVpMpLAFrYR8mkD2QQ1KRMvNaAyJJ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Q?WGMTUzGJJg4sy9PevxsLbejRTEA4NXzCj0VVgQO2lQOsf9i4jD5Ga6C1AK?= =?iso-8859-1?Q?A/wYFuTjenG+IiPwzSUxiHjiOpPw5bXB5BB6DqeR+xXoArkoVdWgXuq3YB?= =?iso-8859-1?Q?Mecv9E2i2g=3D=3D?= Content-Type: multipart/alternative; boundary="_000_MW5PR22MB339501DA92FB35A6801CD601A7CE9MW5PR22MB3395namp_" 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: 6d4026d8-7284-43f4-6948-08da37d1010f X-MS-Exchange-CrossTenant-originalarrivaltime: 17 May 2022 06:46:43.1357 (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: ULVU2naqo/Vqu8fq3n3N8Tzkj9WM8+V7LOTx/CF4e8XBV3+bJ+1ftnEWMTcYcZTyc5Wc6Mo4H5tbDhiIADAA9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR22MB3488 X-Mailman-Approved-At: Thu, 19 May 2022 17:28:53 +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_MW5PR22MB339501DA92FB35A6801CD601A7CE9MW5PR22MB3395namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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_MW5PR22MB339501DA92FB35A6801CD601A7CE9MW5PR22MB3395namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
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_MW5PR22MB339501DA92FB35A6801CD601A7CE9MW5PR22MB3395namp_--