Loading include/linux/seq_file_net.h +13 −0 Original line number Diff line number Diff line Loading @@ -28,4 +28,17 @@ static inline struct net *seq_file_net(struct seq_file *seq) #endif } /* * This one is needed for single_open_net since net is stored directly in * private not as a struct i.e. seq_file_net can't be used. */ static inline struct net *seq_file_single_net(struct seq_file *seq) { #ifdef CONFIG_NET_NS return (struct net *)seq->private; #else return &init_net; #endif } #endif include/net/ip_vs.h +0 −12 Original line number Diff line number Diff line Loading @@ -41,18 +41,6 @@ static inline struct netns_ipvs *net_ipvs(struct net* net) return net->ipvs; } /* This one needed for single_open_net since net is stored directly in * private not as a struct i.e. seq_file_net can't be used. */ static inline struct net *seq_file_single_net(struct seq_file *seq) { #ifdef CONFIG_NET_NS return (struct net *)seq->private; #else return &init_net; #endif } /* Connections' size value needed by ip_vs_ctl.c */ extern int ip_vs_conn_tab_size; Loading Loading
include/linux/seq_file_net.h +13 −0 Original line number Diff line number Diff line Loading @@ -28,4 +28,17 @@ static inline struct net *seq_file_net(struct seq_file *seq) #endif } /* * This one is needed for single_open_net since net is stored directly in * private not as a struct i.e. seq_file_net can't be used. */ static inline struct net *seq_file_single_net(struct seq_file *seq) { #ifdef CONFIG_NET_NS return (struct net *)seq->private; #else return &init_net; #endif } #endif
include/net/ip_vs.h +0 −12 Original line number Diff line number Diff line Loading @@ -41,18 +41,6 @@ static inline struct netns_ipvs *net_ipvs(struct net* net) return net->ipvs; } /* This one needed for single_open_net since net is stored directly in * private not as a struct i.e. seq_file_net can't be used. */ static inline struct net *seq_file_single_net(struct seq_file *seq) { #ifdef CONFIG_NET_NS return (struct net *)seq->private; #else return &init_net; #endif } /* Connections' size value needed by ip_vs_ctl.c */ extern int ip_vs_conn_tab_size; Loading