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 924D6A0471 for ; Thu, 20 Jun 2019 21:21:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D31891D481; Thu, 20 Jun 2019 21:21:14 +0200 (CEST) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by dpdk.org (Postfix) with ESMTP id 969C91D469 for ; Thu, 20 Jun 2019 21:21:02 +0200 (CEST) Received: by mail-pf1-f193.google.com with SMTP id d126so2218269pfd.2 for ; Thu, 20 Jun 2019 12:21:02 -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=BwV/bLfNBEHbbWxYej1CZA4dAMgB1xEzqt3/qXzzhdI=; b=fJvP8pDXSA9WHia4KYz88MUXsnYOGhu2if9O2y0cYLw/+OodVLVxMsXAj2zrxbCAj6 9Z8flDM0IiXP3i9GMjD3qib3a74QcrotbUvJIyYg3KER5A7upNXZMUxqsPBk2wA+7lUm AGzv+MFv73yUueAqLa9xL2TFLfpYEl7m191D9GrIKwSNQB5zu37ElKl+kA1avs9brktB dknYrbXdnvqzp9VMNfrV1Ys84GBEevCqu4VeB8I0cVFx5frhcEzmmeZn8wammsfOGppu F8ncuil8QIdO8VMSDLgJ1me1uZqyI7vB87i4hbZpa1LXmgIRPWr4LDKAXypRdvad8AtB Rjlw== 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=BwV/bLfNBEHbbWxYej1CZA4dAMgB1xEzqt3/qXzzhdI=; b=poXK2otLYYHsMtmgufCp8QQ7RAwp6qDtyo3NmhI4Tt7K8AY6gTZ+/mIm3SVDTWnUj5 +dUL7f0IknCJU00blenfynZgNEiENufeH9np5uHVROurf0ffNJ1DPBmErJMA9MVO/Stj eIcM8ORlkJXcjRV7BjPhclXdPZkMrQBQd+Qn6LSG8ek2uGV2zB9JSHLV5Cr98yBF397k KPXz+MEabjr774rGl3dwgC283oH3uVrH0PuikvGfOa2OZDNUGdG0af+p9uKOvlyIdS/F ChKTcqU8hRfQLtWbZ/inCvAUK+q95g2dGwGRozGwzbbdIvXLyYfN0AJMnOtaPgWG/l6A moAQ== X-Gm-Message-State: APjAAAWbjEr+OfZUQVVPOa9x2J3dY95fPStOR8HYUBehN6b+3Hr2A+Gb NMLbVa18aYmpBWnFKiEfAvohr+6k+yk= X-Google-Smtp-Source: APXvYqxLR5JZHnPt3r6JMTfSWF9iXT5J6wxQoPZJMvhPfNn3VuaGHWMYxXIOcptHdC01bvrTD2sy+w== X-Received: by 2002:a63:1658:: with SMTP id 24mr13745964pgw.167.1561058461464; Thu, 20 Jun 2019 12:21:01 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id j11sm255703pfa.2.2019.06.20.12.21.00 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 20 Jun 2019 12:21:00 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Thu, 20 Jun 2019 12:20:43 -0700 Message-Id: <20190620192048.13814-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190620192048.13814-1-stephen@networkplumber.org> References: <20190610175155.21374-1-stephen@networkplumber.org> <20190620192048.13814-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v5 4/9] kni: drop unused fields 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" Several fields were either totally unused or set and never used. Signed-off-by: Stephen Hemminger --- kernel/linux/kni/kni_dev.h | 5 ----- kernel/linux/kni/kni_misc.c | 1 - 2 files changed, 6 deletions(-) diff --git a/kernel/linux/kni/kni_dev.h b/kernel/linux/kni/kni_dev.h index 21e4b0d92368..f3e6c3ca4efa 100644 --- a/kernel/linux/kni/kni_dev.h +++ b/kernel/linux/kni/kni_dev.h @@ -39,8 +39,6 @@ struct kni_dev { /* kni list */ struct list_head list; - int status; - uint16_t group_id; /* Group ID of a group of KNI devices */ uint32_t core_id; /* Core ID to bind */ char name[RTE_KNI_NAMESIZE]; /* Network device name */ struct task_struct *pthread; @@ -79,9 +77,6 @@ struct kni_dev { /* mbuf size */ uint32_t mbuf_size; - /* synchro for request processing */ - unsigned long synchro; - /* buffers */ void *pa[MBUF_BURST_SZ]; void *va[MBUF_BURST_SZ]; diff --git a/kernel/linux/kni/kni_misc.c b/kernel/linux/kni/kni_misc.c index 1fc5eeb9c8ca..b59cf24c2184 100644 --- a/kernel/linux/kni/kni_misc.c +++ b/kernel/linux/kni/kni_misc.c @@ -346,7 +346,6 @@ kni_ioctl_create(struct net *net, uint32_t ioctl_num, kni = netdev_priv(net_dev); kni->net_dev = net_dev; - kni->group_id = dev_info.group_id; kni->core_id = dev_info.core_id; strncpy(kni->name, dev_info.name, RTE_KNI_NAMESIZE); -- 2.20.1