From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <thomas.monjalon@6wind.com>
Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43])
 by dpdk.org (Postfix) with ESMTP id 5696F29D2
 for <dev@dpdk.org>; Mon,  7 Mar 2016 23:31:21 +0100 (CET)
Received: by mail-wm0-f43.google.com with SMTP id l68so4585714wml.1
 for <dev@dpdk.org>; Mon, 07 Mar 2016 14:31:21 -0800 (PST)
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=ZkR9hkjI/JHn5/2asUzwLlOUWF86Sb+8Z9rRQNIbdrA=;
 b=X6Ww5owoP2uDHID5jITM2hhoExzoqNIHzdYrv8XY6SMRBVkWDGEYasrMmDIwBtvWhe
 ggS825UxkI+VRR8CDNAwdN3/N0VlDXbCCHtGdjcLT+UF7CMWuXRsecgfB738P2a/Odge
 lb4P6cNTKsIlkHuH2Dn0dnVp2MovXmfbPqGAj+PSg9cE4G+60K1mxYCZFGytvduZPG2M
 LkyvHtaUD9NNcvLEMEdyV1h8QqLa+0nwYBrU/qJxYHCuj3JUJhtFNYicds8mhSvkxRWs
 HVRKoC0oOlp+AKxGYXYlFHGrCjRFR0dE2j3zOTgr7U26J6mbV5Co8rJ8lr4DWrMRw87o
 /Q6g==
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=ZkR9hkjI/JHn5/2asUzwLlOUWF86Sb+8Z9rRQNIbdrA=;
 b=YdIBC3VzdGGXLzTRXOWVlP7+2Fz2oSEZIxepQ2wR5KLwmhMedvcK/f2DZfMt2DFsCD
 b2oTs1oKxrSz0BwVcmUfp9QtDRbNhdDhULEWS7MGzH7UCcx8ziqiEYblqAAYQ1VPu0GD
 zCYrDEJEHggSvhQ6Jm/Z+ET5N2p9vcYOBeI60pV3+9zug0s9IITVSyqlGSx6xynB00AX
 kQ/tiqLla06xjf+YTf7XGzpT6mcJm4huO+9wQzZfaTpTcqAL3xQ4XosU99jQhryNCwWs
 S6ExrfMGuEtxfIoplY0ipFDPFKPiqoeEYThZxFMXNz4ioPk97MLkMhut5mWyT7+/n33q
 q7dw==
X-Gm-Message-State: AD7BkJLUNyBqBwcY0X3TzPztHzx1ysk5ex0hPDQNpvBFEVvQb+TtHJe/tQ/X9Qt94ALZjRcW
X-Received: by 10.28.156.146 with SMTP id f140mr7771798wme.99.1457389881164;
 Mon, 07 Mar 2016 14:31:21 -0800 (PST)
Received: from xps13.localnet (171.36.101.84.rev.sfr.net. [84.101.36.171])
 by smtp.gmail.com with ESMTPSA id z6sm309985wme.9.2016.03.07.14.31.19
 (version=TLSv1/SSLv3 cipher=OTHER);
 Mon, 07 Mar 2016 14:31:20 -0800 (PST)
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: "Yigit, Ferruh" <ferruh.yigit@intel.com>
Date: Mon, 07 Mar 2016 23:29:42 +0100
Message-ID: <1483778.aRTeyB1ERv@xps13>
Organization: 6WIND
User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; )
In-Reply-To: <2601191342CEEE43887BDE71AB97725836B163EF@irsmsx105.ger.corp.intel.com>
References: <1457024900-18245-1-git-send-email-ferruh.yigit@intel.com>
 <2601191342CEEE43887BDE71AB97725836B163EF@irsmsx105.ger.corp.intel.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] igb_uio: cast private data to correct struct
	type
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Mon, 07 Mar 2016 22:31:21 -0000

2016-03-04 13:17, Ananyev, Konstantin:
> > Subject: [dpdk-dev] [PATCH] igb_uio: cast private data to correct struct type
> > 
> > Fixes: af75078fece3 ("first public release")
> > 
> > This was working fine because addresses of two structs are same:
> > 
> > struct A {
> > 	struct B b;
> > } a;
> > 
> > As above sample "a" and "b" has same address.
> > 
> > Now casting private data back to the correct struct type, to the one
> > stored.
> > 
> > Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
> 
> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>

Applied, thanks