[lkml]   [2002]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH][RFC 5] cleaning up struct sock

This one turns IP_SK and IP6_PINFO usage the style TCP_PINFO and to
some extent IP6_PINFO (and its previous equivalents, sk->tp_pinfo.af_tcp
and sk->net_pinfo.ipv6), i.e., using a local variable to hold the result of
IP_SK/IP6_PINFO/TCP_PINFO and use this variable instead of the ugly
MACRO()->struct_member style. It also fixed a simple error in IP6_PINFO
that was causing oopses on IPv6 connections (it was using the tcp area).

The fs unbork patch by Daniel Phillips also uses the same approach
wrt local variables.

It still doesn't make the IPv6 family protocols use each a private
slabcache, i.e., there's still only one slabcache for all IPv6 protocols,
I'll work on this RSN.

Patch available at:

Comments and test results are welcome.

- Arnaldo
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:18    [W:0.038 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site