From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by dpdk.space (Postfix) with ESMTP id 4AF56A0471
	for <public@inbox.dpdk.org>; Wed, 19 Jun 2019 20:57:59 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 47E781D0D6;
	Wed, 19 Jun 2019 20:57:57 +0200 (CEST)
Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com
 [209.85.210.196]) by dpdk.org (Postfix) with ESMTP id 71C581D0BA
 for <dev@dpdk.org>; Wed, 19 Jun 2019 20:57:55 +0200 (CEST)
Received: by mail-pf1-f196.google.com with SMTP id r7so146895pfl.3
 for <dev@dpdk.org>; Wed, 19 Jun 2019 11:57:55 -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=b+OqM0LOuYQExTQyKE0Tv3pE8WHaIDO+TqPDbMwn7TY=;
 b=jfkeqgYtdCQD6jx5sjT1e3yhFaUM+J1+FBXuzQg0pVD14SuXBMdhbkGilO4iNfTP/N
 wYBxfKz5krdNOrU1HIzqx+wb5LcrkY4vevzvTBm0AXIwv8JVDHUClKY3n4e4PL8+n5IY
 s4PyEV19W/1jYQPZop1PYMH4ZN0Jt0keO7kr88TgrMBO6sUQij8Z1mb8xi0vQtF88llW
 2nCnKIu7uSvH+5PSPpqtsTR7cAw8ThQN747oQ9KPZdV2YgXsopZ7ci+ouYAo8FSGehMf
 tMSDk1zkI6M81KDBXQWL3dmswD2LDkT0vL/yR5gcWEMNBsvOXAn+ZB9JKqajS1GL1faQ
 idFQ==
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=b+OqM0LOuYQExTQyKE0Tv3pE8WHaIDO+TqPDbMwn7TY=;
 b=NSx5fKWW4PDlJMYi1u4BmO5J8PqOjtyIfKl+7BaWLU/xRsQUccIdHnJme9SrBIcUY2
 ufli93e1W4xBESo6yFw5OlbUpd4RkoPN2B4dKNk1yQo2dtPHObAs8CslxV5vX396X2LP
 N3gJa9r6oNasFtTT9l3WW/AzV158QsJ6xQzLhtWtUtVZkWTfKPPhUtx3au7iGBsLAMwp
 GjK0TMMhtIRjOUPdUoH0bfPJJCU+yh0tNoYl+ysGSOsAf8E0JCXIClnLxkbUVtlBeIMx
 Q55bIC0C0/CAeBsi9YdSQkGohmc1ScRt8VAbTSmgZX6zsDfAnQkwwmRJ3t61aNxwXLha
 teEw==
X-Gm-Message-State: APjAAAVOXG8eEmcMbX9VHCm5oNeI4cF+jSeMkjAEY5JiBCjHBBji/pcy
 WNNRGXqrD5JoJEwbUFheASOE5ud5hUc=
X-Google-Smtp-Source: APXvYqxSEKrJxXuweHVuXyoQtnW9Wn3qnTv9YChCzP3KOYXHzWzQMeh/GQP6DzQg7wibh7xDBu2KdA==
X-Received: by 2002:a17:90a:290b:: with SMTP id
 g11mr12648227pjd.122.1560970674502; 
 Wed, 19 Jun 2019 11:57:54 -0700 (PDT)
Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127])
 by smtp.gmail.com with ESMTPSA id b8sm24774858pff.20.2019.06.19.11.57.53
 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256);
 Wed, 19 Jun 2019 11:57:53 -0700 (PDT)
From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Cc: Stephen Hemminger <stephen@networkplumber.org>
Date: Wed, 19 Jun 2019 11:57:38 -0700
Message-Id: <20190619185746.26866-1-stephen@networkplumber.org>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20190610175155.21374-1-stephen@networkplumber.org>
References: <20190610175155.21374-1-stephen@networkplumber.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [dpdk-dev] [PATCH v3 0/8] kni: cleanups and fixes
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

While testing KNI with netvsc, saw lots of places more code
could be safely removed from KNI kernel driver.

This is still mostly "putting lipstick on a pig" all users
would be better off using virtio_user rather than KNI.

v3 - more style cleanups in last patch
v2 - get rid of unnecessary padding, combine the unused field patches

Stephen Hemminger (8):
  kni: don't need stubs for rx_mode or ioctl
  kni: use netdev_alloc_skb
  kni: don't keep stats in kni_net
  kni: drop unused fields
  kni: use proper type for kni fifo's
  kni: return -EFAULT if copy_from_user fails
  doc: update KNI documentation
  kni: fix style issues

 .../sample_app_ug/kernel_nic_interface.rst    | 18 ++---
 kernel/linux/kni/kni_dev.h                    | 18 ++---
 kernel/linux/kni/kni_misc.c                   | 17 ++--
 kernel/linux/kni/kni_net.c                    | 79 +++++--------------
 lib/librte_kni/rte_kni.c                      | 38 ++++-----
 5 files changed, 57 insertions(+), 113 deletions(-)

-- 
2.20.1