Commit 15f9f6f1 authored by Thomas Graf's avatar Thomas Graf

[NET] Reorder struct ipv6_pinfo

Converts hop_limit and mcast_hops to signed 16 bit types saving 4 bytes
on 32bit archs and another 4 bytes on 64bit archs.
Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0568d1a2
......@@ -209,8 +209,8 @@ struct ipv6_pinfo {
__u32 flow_label;
__u32 frag_size;
int hop_limit;
int mcast_hops;
__s16 hop_limit;
__s16 mcast_hops;
int mcast_oif;
/* pktoption flags */
......@@ -233,10 +233,11 @@ struct ipv6_pinfo {
pmtudisc:2,
ipv6only:1;
__u32 dst_cookie;
struct ipv6_mc_socklist *ipv6_mc_list;
struct ipv6_ac_socklist *ipv6_ac_list;
struct ipv6_fl_socklist *ipv6_fl_list;
__u32 dst_cookie;
struct ipv6_txoptions *opt;
struct sk_buff *pktoptions;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment