|
@@ -124,7 +124,6 @@ struct fib_info {
|
|
#ifdef CONFIG_IP_ROUTE_MULTIPATH
|
|
#ifdef CONFIG_IP_ROUTE_MULTIPATH
|
|
int fib_weight;
|
|
int fib_weight;
|
|
#endif
|
|
#endif
|
|
- unsigned int fib_offload_cnt;
|
|
|
|
struct rcu_head rcu;
|
|
struct rcu_head rcu;
|
|
struct fib_nh fib_nh[0];
|
|
struct fib_nh fib_nh[0];
|
|
#define fib_dev fib_nh[0].nh_dev
|
|
#define fib_dev fib_nh[0].nh_dev
|
|
@@ -177,18 +176,6 @@ struct fib_result_nl {
|
|
|
|
|
|
__be32 fib_info_update_nh_saddr(struct net *net, struct fib_nh *nh);
|
|
__be32 fib_info_update_nh_saddr(struct net *net, struct fib_nh *nh);
|
|
|
|
|
|
-static inline void fib_info_offload_inc(struct fib_info *fi)
|
|
|
|
-{
|
|
|
|
- fi->fib_offload_cnt++;
|
|
|
|
- fi->fib_flags |= RTNH_F_OFFLOAD;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-static inline void fib_info_offload_dec(struct fib_info *fi)
|
|
|
|
-{
|
|
|
|
- if (--fi->fib_offload_cnt == 0)
|
|
|
|
- fi->fib_flags &= ~RTNH_F_OFFLOAD;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
#define FIB_RES_SADDR(net, res) \
|
|
#define FIB_RES_SADDR(net, res) \
|
|
((FIB_RES_NH(res).nh_saddr_genid == \
|
|
((FIB_RES_NH(res).nh_saddr_genid == \
|
|
atomic_read(&(net)->ipv4.dev_addr_genid)) ? \
|
|
atomic_read(&(net)->ipv4.dev_addr_genid)) ? \
|