net: Abstract dst->neighbour accesses behind helpers.
dst_{get,set}_neighbour() Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@ -677,7 +677,7 @@ static netdev_tx_t ipip6_tunnel_xmit(struct sk_buff *skb,
|
||||
struct neighbour *neigh = NULL;
|
||||
|
||||
if (skb_dst(skb))
|
||||
neigh = skb_dst(skb)->neighbour;
|
||||
neigh = dst_get_neighbour(skb_dst(skb));
|
||||
|
||||
if (neigh == NULL) {
|
||||
if (net_ratelimit())
|
||||
@ -702,7 +702,7 @@ static netdev_tx_t ipip6_tunnel_xmit(struct sk_buff *skb,
|
||||
struct neighbour *neigh = NULL;
|
||||
|
||||
if (skb_dst(skb))
|
||||
neigh = skb_dst(skb)->neighbour;
|
||||
neigh = dst_get_neighbour(skb_dst(skb));
|
||||
|
||||
if (neigh == NULL) {
|
||||
if (net_ratelimit())
|
||||
|
Reference in New Issue
Block a user