decnet: Use neighbours privately in dn_route struct.
This allows an easy conversion away from dst_get_neighbour*(). Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -202,7 +202,7 @@ static int dn_neigh_output_packet(struct sk_buff *skb)
|
||||
{
|
||||
struct dst_entry *dst = skb_dst(skb);
|
||||
struct dn_route *rt = (struct dn_route *)dst;
|
||||
struct neighbour *neigh = dst_get_neighbour_noref(dst);
|
||||
struct neighbour *neigh = rt->n;
|
||||
struct net_device *dev = neigh->dev;
|
||||
char mac_addr[ETH_ALEN];
|
||||
unsigned int seq;
|
||||
|
Reference in New Issue
Block a user