From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 8D35D2617 for ; Wed, 2 Mar 2016 12:06:31 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP; 02 Mar 2016 03:06:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,528,1449561600"; d="scan'208";a="899304873" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.70]) ([10.237.220.70]) by orsmga001.jf.intel.com with ESMTP; 02 Mar 2016 03:06:29 -0800 To: Stephen Hemminger References: <1456495841-15749-1-git-send-email-ferruh.yigit@intel.com> <1456846920-28770-1-git-send-email-ferruh.yigit@intel.com> <1456846920-28770-3-git-send-email-ferruh.yigit@intel.com> <20160301151058.6e1731d1@xeon-e3> From: Ferruh Yigit X-Enigmail-Draft-Status: N1110 Message-ID: <56D6C935.3090306@intel.com> Date: Wed, 2 Mar 2016 11:06:29 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <20160301151058.6e1731d1@xeon-e3> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v4 2/4] kcp: add kernel control path kernel module X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2016 11:06:32 -0000 On 3/1/2016 11:10 PM, Stephen Hemminger wrote: > On Tue, 1 Mar 2016 15:41:58 +0000 > Ferruh Yigit wrote: > >> +struct kcp_ethtool_msg { >> + int cmd_id; >> + int port_id; >> + unsigned int flag; >> + char input_buffer[KCP_ETHTOOL_MSG_LEN]; >> + char output_buffer[KCP_ETHTOOL_MSG_LEN]; >> + int input_buffer_len; >> + int output_buffer_len; >> + int err; >> +}; >> + > > In general try and use unsigned where ever it is possible. > Having int and char types was the C style back in Unix, but now > most code use size_t, uint32_t and uint8_t. > Thanks for the comments, this and previous ones, I will update accordingly. > > You seem to be trying to force ethtool into netlink. > There are some others doing that already, so following their work > would be good. > Sure I would like to check them, where can I find them? inside the kernel? Thanks, ferruh