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 8CEC3A00C4; Thu, 28 Jul 2022 16:09:13 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2BED840151; Thu, 28 Jul 2022 16:09:13 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 52EF54014F for ; Thu, 28 Jul 2022 16:09:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659017351; x=1690553351; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=hOrylThO+j7XGq1CHE9WCX4Sc+qWfMskLwawjGuYhP0=; b=E8t6aPydI8TGiK4TV0fh02RTvC3wJv613XtVU1cdXRysVIcKkjyuEWGX 8QoHNjLMsYJwsflgBDavKEoeFry2FZRVTab9hunemZADfgwnW9ZqNr8v0 bV+tloEQyo+rAiO0C8z1MAdLg1D0uj7APSt1G3DH7SNckN64vlWP1xOlr ozE27wxG8bROLw4kePCgK5yvZeCGZtatmc6wIt78pcFnjtlE+kU1fBWxx aLSqYpjW6lZrTz5xTzJjAeUgQyt7OzMOoGe4aA9621Z8Zc9p++tEbnUvL gpLJuypE4rCg75FEYBXEmBFQs6qmujIdDc7xtMBj6Pq1vg+DNSPWRqAHI A==; X-IronPort-AV: E=McAfee;i="6400,9594,10422"; a="352517417" X-IronPort-AV: E=Sophos;i="5.93,198,1654585200"; d="scan'208";a="352517417" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jul 2022 07:06:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,198,1654585200"; d="scan'208";a="743126742" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga001.fm.intel.com with ESMTP; 28 Jul 2022 07:06:54 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Thu, 28 Jul 2022 07:06:54 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Thu, 28 Jul 2022 07:06:54 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28 via Frontend Transport; Thu, 28 Jul 2022 07:06:54 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.105) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.28; Thu, 28 Jul 2022 07:06:53 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ho/KD7ZSxiTx8SFOqiI0czEnfQeXy28dvHjGCtwiOaPfK6ndfxNQdY25zuXMfbERkb1kSJwf58C/mLlU2geHkfj6ml8CLqHKXUvAuAd0z/D+62HxptCKyLt/REw99Qk5aqkdJAexSzDsYS9AcqpK//W38xTZ6hbw9uZVO4W3Ahcw4IjiCY+Y+SB3+4ibbHI4e9m+ziuiXytreWyT1geAQloSngwF7QSse7aF/8eL9NNrDEH/JD2Fmsv9H1adU5vFedwScgOZwha2CGBzFljDQup2z4Lu2J8+DjRYRdT3Hk33hdJo15tzR8lbvIySYwatGzog6KCJk6tQ7nkzxMdLBg== 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=hOrylThO+j7XGq1CHE9WCX4Sc+qWfMskLwawjGuYhP0=; b=DwEzPvA1TeSkSYYtb9LQ7BoZWJpkOrou1TmAXdXSCbJGJ6Klr9VNLUfiVNQCMIelUP2msSQhywqOGqDxITZhSdtmuiHCJMqne9n9/gZTJ8wNFxSpCp6zp7d+cUMypjWeSgNIRvWh/B4jhi5oBRClYzNzVaPaOo/oLJJsrRIwWlJwLPoIopFp1z27FZ0+pIUPv2Xy9Y3mU7nMravhhBIqBZ0kikpsvs8GfP02aw1JaVvZerP1toOsQjugOFwaAQzC4iebEaYw5oYOUTjdyYVA0Po/8auNCxSLmlkaXNpE77Q7mcDRsEL519/yTAf1gIV/LTkBuFLlmEBXM2mpzGCe/g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MWHPR11MB0062.namprd11.prod.outlook.com (2603:10b6:301:67::34) by PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.19; Thu, 28 Jul 2022 14:06:52 +0000 Received: from MWHPR11MB0062.namprd11.prod.outlook.com ([fe80::2890:cc50:6923:e01d]) by MWHPR11MB0062.namprd11.prod.outlook.com ([fe80::2890:cc50:6923:e01d%6]) with mapi id 15.20.5458.025; Thu, 28 Jul 2022 14:06:52 +0000 Message-ID: <08d889e2-da69-eaf4-ab5b-62ff19bdb28a@intel.com> Date: Thu, 28 Jul 2022 19:36:39 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [dpdk-dev] [RFC] testpmd: support user-id attribute Content-Language: en-US To: , Eli Britstein CC: Slava Ovsiienko , Ori Kam , Asaf Penso , Matan Azrad , Gaetan Rivet , Nir Anteby , Yuying Zhang , Ferruh Yigit , "Andrew Rybchenko" , Thomas Monjalon References: <20220704082433.3698761-1-elibr@nvidia.com> <5103963.6fTUFtlzNn@thomas> From: "Singh, Aman Deep" In-Reply-To: <5103963.6fTUFtlzNn@thomas> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN0PR01CA0027.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:4e::16) To MWHPR11MB0062.namprd11.prod.outlook.com (2603:10b6:301:67::34) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5494cdc9-f0b6-4703-ef12-08da70a26b84 X-MS-TrafficTypeDiagnostic: PH0PR11MB5000:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kL6wgP4DQVUmHWecyTTL1B04BEcAadq3kNaa3hVh/HZp2hM0DYP2kpQr3CjN1BEk2JvRiX6+LHzypNMeJpOFpmj5kbbPOv6BpSKDwHZW00b6p7dTmVBYtfxGX+H7lXv01Rvtxewf5UzLVzYM82YoWJ+AhZvwRk3IBwgawrgJifPjlPgs8MDGRdBRyooxlRC/9lEcF3ABl2mwwsyfmNpJq8xA4quSVz0kBLyKWIOG6adHwb0wPGUAakXrhc2Lf+sHuhtPRyhedY3UFHN4CvCvHiD78IDts+6gOvuL8y+4OsNU3cxD7guoEymfcHim0gCGvO/s+Siy7dpuactCSfqhEeo6/UZwIh3e1Vhuw3rwTburqXJwUnsCevyL8EZuO9wo1iubtaa7/o+T77nt7ZH1785jRphQbt5byTYm2I+Mk84XcYm/cHuOiv0a567xpxA0S09G3rrKdHz8wFS8X0FDbyzjRjjzfL7Cbobh8jImNrArZxtV6qd47JI8amI80yen74KXHfFugm4o92o0uLMQORmmhCmryBT+LGdMpUb0dcFfvU/5ZFwqQmSmCnKi7Hv0zYwHfcrZDmVRwGacut4Uhx2Am6MEtG/PRHkCCOKXciVxfer98Ejl4Ox5smPHWzSwyfYoIwfC6Ir+3dNFYRMoRfHab+5QS7c/JwBKZgbwTpjtS5FHlhwl0yntpYQfzRGjgX5KUorRw13DrR2x84PvnrVawD/BsZRHsgsqcE7lS5x4L5vii75DUuoqjW/ASSobjgwpGKKVl28H/9iSnjSrASiFJMkAeaooPaDUSUGj2TU7/gBBeJ1JyBo7umkpG603+QMHbe9zlBb+/Yw/bOUJTA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR11MB0062.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(39860400002)(136003)(396003)(376002)(366004)(346002)(6512007)(8936002)(82960400001)(26005)(66556008)(66946007)(8676002)(66476007)(6486002)(54906003)(6916009)(478600001)(36756003)(41300700001)(6666004)(86362001)(53546011)(4326008)(6506007)(31686004)(7416002)(186003)(31696002)(316002)(38100700002)(2616005)(5660300002)(83380400001)(2906002)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MUdOM2F6Y0cxWE5HdkNWMmRXSlRXRWxiTU1EYzlXaUk4Sk91KzFUbkFydlRC?= =?utf-8?B?VzNqbWI5eUpMRXhaVVlFWkpzVnBFT2hDRG1ONlRCUE40QXJuYUpCTUQ3azA0?= =?utf-8?B?N2dXRUJ4QVFKVW5UNkE3QVo3MDNB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UtNck1RQVY4dVFW?= =?utf-8?B?RTJ1TE54cWZCQlJxenFVUzl6eGxraUlZSVNrUnRwNFBDR2NwNytGWjdiK3Yx?= =?utf-8?B?ejFGOE0yN2VxM3lGejREdDg4V2UzanEzbmxYbm1mY1luY2N5ZjBlajZhWFRz?= =?utf-8?B?eHpxZmtjeG1HL1MyK0RqTmRadWgralR6V2RyN0JKNVVpZlg5RXVkbDJVQWY2?= =?utf-8?B?NDduMXNUVkpOTEk5YnpNbC8wcXRnd2xHMHA0bXowdStwd3dUeU1QK2lYSko0?= =?utf-8?B?dUE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 5494cdc9-f0b6-4703-ef12-08da70a26b84 X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB0062.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jul 2022 14:06:52.2233 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ira88boiU+abu/kHU8M2nZgqFISDDSZJM46jmQUkqGCbbDs2dzrUdW+JwkaPMySwNUQKJjtPEFFHx5vjgvefUsCLWBt7QZ6fHnuKJ35UbZc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5000 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Hi Eli, In RTE flow there is support for group_id attribute(u32). Similar to the example you gave- testpmd> flow create 0 group 0x1234 ingress pattern eth / end actions count / drop / end Please check if it fits the requirement. Regards Aman On 7/20/2022 2:14 AM, Thomas Monjalon wrote: > +Cc ethdev and testpmd maintainers > > Any feedback about this need and solution? > > > 04/07/2022 10:24, Eli Britstein: >> Upon creation of a flow, testpmd assigns it a flow ID. Later, the flow >> ID is used for flow operations (query, destroy, dump). >> >> The testpmd application allows to manage flow rules with its IDs. >> The flow ID is known only when the flow is created. >> In order to prepare a complete sequence of testpmd commands to >> copy/paste, the flow IDs must be predictable. >> >> The idea brought here is to allow providing some user-defined ID, chosen >> in advance of the effective flow creation. >> >> >> Example: >> >> testpmd> flow create 0 ingress user_id 0x1234 pattern eth / end actions >> count / drop / end >> Flow rule #0 created, user-id 0x1234 >> >> testpmd> flow destroy 0 user_id rule 0x1234 >> Flow rule #0 destroyed, user-id 0x1234 >> Here, "user_id" is a flag that signifies the "rule" ID is the user-id. >> >> The motivation is from OVS. OVS dumps its "rte_flow_create" calls to >> the log in testpmd commands syntax. As the flow ID testpmd would assign >> is unkwon, it cannot log valid "flow destroy" commands. >> >> With the enhancement described above, valid testpmd commands can be >> created in a log to copy/paste to testpmd. >> The application's flows sequence can then be played back in testpmd, to >> enable enhanced dpdk debug capabilities of the applications's >> flows in a controlled environment of testpmd rather than a dynamic, more >> difficult to debug environment of the application. > > > >