浏览代码

[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 <yoshfuji@linux-ipv6.org>
YOSHIFUJI Hideaki 17 年之前
父节点
当前提交
4725474584
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      include/linux/ipv6.h

+ 2 - 2
include/linux/ipv6.h

@@ -315,8 +315,8 @@ struct ipv6_pinfo {
 	struct sk_buff		*pktoptions;
 	struct sk_buff		*pktoptions;
 	struct {
 	struct {
 		struct ipv6_txoptions *opt;
 		struct ipv6_txoptions *opt;
-		int hop_limit;
-		int tclass;
+		u8 hop_limit;
+		u8 tclass;
 	} cork;
 	} cork;
 };
 };