Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/team/team.c drivers/net/usb/qmi_wwan.c net/batman-adv/bat_iv_ogm.c net/ipv4/fib_frontend.c net/ipv4/route.c net/l2tp/l2tp_netlink.c The team, fib_frontend, route, and l2tp_netlink conflicts were simply overlapping changes. qmi_wwan and bat_iv_ogm were of the "use HEAD" variety. With help from Antonio Quartulli. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -110,6 +110,7 @@ struct net {
|
||||
#endif
|
||||
struct netns_ipvs *ipvs;
|
||||
struct sock *diag_nlsk;
|
||||
atomic_t rt_genid;
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -315,5 +316,14 @@ static inline void unregister_net_sysctl_table(struct ctl_table_header *header)
|
||||
}
|
||||
#endif
|
||||
|
||||
static inline int rt_genid(struct net *net)
|
||||
{
|
||||
return atomic_read(&net->rt_genid);
|
||||
}
|
||||
|
||||
static inline void rt_genid_bump(struct net *net)
|
||||
{
|
||||
atomic_inc(&net->rt_genid);
|
||||
}
|
||||
|
||||
#endif /* __NET_NET_NAMESPACE_H */
|
||||
|
Reference in New Issue
Block a user