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 5112D45F65; Sat, 28 Dec 2024 17:39:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 18CFF40289; Sat, 28 Dec 2024 17:39:13 +0100 (CET) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 8B2C640280 for ; Sat, 28 Dec 2024 17:39:11 +0100 (CET) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id 3004820E7E; Sat, 28 Dec 2024 17:39:11 +0100 (CET) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [PATCH v2 1/8] net/ioring: introduce new driver Date: Sat, 28 Dec 2024 17:39:08 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F979@smartserver.smartshare.dk> In-Reply-To: <20241211162904.121695-2-stephen@networkplumber.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH v2 1/8] net/ioring: introduce new driver Thread-Index: AdtL6dWhRVzR7VmISruOMqoreA2pUgNWorWQ References: <20241210212757.83490-1-stephen@networkplumber.org> <20241211162904.121695-1-stephen@networkplumber.org> <20241211162904.121695-2-stephen@networkplumber.org> From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "Stephen Hemminger" , 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 > + int features =3D 0; > + if (ioctl(tap_fd, TUNGETFEATURES, &features) < 0) { > + PMD_LOG(ERR, "ioctl(TUNGETFEATURES) %s", strerror(errno)); > + goto error; > + } > + > + int flags =3D IFF_TAP | IFF_MULTI_QUEUE | IFF_NO_PI; > + if ((features & flags) =3D=3D 0) { Comparison will only fail if all three flags are missing. Should be: if ((features & flags) !=3D flags) { > + PMD_LOG(ERR, "TUN features %#x missing support for %#x", > + features, features & flags); Should be: features, (features & flags) ^ flags); > + goto error; > + }