From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v8 2/4] unci: add kernel control path kernel module Date: Fri, 30 Jun 2017 18:02:27 +0100 Message-ID: References: <20170526165228.96919-1-ferruh.yigit@intel.com> <20170621110651.75299-1-ferruh.yigit@intel.com> <20170621110651.75299-3-ferruh.yigit@intel.com> <20170621082323.3c39a2d0@xeon-e3> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org, anatoly.burakov@intel.com, Bruce Richardson To: Stephen Hemminger Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 272E37CD0 for ; Fri, 30 Jun 2017 19:02:32 +0200 (CEST) In-Reply-To: <20170621082323.3c39a2d0@xeon-e3> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 6/21/2017 4:23 PM, Stephen Hemminger wrote: > On Wed, 21 Jun 2017 12:06:49 +0100 > Ferruh Yigit wrote: > >> +static struct ethtool_input_buffer { >> + int magic; >> + void *buffer; >> + size_t length; >> + struct completion *msg_received; >> + int *err; >> + u32 in_use; >> +} ethtool_input_buffer > > Naming in kernel is important. This isn't kernel ethtool, so it shouldn't be named that. I have updated naming on v9. > > Having a single instance per system for a control interface means it won't work > if multiple apps have control channel open or in containers. This should work for multiple add and interfaces, unci_nl_exec() serializes the requests, above struct used for output buffer indirection. I am not sure how to handle requests without serializing them ... > > You should also do policy validation on the netlink message. I will send a new version with this. >