ipv6: Remove DST_METRICS_FORCE_OVERWRITE and _rt6i_peer
_rt6i_peer is no longer needed after the last patch,
'ipv6: Stop rt6_info from using inet_peer's metrics'.
DST_METRICS_FORCE_OVERWRITE is added by
commit e5fd387ad5
("ipv6: do not overwrite inetpeer metrics prematurely").
Since inetpeer is no longer used for metrics, this bit is also not needed.
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Reviewed-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Cc: Michal Kubeček <mkubecek@suse.cz>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
4b32b5ad31
commit
afc4eef80c
@@ -121,7 +121,6 @@ struct rt6_info {
|
||||
struct rt6key rt6i_prefsrc;
|
||||
|
||||
struct inet6_dev *rt6i_idev;
|
||||
unsigned long _rt6i_peer;
|
||||
|
||||
u32 rt6i_metric;
|
||||
u32 rt6i_pmtu;
|
||||
@@ -130,36 +129,6 @@ struct rt6_info {
|
||||
u8 rt6i_protocol;
|
||||
};
|
||||
|
||||
static inline struct inet_peer *rt6_peer_ptr(struct rt6_info *rt)
|
||||
{
|
||||
return inetpeer_ptr(rt->_rt6i_peer);
|
||||
}
|
||||
|
||||
static inline bool rt6_has_peer(struct rt6_info *rt)
|
||||
{
|
||||
return inetpeer_ptr_is_peer(rt->_rt6i_peer);
|
||||
}
|
||||
|
||||
static inline void __rt6_set_peer(struct rt6_info *rt, struct inet_peer *peer)
|
||||
{
|
||||
__inetpeer_ptr_set_peer(&rt->_rt6i_peer, peer);
|
||||
}
|
||||
|
||||
static inline bool rt6_set_peer(struct rt6_info *rt, struct inet_peer *peer)
|
||||
{
|
||||
return inetpeer_ptr_set_peer(&rt->_rt6i_peer, peer);
|
||||
}
|
||||
|
||||
static inline void rt6_init_peer(struct rt6_info *rt, struct inet_peer_base *base)
|
||||
{
|
||||
inetpeer_init_ptr(&rt->_rt6i_peer, base);
|
||||
}
|
||||
|
||||
static inline void rt6_transfer_peer(struct rt6_info *rt, struct rt6_info *ort)
|
||||
{
|
||||
inetpeer_transfer_peer(&rt->_rt6i_peer, &ort->_rt6i_peer);
|
||||
}
|
||||
|
||||
static inline struct inet6_dev *ip6_dst_idev(struct dst_entry *dst)
|
||||
{
|
||||
return ((struct rt6_info *)dst)->rt6i_idev;
|
||||
|
Reference in New Issue
Block a user