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 50B37A00C3; Wed, 21 Sep 2022 21:23:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E4CB840691; Wed, 21 Sep 2022 21:23:42 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 416134067C for ; Wed, 21 Sep 2022 21:23:41 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28LJ0VrJ019243; Wed, 21 Sep 2022 12:21:34 -0700 Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2176.outbound.protection.outlook.com [104.47.56.176]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3jr0b724ju-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Sep 2022 12:21:34 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=etjKIeci7T21PzL3pY1D/K2ZnjtA+MQ8eHjYEOM8f7aDLHeMkq+/rL4N8td2Lq/mDHcb6pvvFZiatV+KNUg3cEhJHqsLFInuutU9Hp6MwuI9CNeFQTTzI35YTwplxFHx73NC0y4+nhuywuUxbjEwDb/EsjsJSlCd52m79epyt3e5fbTnmO2rVbceLw3xaEPFpO2O+3vsVfDcXhFI7dVlOM89eVmbos7VKpyLCiYtuHyqhbauWHty3SS8eWKMzjJi6sTNbvli96vRLY6dxHQWYezJ3UGjIJw9HOCM2yCQ+N8oThjZvcQcTVmpZlBzCuRKzokAskZFg7+viUNtI/N+tg== 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=x7sxV6WhThIMlIltXla5K//4WnCe7yVIzDZjtXIKYmo=; b=HgOMabgbr1PlIGBiKckzGQWOiXNFklWK9e/4bBy3h8yhEJ4q5mZVETu7tEFLSCjU7ACX97pqR/d9UQQToGsRN4hJyRXCsI66IgEdpG/ejubpGhdYs/B+Hecg3+7StrlrXulQHC5XsyBR0QCRVaVElRAEDJbwnDQ2OU2ZJo7n5Q4gQmfnC5Quxn1pap8XaMthNMdDDxnd5nHhXVfol1YusKgrzkCagsJ3Qb/pUHOa9iqVCEy2uV3zaFnbUDO7BdjyPfnSjHtD98QkWjaWH8qHJorgEK3vjeCK7EnX12KqyttdTkGiY/jebz9B9T/z/K8Zjb5BWD/YLSMpgOLgKTmx2A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=x7sxV6WhThIMlIltXla5K//4WnCe7yVIzDZjtXIKYmo=; b=VK5o4iGx7X8qgMJc/JDCTajNOX6z15hi2xSIo4C510mtuAMX6iCH9zXtEseWtjn/Q14syfGO6dp70LLp15R4O7GePEhuLFZEoVTynxHrQ8VQKBHEkafN3rF6sEgqQ3VVxIwA9ugGmjY7Y6t9OTCc5FrjGtLIlC8/nGqBlBDzCM0= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by DM6PR18MB3475.namprd18.prod.outlook.com (2603:10b6:5:2a3::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.15; Wed, 21 Sep 2022 19:21:30 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::7cea:d050:5433:8c74]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::7cea:d050:5433:8c74%7]) with mapi id 15.20.5654.017; Wed, 21 Sep 2022 19:21:30 +0000 From: Akhil Goyal To: Nicolas Chautru , "dev@dpdk.org" , "thomas@monjalon.net" , "hemant.agrawal@nxp.com" , Ray Kinsella CC: "maxime.coquelin@redhat.com" , "trix@redhat.com" , "mdr@ashroe.eu" , "bruce.richardson@intel.com" , "david.marchand@redhat.com" , "stephen@networkplumber.org" , "mingshan.zhang@intel.com" Subject: RE: [EXT] [PATCH v7 6/7] bbdev: add queue related warning and status information Thread-Topic: [EXT] [PATCH v7 6/7] bbdev: add queue related warning and status information Thread-Index: AQHYu9UeBT2jjqPqyUq8/uNkhQEkdq3qZZVQ Date: Wed, 21 Sep 2022 19:21:30 +0000 Message-ID: References: <1655491040-183649-6-git-send-email-nicolas.chautru@intel.com> <1661796438-204861-1-git-send-email-nicolas.chautru@intel.com> <1661796438-204861-7-git-send-email-nicolas.chautru@intel.com> In-Reply-To: <1661796438-204861-7-git-send-email-nicolas.chautru@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR18MB4484:EE_|DM6PR18MB3475:EE_ x-ms-office365-filtering-correlation-id: 35659e06-7b2b-44f3-3ae8-08da9c067cd7 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hIU/QuhNNVzcFycLWn3Ziab8RgjUf3laM0P6u0KFcj4+e6tfbqpq0lKn40adhyjirF59Ha+F+8dRai+GbChNbo3wFcTZjN34U/jfSVnkcMZQ6tu8MhMPYbhGU3XUmhmo1UXEAKMV5GOWfh9H35u9YvZQuaEjb6VIzkOKINs7JX9+dDD3rxNaw53rDcwZuEJ0ZW/sR8pM+0CKK5yJnGWXbSkt1J023PgRZKztAoiPucsxT/ADkvEf+WZm9FhvUvhkxZN5+LaWNjGfcYnMRfx5SGJOJqI6XfhRhQdnRu1gChkNxiVdgIfBTJVhxdoxm1bb9I+xwR2mWwFuuHwRHeOk0wPdxRh07YEtvgbRWHRyY7kUeUtSrP8vr4d2dwQ5h9zQqpvJ41NtfDReTc/xJCK8nV+ReQwpelyemdHCDZKeTMUHDFNUKip0FeANa89zO587h8VUYyh79SmbgMxoeUGKceyrBb9gHiPrXnatQ8ynk8Yh9/NG/enNr+ieqw3VRvNCn5mkitgbZbjtjT0OPd3IVN30oSKAbWISTJkf36L5UX0hd/MEHHvwxEn5bijB1bJecRhsbhvKAI5F/OM+nI1Gg9M9wfh9PXSsvtRH+DIR7QeRhoua8Xf81S9JDLb/cU0Xeop8xjyvn/7NVQLsYLJ13CeuKGY9AciUS40xBAll7z8gBKrvfiUxUhIJo7ShhvEUVwLPJ8qgjopkM/wmlSVgpPzeLTZ9qnX76gumnJouUrMb3Gh8CBqwP3IxWBZ7tou/2vN+xpSVXdl/wH3hGdhXxg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(396003)(376002)(346002)(366004)(136003)(39860400002)(451199015)(122000001)(38100700002)(86362001)(316002)(110136005)(54906003)(2906002)(38070700005)(9686003)(26005)(55236004)(6506007)(83380400001)(33656002)(186003)(71200400001)(41300700001)(478600001)(55016003)(7696005)(7416002)(76116006)(66446008)(8676002)(5660300002)(4326008)(8936002)(66556008)(66946007)(52536014)(64756008)(66476007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?VPe49htfjawQ0eff+g1HaApKm2t757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HXplAGR4Ah9aG4TokT33BeWsgm2Cilec3l6EchcF+J6wvWG9V2Ukb0AcoYaK?= =?us-ascii?Q?T3MfvPbMtFiG7+pBoKwDYim7LzlXxHRZWlxOYJD/AdoOyYjWCu8y+8cHlqHY?= =?us-ascii?Q?orl2O3VnQukQrBsC1Zn23GOItr7NNSexzbKa3qkMBMly0KQeJD4fOzrzBUR9?= =?us-ascii?Q?zaSlU/OS5QEJY5zRXqT7+kknvfbuz2g0FdqVsWHy1iOH3KWT5ma8wWvpkxOx?= =?us-ascii?Q?kUQzGcuPBu43g//1sP3CNA4SkIur98bGCT2kBWpE/qjWst+Su5pRkMqbguSJ?= =?us-ascii?Q?QITKEA2ExrlR9Lpxrznw/xfV/Vufq8ja/2Xz60U/GmkS839lZnFgb63ZqiAQ?= =?us-ascii?Q?aGAKf5NNvbuCwl7xVmfxWNWW0rflJ25t1eiEZoMhV2j61I8qYn/bye8X0Nhz?= =?us-ascii?Q?RyqOt7zc6Feh6RDZ0P537VSC+e6a1Y5fpLZCrvf/RJ3qYkT+gPjh6cJXaMOg?= =?us-ascii?Q?A/p9EfSPPLIvet6QQtQuX/6L6XBIacx9/m4R3q66tIHKP6oIiyr0Npd5PBfW?= =?us-ascii?Q?dynJIpPmXj81cHcdt8O4hvGn5Q9g7OYCnZrS6ZECs8jVwE7m/3uikD+9HWDW?= =?us-ascii?Q?rjhjr3Ip57qhGrwBKl0gzj3PGiMRDHau6LZ0AAVO/UHYWOCIWrC3WXLtWHDJ?= =?us-ascii?Q?dx+K3QfUAMO54xAg8z/3TN0MVYlNoFcw0zWkWC31?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 35659e06-7b2b-44f3-3ae8-08da9c067cd7 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Sep 2022 19:21:30.3938 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: c5C/M2s9RvG58TclNhcFuoTBU7e1FRVMSzmN3bv8zU3wPqXojin4xG+yaii3nOBV5BT4yfzE6aID5zs0wj0/LQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR18MB3475 X-Proofpoint-ORIG-GUID: G3SRxxJ2rSb42ZTCysKfE-_h4_wxKBGe X-Proofpoint-GUID: G3SRxxJ2rSb42ZTCysKfE-_h4_wxKBGe X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-21_09,2022-09-20_02,2022-06-22_01 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 > diff --git a/lib/bbdev/rte_bbdev.h b/lib/bbdev/rte_bbdev.h > index ed528b8..b7ecf94 100644 > --- a/lib/bbdev/rte_bbdev.h > +++ b/lib/bbdev/rte_bbdev.h > @@ -224,6 +224,19 @@ struct rte_bbdev_queue_conf { > rte_bbdev_queue_stop(uint16_t dev_id, uint16_t queue_id); >=20 > /** > + * Flags indicate the reason why a previous enqueue may not have > + * consumed all requested operations > + * In case of multiple reasons the latter superdes a previous one Spell check - supersedes. > + */ > +enum rte_bbdev_enqueue_status { > + RTE_BBDEV_ENQ_STATUS_NONE, /**< Nothing to report */ > + RTE_BBDEV_ENQ_STATUS_QUEUE_FULL, /**< Not enough room in > queue */ > + RTE_BBDEV_ENQ_STATUS_RING_FULL, /**< Not enough room in > ring */ > + RTE_BBDEV_ENQ_STATUS_INVALID_OP, /**< Operation was > rejected as invalid */ > + RTE_BBDEV_ENQ_STATUS_PADDED_MAX =3D 6, /**< Maximum enq > status number including padding */ Are we ok to have this kind of padding across DPDK for all the enums to avo= id ABI issues? @Ray, @Thomas: any thoughts?