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 32752A04FD; Wed, 8 Jun 2022 14:50:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1048842BAD; Wed, 8 Jun 2022 14:50:09 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 2537242BA6 for ; Wed, 8 Jun 2022 14:50:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654692607; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4heNLp8HKGiHAhxl/AoxVpErXAiefbfT/8DnH6EjJcg=; b=aWjlRJQYpfcNfsdPqfOMXXL6eYzBLFdZLjHzHwqH3+UN5GiklCzwZ9DbhWJWUC5kHKe76k mp2mQyMgvG2whWjBOSS6t6KriHJwuEZSWllDEBJ8G8oAJmMNCuUoAxisNqqbOHUpZVR/LK NGMn3OwqsnrbjXEGUT+y+YbGO10TMkI= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-618-pdIuU9NTNlKzqrgJjxCZ-g-1; Wed, 08 Jun 2022 08:50:04 -0400 X-MC-Unique: pdIuU9NTNlKzqrgJjxCZ-g-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3AB32101AA46; Wed, 8 Jun 2022 12:50:04 +0000 (UTC) Received: from max-t490s.redhat.com (unknown [10.39.208.20]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7C2EA40CF8E8; Wed, 8 Jun 2022 12:50:02 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, jasowang@redhat.com, chenbo.xia@intel.com, david.marchand@redhat.com, olivier.matz@6wind.com, wenwux.ma@intel.com, yuying.zhang@intel.com, aman.deep.singh@intel.com Cc: Maxime Coquelin Subject: [PATCH v2 4/6] net/vhost: make VLAN stripping flag a boolean Date: Wed, 8 Jun 2022 14:49:44 +0200 Message-Id: <20220608124946.102623-5-maxime.coquelin@redhat.com> In-Reply-To: <20220608124946.102623-1-maxime.coquelin@redhat.com> References: <20220608124946.102623-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true 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 This trivial patch makes the vlan_strip field of the pmd_internal struct a boolean, since it is handled as such. Signed-off-by: Maxime Coquelin Reviewed-by: Chenbo Xia --- drivers/net/vhost/rte_eth_vhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c index 1620e30df8..e931d59053 100644 --- a/drivers/net/vhost/rte_eth_vhost.c +++ b/drivers/net/vhost/rte_eth_vhost.c @@ -88,7 +88,7 @@ struct pmd_internal { uint16_t max_queues; int vid; rte_atomic32_t started; - uint8_t vlan_strip; + bool vlan_strip; }; struct internal_list { -- 2.35.3