From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id A0A63959 for ; Tue, 16 Dec 2014 16:21:46 +0100 (CET) Received: by mail-wg0-f41.google.com with SMTP id y19so17758220wgg.0 for ; Tue, 16 Dec 2014 07:21:46 -0800 (PST) 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:content-type; bh=8L8ItODDJW+NKD4//a4GQk9dkpClaB2v/7NQ2QXOIKU=; b=QLTwpMWT/kw61RuOQXlcxbaNQqHx7Ct/pDVFEhCKbCDCskC5JF/VIeq/uqotrenpHX YqohZP57ZlI90Kr1ClMsxWmIx3Hi+lVAfLQ4adrTQQ66SS2rGl0rFTkI8gM1JyUiqz3V DGtIUf94uoFWuUWmxdUswSRy6DMBZTa1QR61M5JPX8iO3t1h8ZtfahCQ9IzV7MRgfRXP abg6KSiqIE3FAmL69PhTF/L/80LoGRopixpAw1P8u6Gf4umBPWAJ2ULfHyUgdbRHllBH DF3QsexBEIt4+p4bBlMDQJckNIlfdv2p4Ov5sUZz+BzgqojZmY+G2D3wr9c5apysy0La rgQg== X-Gm-Message-State: ALoCoQm/grlVqXowBDs4oj/Vk1gIsRON06gOssfGmwxpV6Azif10g3rVid1WxR+cgu+IcahMEaL1 X-Received: by 10.180.74.68 with SMTP id r4mr5543953wiv.33.1418743306431; Tue, 16 Dec 2014 07:21:46 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id s9sm2501666wiz.12.2014.12.16.07.21.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Dec 2014 07:21:45 -0800 (PST) From: Thomas Monjalon To: Jincheng Miao Date: Tue, 16 Dec 2014 16:21:20 +0100 Message-ID: <4943955.d3ixVqDNjM@xps13> Organization: 6WIND User-Agent: KMail/4.14.3 (Linux/3.17.4-1-ARCH; KDE/4.14.3; x86_64; ; ) In-Reply-To: <1418275627-17145-1-git-send-email-jmiao@redhat.com> References: <1418275627-17145-1-git-send-email-jmiao@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] kni: fix build on RHEL6.5 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: Tue, 16 Dec 2014 15:21:46 -0000 2014-12-11 13:27, Jincheng Miao: > RHEL6.5 kernel is based on 2.6.32. But there are two changing > from 2.6.35: > 1. socket struct is changed > It wrappered previous wait_queue_head_t of socket to > struct socket_wq. So for the kernel older than 2.6.35, we should > directly use socket->wait instead. > > 2. new function sk_sleep() > This function is implemented from 2.6.35 to obtain wait queue > from struct sock. This patch adds a macro in kni/compat.h > to be compatible with older kernels. I don't understand the relation between RHEL-6.5 and the kernel 2.6.35. The patch seems not related to RHEL at all. Please start your explanations by describing what is the problem you want to solve. Thanks -- Thomas