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 C2E32A04AB; Sun, 30 Aug 2020 13:22:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BF2991C12B; Sun, 30 Aug 2020 13:16:39 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00056.outbound.protection.outlook.com [40.107.0.56]) by dpdk.org (Postfix) with ESMTP id 617AA1C0D7 for ; Sun, 30 Aug 2020 13:16:34 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EGcnMJZtoDeQXk9YKHpBOke6myIeAZgsJti5Yyh4h/Z1OJICL0azfmrmFwMSHoLSiXpbXCCkPUkgEXnL/Grozp40wFnmYitFWYLCv6lnOpJoqsyLHV4ivWIwnGUHsKcXy2w/ouXTaespZg1zhzlgeomrfQxujzeZpGZis9lfkqB+HDbkKX2LaSJDl0ecKYXBsMUY8TX8XWZId3jAM9nWio1Ub4XpQeyYaOx1nD6Gl9yBWjmTYl6+bydh2NJJzxsn4xJ5yr5Pb8vtHxd3VQQBINiuFry2XF5lR1WhlenJiiAW5yh6NCxYDnjbtw06aYjL6kBJ0zNEFO40SxGLm4m+Vw== 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=q9lQYSCDPO14dxMtMCv3MA5ZfV6mjJnPekK/fm49wjE=; b=lwseIjXnZGrBbuYt3UqlYSxDlY+/bUATmV6yDeAovQsOsb2yQB75KDxUw2qvY9/6VQ078ForYP98Dk5XDsU/zawCsgboPwZTF3exHNaFFa77OWVtxt0JfVbceljseRJ6GZzdcZfh0neaXEQcjzQGp0yvrcUL1qjXAkrm93HvgvjtFvM5iBIRxQBwzLzEpaXkZc726DjL3acl8l+9rBRqIft14fAn3ZNnJo2VqEW6rLSrRjYYiM8EiRyC+WB03KcbzKSAzjey/eZVynDfx9LfnwoUWnGvsj3CtEuv0iAF3GvJuE5IkWK9pn4IAsWE5W3d98fud9+dbyv0TuiBrasMxQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q9lQYSCDPO14dxMtMCv3MA5ZfV6mjJnPekK/fm49wjE=; b=gwsE0MHyWUacu1N1KQAggXJ3XoNn8BrWMuKOC6Jz33VfQe3dTAkU34wgnYsPMlFNS1IgYCiN4xdagueqZc/VUiOOJO28/+qiSZWGvtOcuBNXKz+e/rUSy+qlc62IXajk6qMIM5KJf6UqeZCcw3nkhOYP9Mqu5S5CCG2mb16G3bU= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=mellanox.com; Received: from AM0PR05MB6610.eurprd05.prod.outlook.com (2603:10a6:208:12f::18) by AM0PR0502MB3762.eurprd05.prod.outlook.com (2603:10a6:208:1b::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.21; Sun, 30 Aug 2020 11:16:32 +0000 Received: from AM0PR05MB6610.eurprd05.prod.outlook.com ([fe80::4c8a:9848:2e2a:3598]) by AM0PR05MB6610.eurprd05.prod.outlook.com ([fe80::4c8a:9848:2e2a:3598%6]) with mapi id 15.20.3326.025; Sun, 30 Aug 2020 11:16:32 +0000 From: Wisam Jaddo To: dev@dpdk.org, thomas@monjalon.net, asafp@mellanox.com, akozyrev@nvidia.com, akozyrev@mellanox.com, arybchenko@solarflare.com, jackmin@mellanox.com Date: Sun, 30 Aug 2020 11:15:41 +0000 Message-Id: <20200830111544.4190-11-wisamm@mellanox.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200830111544.4190-1-wisamm@mellanox.com> References: <20200830111544.4190-1-wisamm@mellanox.com> Content-Type: text/plain X-ClientProxiedBy: AM4PR05CA0008.eurprd05.prod.outlook.com (2603:10a6:205::21) To AM0PR05MB6610.eurprd05.prod.outlook.com (2603:10a6:208:12f::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mellanox.com (37.142.13.130) by AM4PR05CA0008.eurprd05.prod.outlook.com (2603:10a6:205::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.19 via Frontend Transport; Sun, 30 Aug 2020 11:16:31 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [37.142.13.130] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 486bfc55-0919-48c3-2e4a-08d84cd62681 X-MS-TrafficTypeDiagnostic: AM0PR0502MB3762: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtFwd,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1751; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sHuGHn0X9BUr5U9ghISGhtBlcZJOSixIE9UVlH+28FMPFDy8quxmaGuWlyoJAl3DXWmQPwSB1ZPgxL6lBQFmrP6GWoaJpUfTtIp2FITBD9khpUh6UsuFIT721+N4NecyhTMjyoYPeRWGlZE6/7HENzT6WL63O9m6t7FCjsF9SuxPtsMzRkk+ejYWwHQGr2P9AKmGMPKw6WAb5NVxiEGdLBDla2qY70BO3YbbtGn3UqYnZOzQUEtVpYGXmNN1GxUU34B5hnOhTC+iMTL34R32dRehm+C5BeFgeU/FzmBwmnS+JyPLf8h8lryIovHPRCb1 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB6610.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(136003)(39860400002)(376002)(346002)(478600001)(316002)(5660300002)(8886007)(2906002)(6636002)(86362001)(36756003)(6666004)(1076003)(55016002)(8936002)(26005)(2616005)(7696005)(66946007)(66556008)(52116002)(83380400001)(16526019)(8676002)(186003)(956004)(66476007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: JReIC4tCM1hj/HvA3nXiWd3UMb6Wx+l205szJVPBb0iBd3WHoFN/gEg5qjQvj9JBJ/YhQuPVH5DIqK83EEjos/HUoWAipoCWCboXe1yT9FxTtNhoVof4nXG0immlDGoifFS2/dtlNkFeHEXloCV6dIOgerFVOhnQXoasA2fNaXOj10CLGdsl4zF+uATW0VdTae2xaPsDeiSzOx1MTZqKq8ls0OMFfxFcg9bRPAbSAHpnCzcsOJz0P0MSWRaJz8hdM8xmtB6vEQvPE5GTSTE9R3RIIjvVVopkZezda+QOoOWSvs1/KJXXKdyKtgmqjD1C/jrPlGjddX0uWKAuUqgZQwJwg1oN8GB76zKmjG4bgph3/dot1irnHSRXfsHSGk929gzQaXscMT/QKOQOZba0wtfIWN+e2nJ/gLXUWS6jktyyCVSFxFqBSVZsahJV70rnas/dfn7YzTB1cJVVEOlqK0pp50VCvF/DvECXYWRT4oRF1fKTM/EkapbeHPa7ryj0GMKo6C629eQ3VGFjDwYJV/f2okFsCFfdIrYS8GOh8LQYZ51MNTSDFOHG0ljy99t7p7D2h3LZpZaIb+B7qtnNBxekwhiH32UOM0dmza2lM4VWnN1hmplZQgkK8iEmz7H5RIl/3+fSILjKLS7h7+kx0A== X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 486bfc55-0919-48c3-2e4a-08d84cd62681 X-MS-Exchange-CrossTenant-AuthSource: AM0PR05MB6610.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2020 11:16:32.7906 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XI/WmS1o5Y7gY3/+2UDueOzTLYa3UhVA3GyynXA9rJyqkIKKNk6CtNISnjgABbsJCiwZ4v1JdBSBtlhDia2bLA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3762 Subject: [dpdk-dev] [PATCH 10/13] app/flow-perf: add random mark id values 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" Instead of having single id value, use up to 256 values, thus we make sure that all flows will not use same mark action. Signed-off-by: Wisam Jaddo Acked-by: Alexander Kozyrev --- app/test-flow-perf/actions_gen.c | 6 ++++-- app/test-flow-perf/config.h | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/test-flow-perf/actions_gen.c b/app/test-flow-perf/actions_gen.c index 10ddef4deb..278c0a3004 100644 --- a/app/test-flow-perf/actions_gen.c +++ b/app/test-flow-perf/actions_gen.c @@ -54,12 +54,14 @@ struct action_rss_data { static void add_mark(struct rte_flow_action *actions, uint8_t actions_counter, - __rte_unused struct additional_para para) + struct additional_para para) { static struct rte_flow_action_mark mark_action; + uint32_t counter = para.counter; do { - mark_action.id = MARK_ID; + /* Random values from 1 to 256 */ + mark_action.id = (counter % 255) + 1; } while (0); actions[actions_counter].type = RTE_FLOW_ACTION_TYPE_MARK; diff --git a/app/test-flow-perf/config.h b/app/test-flow-perf/config.h index 439f3264b4..ee1a4a3724 100644 --- a/app/test-flow-perf/config.h +++ b/app/test-flow-perf/config.h @@ -23,7 +23,6 @@ #define META_DATA 1 #define TAG_INDEX 0 #define PORT_ID_DST 1 -#define MARK_ID 1 #define TEID_VALUE 1 /* Flow items/acctions max size */ -- 2.17.1