From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 96B4EA0471 for ; Tue, 18 Jun 2019 18:17:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F0A131C23C; Tue, 18 Jun 2019 18:16:58 +0200 (CEST) Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by dpdk.org (Postfix) with ESMTP id 4CD761C220 for ; Tue, 18 Jun 2019 18:16:51 +0200 (CEST) Received: by mail-pf1-f194.google.com with SMTP id c85so7955635pfc.1 for ; Tue, 18 Jun 2019 09:16:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MaX/9U1VKQDRlwJP1eh9LKqP+HAkhTNljy8r1/SknpU=; b=1LsYBKOnOMM8XoV2jH4ihDku+vZC4+KhVdlI/BpSD0AuBvDnSR6TH7lg8BKD9JzG2J 5sZguU4es0SqEpTYNRCbYuCEvSCgaz3LJHK9PjPwxFn1Iar3pdAXKQmol7QGlFghmhhY 9OxMXttg8zSIH283ZtmqOgLbZTFO/DoDrLppMZ8gI1vmvbPuRmrswvonFSNbgHKSeEqh dWw2Fs+3PaHXe59LV7Wodtg1EdNBfSXxH84EBDtAEw/Mp4wlcLMqRMM5JcuvyFrTVQO7 mm4L+qc50pSildLTc9EkNMAx9pSkPICXeVXSzGeRp1SVB3j3KJWpZ3fzOd7/HuHEXbQr LcVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MaX/9U1VKQDRlwJP1eh9LKqP+HAkhTNljy8r1/SknpU=; b=ME0yWUcD0IjgIin/1q+JBUaa88DfiDr6aL6ooIyy5DK6Tn/IhzC8ZYts8VGy0wMoEP C7I4tsVOcSGrMjakevUuNpMFCfwFlOCIEuQXh4mSDOPlIEqtHZVGyJWK5sliEW7Cxt3o tKQa6tMuiIlj5Q+G8PeD/F5c/D30Z8EyManP8NOWRRMZiK7TR5EpPZeiuN3XUfXvwVoc TlgsL+hftGhb4tqxh0oXfm2A9VF6mHPYYUrAQQWT8Lcxn6n60UrrcPzn/itwc+VjTA2s oyllpvKJfw15WHBJiF2i9SgEKO+NhaOQ2AXEyOIQftb3mAS6z0prR4rMgpRahvKmxiLq CJvg== X-Gm-Message-State: APjAAAXwzYkAxHyJEY8HckDwQ8q9ioQFfkeWPsHz50Dy6IsECOsTPuBy IMd8kfWuNbZFQv3BZz6MgechAFEj7SE= X-Google-Smtp-Source: APXvYqyWztEr8hTpvGICKWb7lQK9WNn1Wx96vP/4J+eZ4xUDgtGT8pPaISBq9FavRFjT/w/xnjuIFw== X-Received: by 2002:a65:5202:: with SMTP id o2mr3152440pgp.199.1560874610247; Tue, 18 Jun 2019 09:16:50 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id 3sm15485385pfp.114.2019.06.18.09.16.49 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 18 Jun 2019 09:16:49 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Tue, 18 Jun 2019 09:16:33 -0700 Message-Id: <20190618161636.23748-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190618161636.23748-1-stephen@networkplumber.org> References: <20190610175155.21374-1-stephen@networkplumber.org> <20190618161636.23748-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 5/8] kni: use proper type for kni fifo's X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Using void * instead of proper type is unsafe practice. Signed-off-by: Stephen Hemminger --- kernel/linux/kni/kni_dev.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel/linux/kni/kni_dev.h b/kernel/linux/kni/kni_dev.h index f3e6c3ca4efa..ceba5f73c1d9 100644 --- a/kernel/linux/kni/kni_dev.h +++ b/kernel/linux/kni/kni_dev.h @@ -51,22 +51,22 @@ struct kni_dev { struct net_device *net_dev; /* queue for packets to be sent out */ - void *tx_q; + struct rte_kni_fifo *tx_q; /* queue for the packets received */ - void *rx_q; + struct rte_kni_fifo *rx_q; /* queue for the allocated mbufs those can be used to save sk buffs */ - void *alloc_q; + struct rte_kni_fifo *alloc_q; /* free queue for the mbufs to be freed */ - void *free_q; + struct rte_kni_fifo *free_q; /* request queue */ - void *req_q; + struct rte_kni_fifo *req_q; /* response queue */ - void *resp_q; + struct rte_kni_fifo *resp_q; void *sync_kva; void *sync_va; -- 2.20.1