diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2015-04-02 11:07:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-02 14:04:59 -0400 |
commit | a54acb3a6f853e8394c4cb7b6a4d93c88f13eefd (patch) | |
tree | b1e887d2bc8c205d4fe3b331e40fddba5de6ee01 /drivers/net/ipvlan | |
parent | 033f46b3c13d4072d8ee6b26dd1e90fdd06895d0 (diff) |
dev: introduce dev_get_iflink()
The goal of this patch is to prepare the removal of the iflink field. It
introduces a new ndo function, which will be implemented by virtual interfaces.
There is no functional change into this patch. All readers of iflink field
now call dev_get_iflink().
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipvlan')
-rw-r--r-- | drivers/net/ipvlan/ipvlan_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ipvlan/ipvlan_core.c b/drivers/net/ipvlan/ipvlan_core.c index 2a175006028b..131bde98188d 100644 --- a/drivers/net/ipvlan/ipvlan_core.c +++ b/drivers/net/ipvlan/ipvlan_core.c | |||
@@ -330,7 +330,7 @@ static int ipvlan_process_v4_outbound(struct sk_buff *skb) | |||
330 | struct rtable *rt; | 330 | struct rtable *rt; |
331 | int err, ret = NET_XMIT_DROP; | 331 | int err, ret = NET_XMIT_DROP; |
332 | struct flowi4 fl4 = { | 332 | struct flowi4 fl4 = { |
333 | .flowi4_oif = dev->iflink, | 333 | .flowi4_oif = dev_get_iflink(dev), |
334 | .flowi4_tos = RT_TOS(ip4h->tos), | 334 | .flowi4_tos = RT_TOS(ip4h->tos), |
335 | .flowi4_flags = FLOWI_FLAG_ANYSRC, | 335 | .flowi4_flags = FLOWI_FLAG_ANYSRC, |
336 | .daddr = ip4h->daddr, | 336 | .daddr = ip4h->daddr, |