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 B4E3545EE3; Thu, 19 Dec 2024 02:25:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7E50C40299; Thu, 19 Dec 2024 02:25:36 +0100 (CET) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2138.outbound.protection.outlook.com [40.107.102.138]) by mails.dpdk.org (Postfix) with ESMTP id 8BBE8400EF for ; Thu, 19 Dec 2024 02:25:34 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BZeL4AjKi/hqOmNyYlk3vWtEX3cj8TV05OTgAsPTlZmedSVWS7QmTnEM1+0aja6ICrghUDvrZcxZl4tRR3GLalpBTRhG+uoFTQZgxyYuAaaVCRY78IZdq2pkks+eob7uxXmW9Lz5HXyOVNJCAAq8GydtGAbXbGxyo8AqET+cukEykRlnQC0M8o8GB8c5nxAnpTELF4yJa9Fxr3tj95FhhKfPqUw7dLNNURQAowaEBfxNyiIeMrZThFzDJfSxSOxz4nKBufqd96F25eG/o+zGMK9PbmiK+4CQuc0puX8oJk+33aM9JA1ojbleq6EzoNFNkaM9PRbiyKNtqLcWRyYpgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=hvEVYqwUp+KfOMFDBKNDPx+HdrvsxQnJWFKi5DKbB1o=; b=hrHufgMa5K/Q0c9GIQMWePMPlRHnl0hXa2U454uaM6I0M+AsEVrWV/2th+Znp7NuFu3C1YnsOoHMTlE72YUMHutdq87jbgijrezcp/F/pQ5KVn7+T21OTOm+tc4+s/HtXL+et3eFE0c/qjIhUT+TDFDrydUhjBS8ZkBWiXBhWDjWywX7wjl4H9wn1qVztoX0yBSHZic0bzQA0BnN7sM1Yhkcd1xa2cOIBOe5ZEFY4ptHaYyOFIAEUGNsBH/oNP6OWrc2p49NhZcGj+p3cAa1LqfZ4uuZpH+0gvlvGSnuMKkmOqeAbZ4Kd7DFj23TqvBjCSfPtJh4/F+IGJuA13+0hw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hvEVYqwUp+KfOMFDBKNDPx+HdrvsxQnJWFKi5DKbB1o=; b=LlaLPM17yJzj7WLvTEUQojshbZOWO/r9UVogoax56h9VvShzeFbJNR/fxAgTCupnq1SJllfO3es8xECmDd9ryMZ+RnLrxOSr8v2tB1XcUcsdzT+rTDFkuOYFo3Veelbl9/nDakBsIZG8vrMjVv6ieGdZWmyB7AbJaVTTD4c+eFI= Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by CH3PR13MB6656.namprd13.prod.outlook.com (2603:10b6:610:1e1::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.22; Thu, 19 Dec 2024 01:25:30 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833%6]) with mapi id 15.20.8251.008; Thu, 19 Dec 2024 01:25:30 +0000 From: Chaoyong He To: Stephen Hemminger CC: "dev@dpdk.org" , oss-drivers , Nole Zhang Subject: RE: [PATCH] net/nfp: implement the burst mode get operation Thread-Topic: [PATCH] net/nfp: implement the burst mode get operation Thread-Index: AQHbURZk58MlrMf6S0uwIl9JTSS6l7LsNImAgACS44A= Date: Thu, 19 Dec 2024 01:25:30 +0000 Message-ID: References: <20241218063036.1697438-1-chaoyong.he@corigine.com> <20241218083907.0658491e@hermes.local> In-Reply-To: <20241218083907.0658491e@hermes.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR13MB5545:EE_|CH3PR13MB6656:EE_ x-ms-office365-filtering-correlation-id: 0a25de7b-dedf-4b80-4977-08dd1fcc0693 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|1800799024|366016|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?illt5Sd2xcY7c0z3NHZRCDCpU5K8T2xAX3mW8sqjMt5WxSOndlguh3P1hV0e?= =?us-ascii?Q?nSWmmxahY+rYK4rQKUZErA011Xe2DhEGTP7zwK79UcnB4Ju/70YiKoYfuju/?= =?us-ascii?Q?UcEX37sttzk6s1llvPugik9mWTqYoQ1vOtCSIQ0lwBIyqwyUG1nPlQ08pJpF?= =?us-ascii?Q?r8+SKLQ+p3OXpIQcCcQ8O7PcgGezbMrLYGJXLoiHCGupVXeNj41D6eY77Jz6?= =?us-ascii?Q?WaPYE45GKfjMsTmomhRrMIeKP4FgqEHsKhVIeNdrmqB1qYbLayyddwfU+07J?= =?us-ascii?Q?0MFQZikvpAj51Q7hjE2ZGG0qSyCr3e/X+8lxULWY+LB/ywzBHpx84EjkTKGs?= =?us-ascii?Q?GVE+ovBKnYS+uROeOeqmlvHMKwnPUgdN76AOwDCwh+l8aRC/Lxc3JHqVheXa?= =?us-ascii?Q?ZO3Fsnua2ZwkUvswNoeZJWY3v8fue7HnDBfH7gK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eUsl8pSNO+3h7DRi1EJj4uy/rqyfaINY7JE/ueksYlkcPfCsOM2KviAtbp?= =?us-ascii?Q?raMOfucOVOFA8URcVEYuUn5gSnBBFxWWCyj0bobgDMqkLFCW3rQ38v8m8gIy?= =?us-ascii?Q?uleUd5Ie9kP0XztkEfi38RikT86JLAL5?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?nmnQ4+PWxhHDPHjOJxG4TAsVKfW8ajbv8Oc4FX7gHtrKJXjzJrMM4YLgQXL/?= =?us-ascii?Q?cd0TiJ2eq7Z7PE8A2jHtDJd2OUpRNqUAwPVz6J7CGlh6cG/hRz/KPN+A0fY5?= =?us-ascii?Q?ITTl1iEJZHK2lBwanAuR2w8B6c3Bh669znjZI4iM1Vve6m37WK+/Fa+BEAJ0?= =?us-ascii?Q?kj7kPvyzEWSfWq+GbTDTqZXA4N4OV1CeWtUL/1+evhh63JB9UFtWRKXGbemp?= =?us-ascii?Q?4gXxvxvNiWJ/1hrs+1d1PXl+If4R4gl4PiGvG93oykBBE5v+84EmoQZXHhNy?= =?us-ascii?Q?pIUwM7k5h+gggtopMufPL10tU9HLVgNwckz3I2JS2cStBoMeJ9PPNKjR6oll?= =?us-ascii?Q?hnUM/vLo8ELAatPj1mQo3MXX5CSe+SOx8/NWP7O+d4M7KmupddvLlH5/wMTB?= =?us-ascii?Q?Wmb1v7MJ2xHSAqXzlyC/7BTUYREDl6KFZC/ZHZrTN44V2PTjrKVxHShWViNY?= =?us-ascii?Q?xTr4I1mjjq7KQwWoggF+qh8TCuzclt4Rxv7+LJ+OD00pRXjlonD7UX5FXSpl?= =?us-ascii?Q?O3PZgDioa3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tbkumaodfK?= =?us-ascii?Q?WAziVsdts0zJS5NNjYD/IfbiI+SjgmJvXdBxK6/4OfsGWp+e2NnvQS20rfGU?= =?us-ascii?Q?0TAdhRG5kxyyHgQWRBYpSrJGH1hoAEJ+VdDUuUS9/rzzPjm0fvsy8cp1CFK2?= =?us-ascii?Q?0/WOp9ftNgwhN/w8kROmLs9hgyg2WJWL25qWsoQ4?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0a25de7b-dedf-4b80-4977-08dd1fcc0693 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Dec 2024 01:25:30.0440 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 9kO0OBEVqXaCkTbnhM9SsUtZPxlOvYGsv6sGsL9doXrnUb62cPwnz1Zz8EDSei66N5WIEaxW3fWSFU+ycMsEpBSdw3ypfJdG6eZKuBDjT2U= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR13MB6656 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 > On Wed, 18 Dec 2024 14:30:36 +0800 > Chaoyong He wrote: >=20 > > +int > > +nfp_net_rx_burst_mode_get(struct rte_eth_dev *eth_dev, > > + uint16_t queue_id __rte_unused, > > + struct rte_eth_burst_mode *mode) > > +{ > > + eth_rx_burst_t pkt_burst; > > + > > + pkt_burst =3D eth_dev->rx_pkt_burst; > > + if (pkt_burst =3D=3D nfp_net_recv_pkts) { > > + snprintf(mode->info, RTE_ETH_BURST_MODE_INFO_SIZE, > "%s", > > + "Scalar"); > > + } else if (pkt_burst =3D=3D nfp_net_vec_avx2_recv_pkts) { > > + snprintf(mode->info, RTE_ETH_BURST_MODE_INFO_SIZE, > "%s", > > + "Vector AVX2"); > > + } else { > > + return -EINVAL; > > + } > > + > > + return 0; > > +} > > + >=20 > The coccinelle script want to replace that snprintf with strlcpy >=20 > Also don't need {} for one line statement but its ok as is. Okay, I will send a new version patch.