mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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:
parent
033f46b3c1
commit
a54acb3a6f
11 changed files with 48 additions and 18 deletions
|
@ -801,7 +801,7 @@ static int vif_add(struct net *net, struct mr_table *mrt,
|
|||
v->pkt_out = 0;
|
||||
v->link = dev->ifindex;
|
||||
if (v->flags & (VIFF_TUNNEL | VIFF_REGISTER))
|
||||
v->link = dev->iflink;
|
||||
v->link = dev_get_iflink(dev);
|
||||
|
||||
/* And finish update writing critical data */
|
||||
write_lock_bh(&mrt_lock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue