[IPV6]: Convert cork.hop_limit and cork.tclass into u8 instead of int.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Mon, 10 Mar 2008 08:41:33 +0000 (04:41 -0400)
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Tue, 25 Mar 2008 01:23:59 +0000 (10:23 +0900)
Values of those fields are always between 0 and 255 (inclusive),
so use u8 and save some memory on 32bit systems.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
include/linux/ipv6.h

index 2102d8b67c015d22b8f71ed80fdc62b142419cf6..9b59e37afad94f466b7348c3b2eb2dfb231696e4 100644 (file)
@@ -315,8 +315,8 @@ struct ipv6_pinfo {
        struct sk_buff          *pktoptions;
        struct {
                struct ipv6_txoptions *opt;
-               int hop_limit;
-               int tclass;
+               u8 hop_limit;
+               u8 tclass;
        } cork;
 };