From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 1917FA0524;
	Thu,  6 May 2021 12:55:22 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 92C0E410DB;
	Thu,  6 May 2021 12:55:21 +0200 (CEST)
Received: from NAM12-DM6-obe.outbound.protection.outlook.com
 (mail-dm6nam12on2042.outbound.protection.outlook.com [40.107.243.42])
 by mails.dpdk.org (Postfix) with ESMTP id CBAE140040
 for <dev@dpdk.org>; Thu,  6 May 2021 12:55:19 +0200 (CEST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=XPvz3T+7zXiXcFCoOwkt/jRTIkiW6W/2ZbvVgcFP1q9sSxCJ2jvr1h2p7Oama80kpte+TU5e8KLhuEyFisL7reEwSPuhBI8bvs1Enadzj/ZW2lGrYF5p6MNVZ2bvfIaTLhGby2Ow16KeZpaO3gKCyHro81W1sE+58L59gKWGguCgG5idBGjguN1zkph6JR7LOwtoF89K8xD6BB9Ub0+QAtY9pMLlCaZfEB3DwsGtRoHbkHAcgsgytAQiJ5kHzvmfQ7ZlOY5Z/RaOdJP7lw5N7Sj89K8ctxfFER1tXx5qmx7hQjhg+WT2gcSxdChP+mxY4wjx/m8ZZ3N4KzyATfXxdw==
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-SenderADCheck;
 bh=qZBXNZoaNgObCK/4wxTmcZzXCfPlKXrBTga+ZSrJD2g=;
 b=GIjzmZTeGX8rr10jwoMis5SzwSfeP99w0lP5Czcc9IqsI1YuS39GlbyT6bixVp4q1/o8u9jHYVpJRhTq/Lnf0n4y+oId0aEPxnHIirSeFws45aHOyzVRKXQRRZGnx1PpVmdqRMHb++d0YEROMuIbmYbMBsohTTuD5s5s5jicGoUEKXFc+QGWjeuZRCM1Uh41EeAlMhxr40xH15CgW4aLE1LNQFMRDshnq8FUgjgQquJQPV+FRuXCiNAjyazVECzoUoNsW6/kVZwCSYiu/LGCHGZHYtaw05ptbGWSFEnplyGsJbAC6000+X0vHIZCvJMCoSxnWqS/0km8vCSyHGK6yg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com;
 dkim=pass header.d=nvidia.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com;
 s=selector2;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=qZBXNZoaNgObCK/4wxTmcZzXCfPlKXrBTga+ZSrJD2g=;
 b=sw41dXp65Hi1mfjFeSrS7TyfpuacP3x0mhbDQa/bvOD/1reGK3W3YrNQ3OsCr9tiWKIUoi1b8mPvMYN+LfeOCR/5ztgPmjtq/GrVuTrT+1VDDxy+SoPQI7zEaQW3BRcs2Ea0NTDzeo5WFqC3s6i0zocDpgTneVEDWGMPLIwGVfmA8bAm+FF4d42M+KGbFB9pBYyCsvQ+7vkChr/IL96/XJL+tn2dd7OfKuU1DAXnTPHVGt0w8qF5N1H0GT40nZmOFrScU61ExpnF5x9C/LRcup0HyMTKWvF6La9AVcfxNP+LLIDAb/X1rPV7UzWbahyncpvhKH5uE0JsnpUeC4c1KA==
Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18)
 by DM5PR1201MB2555.namprd12.prod.outlook.com (2603:10b6:3:ea::14) with
 Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25; Thu, 6 May
 2021 10:55:18 +0000
Received: from DM6PR12MB3753.namprd12.prod.outlook.com
 ([fe80::c595:e3bc:686c:16a4]) by DM6PR12MB3753.namprd12.prod.outlook.com
 ([fe80::c595:e3bc:686c:16a4%5]) with mapi id 15.20.4087.044; Thu, 6 May 2021
 10:55:18 +0000
From: Slava Ovsiienko <viacheslavo@nvidia.com>
To: Arthas <kangzy1982@qq.com>, Gregory Etelson <getelson@nvidia.com>,
 "dev@dpdk.org" <dev@dpdk.org>
CC: Matan Azrad <matan@nvidia.com>, Ori Kam <orika@nvidia.com>, Raslan
 Darawsheh <rasland@nvidia.com>, Shahaf Shuler <shahafs@nvidia.com>
Thread-Topic: [dpdk-dev] net/mlx5: mellanox cx5/cx6-dx  increment
 "rx_phy_discard_packets" with DPDK rte_flow actions COUNT & DROP 
Thread-Index: AQHXQk3SbOp0SmFNDky1I9J94poXE6rWQzkg
Date: Thu, 6 May 2021 10:55:17 +0000
Message-ID: <DM6PR12MB3753BCCFC51B3745BDDB304ADF589@DM6PR12MB3753.namprd12.prod.outlook.com>
References: <20210419130204.24348-1-getelson@nvidia.com>
 <20210502080817.17737-1-getelson@nvidia.com>
 <eef5c275-30a6-66bd-8875-a702c9454bd3@intel.com>
 <BY5PR12MB48343E19B04DEA802069924EA55A9@BY5PR12MB4834.namprd12.prod.outlook.com>
 <303e2815-ac2f-36df-1867-bf398be0306c@intel.com>
 <BY5PR12MB4834446CAD9C01D08A3AE3ADA5589@BY5PR12MB4834.namprd12.prod.outlook.com>
 <BY5PR12MB483482D59E111407491EB3EAA5589@BY5PR12MB4834.namprd12.prod.outlook.com>
 <tencent_8F1BC1DDBCDB1FA0BBD508CCE2A54F98930A@qq.com>
In-Reply-To: <tencent_8F1BC1DDBCDB1FA0BBD508CCE2A54F98930A@qq.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: qq.com; dkim=none (message not signed)
 header.d=none;qq.com; dmarc=none action=none header.from=nvidia.com;
x-originating-ip: [95.164.10.10]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: ae001ae6-010e-4db7-07da-08d9107d6fc1
x-ms-traffictypediagnostic: DM5PR1201MB2555:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <DM5PR1201MB2555194E44E4D3824623CEB7DF589@DM5PR1201MB2555.namprd12.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:6430;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: ewckV5HCbiO/vYK2MIK0CG6nlsOxfYCGC1kZI2ep0NosWCIjObKGEbzqbQDNlTYtXIsBDBBYcnQBcu/m/Z3ld+f5zsbpUTQcjPsvgfC9+wduMROGVX8rRWTeN0UkrCa/vcdPDeB1SredVcBhl1w9qwA5GKODbxlQWNlud+xue0iJx03TJiv9o8mpGule6abXLno5uMSlsyApYpPNwzT/J9li51CMPNsADIVCBVntz008/VfEKx2jmGSXh79h6u45Q7C1+kqy7X/HOzCbyGWoo90NqgZhMnUrwi8CEmOXyyQzzZ+YnwfEmQ+8BhSollA5ITov+UOzhuBPyuorre3h80V4TCzNpPZEv3Fl9Wyot4H926R+NCKmwSf/RQm2GXFWfYM+c8XDlqbxuVL10MtevcKpcMRtWTGG79GueORqNxHJreZkoeRhUNGhXy+Xue1P1sncgMxErdCeJ2Zs66dsB4bK+L8EalH+VGmtJwVBYLzUQJHLUBqBQdo5DvGgATqghA6PKkwiIPRmwjqsE9BW/KIZz/is1Bp3Ni9lsI4djrTT+k6pchNAH1COxW44a/gYQIOVbA1NoapgDHUD/JIW0K77F32BEXJImaRDrME4q/s=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:DM6PR12MB3753.namprd12.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(4636009)(346002)(136003)(376002)(39860400002)(396003)(366004)(52536014)(186003)(71200400001)(53546011)(6506007)(86362001)(76116006)(33656002)(64756008)(66476007)(66556008)(66446008)(26005)(107886003)(4326008)(478600001)(66946007)(8676002)(7696005)(5660300002)(9686003)(316002)(2906002)(55016002)(4743002)(83380400001)(8936002)(110136005)(54906003)(38100700002)(122000001);
 DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata: =?us-ascii?Q?o5xNUNi/1MrR2OhrWRJU0jJ5p1ptfyz5yYJ8TOePKt+rSs/MfnFG4f/9J4bu?=
 =?us-ascii?Q?BAJoXk6an25DGupHxC1gqbjXZUObmjNkE1/ajhKCSf1+Nb/oGBzN4h2V/gnB?=
 =?us-ascii?Q?/aT/ZUdHd29HGgHX09eX7f2lDAqbmhO5u6LoKaTYdLsWq5S3+gkMrfTWwQA7?=
 =?us-ascii?Q?6HhOaEmlRagQvan7ozgg1O6Kiet7VtzPDJNYGyHNbKMrBWmKyOUUcqjR91c0?=
 =?us-ascii?Q?31JhuLSsAoutQauIxNqDPHkzFLmb5xUHq9+Jwt9nM93O7gi7AT9kCUzS9JaX?=
 =?us-ascii?Q?I/9U1k6WQPcGMNEyQyrilUjXHpYLsYRrg2h7oTBsBvpbnAZYmkxP0u16+fRz?=
 =?us-ascii?Q?6HqO597zlgcTl2gpeMf6zRPh9ekBeBNKh6xBWbeyAEQ65RBnGOEIFm/UPB8V?=
 =?us-ascii?Q?0R3/P+dKM4ob6pr5YlZ2V5sXSdH2QMJS3McYW9sdCpSx4ptPUi5j5HOVMP9p?=
 =?us-ascii?Q?P0HwcmMxd3Rk7FqkHll741jeuKFVP0uPCiXJ/4AlqJ2P9B/u1oJN/F3kg+z7?=
 =?us-ascii?Q?oyQblOOW2d6z3L1MCD15iE6lHdNUAh9oe/cuPm2H8EY5xa9Y/rB5vDtoKZPh?=
 =?us-ascii?Q?ZY5zi3HXZnMlhdJrn0VFvpmnWqHBIavb0XuSM3qNu/V0a0+WVzmUUm5zOBZZ?=
 =?us-ascii?Q?gmNGeNtHOeVSK61eeJOc6oNUoXhCov07+HoKENxoFk9nDEI1jxZ142NRXvBX?=
 =?us-ascii?Q?VXXNHU7l8VHX9+2f9qNBnEqeK/SmYae1rpZCsxqRY1ypa0ASvSAb+FGcuuIQ?=
 =?us-ascii?Q?AqGLAsSpszepoC8L8feOvRQgDk7zuiPFB1xDqqtso4V2jSs5L0NJ/rV85Uht?=
 =?us-ascii?Q?9mx9WLu1l3eHTVuJoIg3RAI1Ju7bSO5sECMcY1GqAachZw5gucDyz26pnUyn?=
 =?us-ascii?Q?5F9CuUVN7/V3U3lDPWiwfl6kdZynWz8uWAEtbWU3bMzm1E2tUbc6JJh16bK2?=
 =?us-ascii?Q?YApBxwmsrhZce1yYgTHsk73HbhUR+mT5B/w+NcbedjoKOxagwMkC4h/SS3SX?=
 =?us-ascii?Q?2q2kWRNyyHJFxtrmH97qw13LopPmpjNrZuyofY08DWxzTAYpnU9uk+pv6pNk?=
 =?us-ascii?Q?i2+XT0IrpMGyiU1KK4JTW4xl28PEZWAWjsMxCxjdC6OB2e1oMHPkHBOcERZh?=
 =?us-ascii?Q?+2otmiFD/F4zXVZ5aLWg1E0MnjkXrAN9+OuKcpfEiwOxabPBuybCLYrQGYfO?=
 =?us-ascii?Q?cVbyOL4bDtSpZiqsnlVwX+9ax33aL137NorH+pDYVJIZBLf3WN1OeAvmB7l6?=
 =?us-ascii?Q?67gw1rqFKbNuPxEHst3jW4Fqa/RJtezHjYDHJ23JWBGkD28FGqp9VNRIkLpg?=
 =?us-ascii?Q?6sg=3D?=
MIME-Version: 1.0
X-OriginatorOrg: Nvidia.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3753.namprd12.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: ae001ae6-010e-4db7-07da-08d9107d6fc1
X-MS-Exchange-CrossTenant-originalarrivaltime: 06 May 2021 10:55:17.9664 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 6dL2l2fd0ZV/0z0x6YPW9skjjTq11+gLrm27q8LUXWq7s+G1mCve6Up+S2whAGxWy1vKf8zhvIgLj/sVKPGaYg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB2555
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
Subject: Re: [dpdk-dev] net/mlx5: mellanox cx5/cx6-dx increment
 "rx_phy_discard_packets" with DPDK rte_flow actions COUNT & DROP
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

Hi, Kang

There are have some questions to clarify:
 - what Is packet packet rate (in packet-per-second)?

  *   what Is packet size?
  *   do you use the switchdev configuration (E-Switch)?
  *   could you try create all flows in group 1 (and have the first flow in=
 group 0 forwarding all the traffic to group 1) ?

With best regards,
Slava

From: Arthas <kangzy1982@qq.com>
Sent: Thursday, May 6, 2021 11:00
To: Gregory Etelson <getelson@nvidia.com>; dev@dpdk.org
Cc: Matan Azrad <matan@nvidia.com>; Ori Kam <orika@nvidia.com>; Raslan Dara=
wsheh <rasland@nvidia.com>; stable@dpdk.org; Slava Ovsiienko <viacheslavo@n=
vidia.com>; Shahaf Shuler <shahafs@nvidia.com>
Subject: [dpdk-dev] net/mlx5: mellanox cx5/cx6-dx increment "rx_phy_discard=
_packets" with DPDK rte_flow actions COUNT & DROP

Hareware:  CX5/CX6 DX + Intel(R) Xeon(R) Platinum 9242 CPU @ 2.30GHz
DPDK version: 19.11.8/20.11/21.05-rc1&2

testpmd with case:
testpmd> flow create 0 ingress pattern eth / ipv4 / udp dst is 53 / end act=
ions count / drop / end
testpmd> flow create 0 ingress pattern eth / ipv4 / udp src is 53 / end act=
ions count / drop / end
testpmd> flow create 0 ingress pattern eth / ipv4 / tcp / end actions count=
 /drop end
testpmd> flow list 0
ID         Group   Prio        Attr        Rule
0           0              0              i--            ETH IPV4 UDP =3D> =
COUNT DROP
1           0              0              i--            ETH IPV4 UDP =3D> =
COUNT DROP
2           0              0              i--            ETH IPV4 UDP =3D> =
COUNT DROP
or
testpmd> flow create 0 ingress pattern eth / ipv4 / udp dst is 53 / end act=
ions count / rss / end
testpmd> flow create 0 ingress pattern eth / ipv4 / udp src is 53 / end act=
ions count / rss / end
testpmd> flow create 0 ingress pattern eth / ipv4 / udp / end actions count=
 / rss / end
testpmd> flow list 0
ID         Group   Prio        Attr        Rule
0           0              0              i--            ETH IPV4 UDP =3D> =
COUNT RSS
1           0              0              i--            ETH IPV4 UDP =3D> =
COUNT RSS
2           0              0              i--            ETH IPV4 UDP =3D> =
COUNT RSS
testpmd>

as soon as NIC create more than 1 flow ,  CX5/CX6-dx NIC will increment 'rx=
_phy_discard_packets'.
only 1 flow no problem!

Is this a CX5/CX6-DX hardware issue?
or Is it a DPDK mlx5 pmd bugs?

Best Regards!
KANG