Skip to content

Commit 2202e35

Browse files
idoschdavem330
authored andcommitted
ipv4: fib: Remove unused functions
Previous patches converted users of these functions to provide offload indication using the nexthop's flags instead of the FIB info's. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Acked-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 77d964e commit 2202e35

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

include/net/ip_fib.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ struct fib_info {
124124
#ifdef CONFIG_IP_ROUTE_MULTIPATH
125125
int fib_weight;
126126
#endif
127-
unsigned int fib_offload_cnt;
128127
struct rcu_head rcu;
129128
struct fib_nh fib_nh[0];
130129
#define fib_dev fib_nh[0].nh_dev
@@ -177,18 +176,6 @@ struct fib_result_nl {
177176

178177
__be32 fib_info_update_nh_saddr(struct net *net, struct fib_nh *nh);
179178

180-
static inline void fib_info_offload_inc(struct fib_info *fi)
181-
{
182-
fi->fib_offload_cnt++;
183-
fi->fib_flags |= RTNH_F_OFFLOAD;
184-
}
185-
186-
static inline void fib_info_offload_dec(struct fib_info *fi)
187-
{
188-
if (--fi->fib_offload_cnt == 0)
189-
fi->fib_flags &= ~RTNH_F_OFFLOAD;
190-
}
191-
192179
#define FIB_RES_SADDR(net, res) \
193180
((FIB_RES_NH(res).nh_saddr_genid == \
194181
atomic_read(&(net)->ipv4.dev_addr_genid)) ? \

0 commit comments

Comments
 (0)