From: YOSHIFUJI Hideaki Date: Mon, 10 Mar 2008 08:41:33 +0000 (-0400) Subject: [IPV6]: Convert cork.hop_limit and cork.tclass into u8 instead of int. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4725474584d6aa2f07b3d47442dfbc4f6544f65e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [IPV6]: Convert cork.hop_limit and cork.tclass into u8 instead of int. 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 --- diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h index 2102d8b67c01..9b59e37afad9 100644 --- a/include/linux/ipv6.h +++ b/include/linux/ipv6.h @@ -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; };