From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Subject: Re: [RFC net-next 4/6] netdevsim: add software driver for testing offloads Date: Fri, 24 Nov 2017 08:24:10 +0100 Message-ID: <20171124072410.GA3384@nanopsycho> References: <20171124023613.16855-1-jakub.kicinski@netronome.com> <20171124023613.16855-5-jakub.kicinski@netronome.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, oss-drivers@netronome.com, daniel@iogearbox.net, alexei.starovoitov@gmail.com To: Jakub Kicinski Return-path: Received: from mail-wm0-f51.google.com ([74.125.82.51]:42193 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751588AbdKXHYM (ORCPT ); Fri, 24 Nov 2017 02:24:12 -0500 Received: by mail-wm0-f51.google.com with SMTP id 124so3788297wmv.1 for ; Thu, 23 Nov 2017 23:24:12 -0800 (PST) Content-Disposition: inline In-Reply-To: <20171124023613.16855-5-jakub.kicinski@netronome.com> Sender: netdev-owner@vger.kernel.org List-ID: Fri, Nov 24, 2017 at 03:36:11AM CET, jakub.kicinski@netronome.com wrote: >To be able to run selftests without any hardware required we >need a software model. The model can also serve as an example >implementation for those implementing actual HW offloads. >The dummy driver have previously been extended to test SR-IOV, >but the general consensus seems to be against adding further >features to it. > >Signed-off-by: Jakub Kicinski >Reviewed-by: Simon Horman >--- [...] >+++ b/drivers/net/netdevsim/netdev.c >@@ -0,0 +1,136 @@ >+/* >+ * Copyright (C) 2017 Netronome Systems, Inc. >+ * >+ * This software is dual licensed under the GNU General License Version 2, >+ * June 1991 as shown in the file COPYING in the top-level directory of this >+ * source tree or the BSD 2-Clause License provided below. You have the >+ * option to license this software under the complete terms of either license. >+ * >+ * The BSD 2-Clause License: Why gpl2 is not enough for this?