From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v9 10/20] unci: init netlink Date: Fri, 30 Jun 2017 10:28:18 -0700 Message-ID: <20170630102818.0b335187@xeon-e3> References: <20170621110651.75299-1-ferruh.yigit@intel.com> <20170630165140.59594-1-ferruh.yigit@intel.com> <20170630165140.59594-11-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, Bruce Richardson , Anatoly Burakov To: Ferruh Yigit Return-path: Received: from mail-pg0-f47.google.com (mail-pg0-f47.google.com [74.125.83.47]) by dpdk.org (Postfix) with ESMTP id 54D315323 for ; Fri, 30 Jun 2017 19:28:21 +0200 (CEST) Received: by mail-pg0-f47.google.com with SMTP id j186so66642774pge.2 for ; Fri, 30 Jun 2017 10:28:21 -0700 (PDT) In-Reply-To: <20170630165140.59594-11-ferruh.yigit@intel.com> 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 Fri, 30 Jun 2017 17:51:30 +0100 Ferruh Yigit wrote: > #define UNCI_DEVICE "unci" > > +#define UNCI_NL_GRP 31 > + > +#define UNCI_NL_MSG_LEN 500 > +struct unci_nl_msg { > + uint32_t cmd_id; > + uint8_t port_id; > + uint32_t flag; > + uint8_t input_buffer[UNCI_NL_MSG_LEN]; > + uint8_t output_buffer[UNCI_NL_MSG_LEN]; > + size_t input_buffer_len; > + size_t output_buffer_len; > + int err; > +}; > + > enum { > IFLA_UNCI_UNSPEC, Kernel code should not use uint32_t or uint8_t. Stick to __u32 and __u8