From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id F0EF111C5 for ; Mon, 11 Apr 2016 19:04:12 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id n3so113395254wmn.0 for ; Mon, 11 Apr 2016 10:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=ivmmzLagizZQ6zH4gFvulIjaYBMfIoZFzvUMwJbiU6Y=; b=WFPkq09M9vjIQWIZ1lfuZaAouRnFavicf+vvGH0BcWFvKV+z7dyijlZgvL3z9lzMRx hURj6pNvrDx1oqR2Ywu+ct9DntUH1al4hEafr8lfhcF8AUlJfhJUXD1Q4fOCAzdCdoNH MoSzq3P6E/UDCGv6w0/iWv9rOvr5IDAuHaQmuriGBxz2hVtzLdYG+45brCvC3hL+7+1G 1ZqG+VLGoAkBxywYerfOWHzdOnos9xPbOfgawEajY15WXjVCcEwPkTw+cyLgbrDh5ouF 6tfX3/9+TGUVGeCsXHI/5FtS7thEo3o6GrDcaLDQBJQK2jqYEzqSEhCHDttqFx2s+IW2 v3Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=ivmmzLagizZQ6zH4gFvulIjaYBMfIoZFzvUMwJbiU6Y=; b=WfulCVYoX88u6GaK00aK9DFb+63Isf0GOZgFQK1mTsvv5Ln/MDc++yCbFauPLU7v9I 2jgllJrh4jNCOU/93ut164fiKMKm/IAD2jJETiws3Ln+b+JheVXXtaCaUbhu6xkaFhW/ 1nUdhDRg8orGU4Rlw/gfToDrFPeBH+CCiz4ol/62g9d7bi+5xjwrYHc9TX3GwQJ/hwQn 74YstLN6dJN+GWPWs8+hT87P/nBri+s0xItqAB0EVsFOVEQJx9efM3PDNE0uqZ+TD9Ad BIQKgfO5LcIudb4T0uDsQi8fVq2VvVjtFfnnaFWkb/iHOfsw+bx/SvQqeubK95PCKeVJ DeNA== X-Gm-Message-State: AD7BkJK5uCx07Yw7eOfB3RlSM+Ir9zbg0ZMVRWr9u+CY4YjfcXmxusjspizxIbYos2L5q2Mm X-Received: by 10.194.175.33 with SMTP id bx1mr25095580wjc.104.1460394252786; Mon, 11 Apr 2016 10:04:12 -0700 (PDT) Received: from xps13.localnet (245.111.75.86.rev.sfr.net. [86.75.111.245]) by smtp.gmail.com with ESMTPSA id u16sm18450912wmd.5.2016.04.11.10.04.11 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Apr 2016 10:04:12 -0700 (PDT) From: Thomas Monjalon To: Ferruh Yigit Cc: dev@dpdk.org, Helin Zhang Date: Mon, 11 Apr 2016 19:04:10 +0200 Message-ID: <1669957.aOl2YMNTtp@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1460393668-17719-1-git-send-email-ferruh.yigit@intel.com> References: <1460393668-17719-1-git-send-email-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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:04:13 -0000 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