[dpdk-dev] [PATCH] igb_uio: cast private data to correct struct type
Thomas Monjalon
thomas.monjalon at 6wind.com
Mon Mar 7 23:29:42 CET 2016
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 at intel.com>
>
> Acked-by: Konstantin Ananyev <konstantin.ananyev at intel.com>
Applied, thanks
More information about the dev
mailing list