On 12/16/2011 04:00 AM, Richard Yang wrote:
> On Fri, Dec 16, 2011 at 02:23:59AM -0200, Lucas Meneghel Rodrigues wrote:
>> Let's keep it simple and use the approach taken on the patch you
>> sent. If more people do need that for their own archs, the'll send
>> patches to the mailing list... Now, by looking at your patch, the
>> only value different among the 2 archs is:
>>
>> IFF_TAP        = 0x2
>>
>> am I correct? If so, we could only have that particular value to
>> change among architecture, saving  some lines of code.
> The different ones are:
>
> if ARCH == "ppc64":
>         # From include/linux/sockios.h
>         # From linux/include/linux/if_tun.h
>         TUNSETIFF      = 0x800454ca
>         TUNGETIFF      = 0x400454d2
>         TUNGETFEATURES = 0x400454cf
> else:
>         # From include/linux/sockios.h
>         # From linux/include/linux/if_tun.h
>         TUNSETIFF      = 0x400454ca
>         TUNGETIFF      = 0x800454d2
>         TUNGETFEATURES = 0x800454cf
>

Ok, applied, thanks!
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to