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 03AB2A046B for ; Mon, 24 Jun 2019 18:48:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 317C21BD32; Mon, 24 Jun 2019 18:47:35 +0200 (CEST) Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by dpdk.org (Postfix) with ESMTP id A97281BCEA for ; Mon, 24 Jun 2019 18:47:26 +0200 (CEST) Received: by mail-pg1-f195.google.com with SMTP id 196so7421391pgc.6 for ; Mon, 24 Jun 2019 09:47:26 -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=ADVLDlBqJn9ZDTQINzcbWsrdQD6fQtDXWeQNLT2kiRM4hrc07rPh+Ry6KeaQiqVLhr 05MIoZsSb3d3ExAFuwPWsk96cmVtBHtY2wlzi1i4alF2ewObwXkshPsmy9rZZUfP+O1I XRQ18lWTuqwm7Zo4iJ0w0KDJmIhfi9p4X04vSX83bA8PzAbxicxXZcSGHK/jUVqqVHas m8kFtHt3no1kowgqcSbHfzlngOFDKtNwO+fVzoaMRpPrtsc5rDRwEiOq9gU11akmNg5u RdPfUOoK/IIy/BjW2pmEEvx76gzHl5lkein5xdH4cyhCfAMh1G0NtEqlatpOJwNcHlGt kP6Q== 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=eR+BAR1uaQ+QoTwemFr+++5rfyP66/1RykZxKfHcN7weqM7Sy813xkkRjP8aK35ZNI b8K5PThvpBqmEg2rXVFGdGFOlZVcdSLeJv7x2y3DDNcQFmoHuunFlvg+expKY/l8f7Ej GqrE/ZCjMFnxTIynFO6HW2EWBZ+80fsgAvE3miLXGkbSeuLshzyODx1x3dqjb0j4ZjBn hXaW+gTN5omPJhSG7WQT4/fI+C5d048Wx5YobsYh9PxZXN02bYarW1kFZwrUk6IaXf3x JG0dQArnCo0HPAQXopHGEYD59gKfGEOJNSCJ33XABkuvAG1zuw20AXPX7Q4QbYvyKXKJ boEg== X-Gm-Message-State: APjAAAWI0S74AbpOJglD2+AFrZNR8GAI3/YlNu+MpRIC292uOs0ZsyhH NX/d2uOXL9m/yMnmbbGUvlwigtwFgdM= X-Google-Smtp-Source: APXvYqweB4nhVSN5TUPapsEZR7a6mVlWNrPhuUTF042G2qsKsbaNUFNcLdYVoRirtwjCknAUAbMInQ== X-Received: by 2002:a63:78c3:: with SMTP id t186mr34905209pgc.340.1561394845556; Mon, 24 Jun 2019 09:47:25 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id f7sm12814023pfd.43.2019.06.24.09.47.24 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 24 Jun 2019 09:47:24 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Mon, 24 Jun 2019 09:47:09 -0700 Message-Id: <20190624164714.6560-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190624164714.6560-1-stephen@networkplumber.org> References: <20190610175155.21374-1-stephen@networkplumber.org> <20190624164714.6560-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v6 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