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>
This commit is contained in:

committed by
David S. Miller

parent
033f46b3c1
commit
a54acb3a6f
@@ -330,7 +330,7 @@ static int ipvlan_process_v4_outbound(struct sk_buff *skb)
|
||||
struct rtable *rt;
|
||||
int err, ret = NET_XMIT_DROP;
|
||||
struct flowi4 fl4 = {
|
||||
.flowi4_oif = dev->iflink,
|
||||
.flowi4_oif = dev_get_iflink(dev),
|
||||
.flowi4_tos = RT_TOS(ip4h->tos),
|
||||
.flowi4_flags = FLOWI_FLAG_ANYSRC,
|
||||
.daddr = ip4h->daddr,
|
||||
|
Reference in New Issue
Block a user