From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 93442B62 for ; Mon, 11 Apr 2016 19:57:23 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP; 11 Apr 2016 10:57:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,462,1455004800"; d="scan'208";a="684514559" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.215]) ([10.237.220.215]) by FMSMGA003.fm.intel.com with ESMTP; 11 Apr 2016 10:57:21 -0700 To: Thomas Monjalon References: <1460393668-17719-1-git-send-email-ferruh.yigit@intel.com> <1669957.aOl2YMNTtp@xps13> Cc: dev@dpdk.org, Helin Zhang From: Ferruh Yigit Message-ID: <570BE580.7000900@intel.com> Date: Mon, 11 Apr 2016 18:57:20 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <1669957.aOl2YMNTtp@xps13> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] kni: fix vhost-kni compile errors 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: Mon, 11 Apr 2016 17:57:24 -0000 On 4/11/2016 6:04 PM, Thomas Monjalon wrote: > 2016-04-11 17:54, Ferruh Yigit: >> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,4,0) >> + (!test_and_set_bit(SOCKWQ_ASYNC_NOSPACE, &q->sock->flags) && >> +#else >> (!test_and_set_bit(SOCK_ASYNC_NOSPACE, &q->sock->flags) && >> +#endif > > You could avoid some issues with backported feature by using > #ifdef SOCKWQ_ASYNC_NOSPACE > Right, I am sending a new version. Regards, ferruh