ipv4: Remove inetpeer from routes.
No longer used. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
312487313d
commit
f185071ddf
3 changed files with 6 additions and 118 deletions
|
@ -90,8 +90,6 @@ static int xfrm4_fill_dst(struct xfrm_dst *xdst, struct net_device *dev,
|
|||
xdst->u.dst.dev = dev;
|
||||
dev_hold(dev);
|
||||
|
||||
rt_transfer_peer(&xdst->u.rt, rt);
|
||||
|
||||
/* Sheit... I remember I did this right. Apparently,
|
||||
* it was magically lost, so this code needs audit */
|
||||
xdst->u.rt.rt_flags = rt->rt_flags & (RTCF_BROADCAST | RTCF_MULTICAST |
|
||||
|
@ -210,11 +208,6 @@ static void xfrm4_dst_destroy(struct dst_entry *dst)
|
|||
|
||||
dst_destroy_metrics_generic(dst);
|
||||
|
||||
if (rt_has_peer(&xdst->u.rt)) {
|
||||
struct inet_peer *peer = rt_peer_ptr(&xdst->u.rt);
|
||||
inet_putpeer(peer);
|
||||
}
|
||||
|
||||
xfrm_dst_destroy(xdst);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue