lists.open-mesh.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2023
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
List overview
Download
linux-merge
April 2015
----- 2023 -----
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
linux-merge@lists.open-mesh.org
3 participants
37 discussions
Start a n
N
ew thread
Build check errors found: 2015-04-16
by postmaster@open-mesh.org
Name of failed tests ==================== checkpatch next main.h checkpatch next network-coding.c checkpatch next soft-interface.c Output of different failed tests ================================ checkpatch next main.h: >>>>>>>> CHECK: spaces preferred around that '*' (ctx:VxV) #47: FILE: main.h:47: +#define BATADV_DAT_ENTRY_TIMEOUT (5*60000) /* 5 mins in milliseconds */ ^ total: 0 errors, 0 warnings, 1 checks, 390 lines checked checkpatch next network-coding.c: >>>>>>>> CHECK: spaces preferred around that '*' (ctx:VxV) #278: FILE: network-coding.c:278: + bat_priv->nc.max_buffer_time*10); ^ total: 0 errors, 0 warnings, 1 checks, 1936 lines checked checkpatch next soft-interface.c: >>>>>>>> CHECK: Comparison to NULL could be written "hard_iface->soft_iface" #827: FILE: soft-interface.c:827: + if (!hard_iface || hard_iface->soft_iface != NULL) total: 0 errors, 0 warnings, 1 checks, 1113 lines checked
7 years, 11 months
1
0
0
0
Build check errors found: 2015-04-15
by postmaster@open-mesh.org
Name of failed tests ==================== checkpatch next main.h checkpatch next network-coding.c checkpatch next soft-interface.c Output of different failed tests ================================ checkpatch next main.h: >>>>>>>> CHECK: spaces preferred around that '*' (ctx:VxV) #47: FILE: main.h:47: +#define BATADV_DAT_ENTRY_TIMEOUT (5*60000) /* 5 mins in milliseconds */ ^ total: 0 errors, 0 warnings, 1 checks, 390 lines checked checkpatch next network-coding.c: >>>>>>>> CHECK: spaces preferred around that '*' (ctx:VxV) #278: FILE: network-coding.c:278: + bat_priv->nc.max_buffer_time*10); ^ total: 0 errors, 0 warnings, 1 checks, 1936 lines checked checkpatch next soft-interface.c: >>>>>>>> CHECK: Comparison to NULL could be written "hard_iface->soft_iface" #827: FILE: soft-interface.c:827: + if (!hard_iface || hard_iface->soft_iface != NULL) total: 0 errors, 0 warnings, 1 checks, 1113 lines checked
7 years, 11 months
1
0
0
0
Build check errors found: 2015-04-14
by postmaster@open-mesh.org
Name of failed tests ==================== checkpatch next main.h checkpatch next network-coding.c checkpatch next soft-interface.c Output of different failed tests ================================ checkpatch next main.h: >>>>>>>> CHECK: spaces preferred around that '*' (ctx:VxV) #47: FILE: main.h:47: +#define BATADV_DAT_ENTRY_TIMEOUT (5*60000) /* 5 mins in milliseconds */ ^ total: 0 errors, 0 warnings, 1 checks, 390 lines checked checkpatch next network-coding.c: >>>>>>>> CHECK: spaces preferred around that '*' (ctx:VxV) #278: FILE: network-coding.c:278: + bat_priv->nc.max_buffer_time*10); ^ total: 0 errors, 0 warnings, 1 checks, 1936 lines checked checkpatch next soft-interface.c: >>>>>>>> CHECK: Comparison to NULL could be written "hard_iface->soft_iface" #827: FILE: soft-interface.c:827: + if (!hard_iface || hard_iface->soft_iface != NULL) total: 0 errors, 0 warnings, 1 checks, 1113 lines checked
7 years, 11 months
1
0
0
0
Build check errors found: 2015-04-13
by postmaster@open-mesh.org
Name of failed tests ==================== checkpatch next main.h checkpatch next network-coding.c checkpatch next soft-interface.c Output of different failed tests ================================ checkpatch next main.h: >>>>>>>> CHECK: spaces preferred around that '*' (ctx:VxV) #47: FILE: main.h:47: +#define BATADV_DAT_ENTRY_TIMEOUT (5*60000) /* 5 mins in milliseconds */ ^ total: 0 errors, 0 warnings, 1 checks, 390 lines checked checkpatch next network-coding.c: >>>>>>>> CHECK: spaces preferred around that '*' (ctx:VxV) #278: FILE: network-coding.c:278: + bat_priv->nc.max_buffer_time*10); ^ total: 0 errors, 0 warnings, 1 checks, 1936 lines checked checkpatch next soft-interface.c: >>>>>>>> CHECK: Comparison to NULL could be written "hard_iface->soft_iface" #827: FILE: soft-interface.c:827: + if (!hard_iface || hard_iface->soft_iface != NULL) total: 0 errors, 0 warnings, 1 checks, 1113 lines checked
7 years, 11 months
1
0
0
0
Build check errors found: 2015-04-12
by postmaster@open-mesh.org
Name of failed tests ==================== checkpatch next main.h checkpatch next network-coding.c checkpatch next soft-interface.c Output of different failed tests ================================ checkpatch next main.h: >>>>>>>> CHECK: spaces preferred around that '*' (ctx:VxV) #47: FILE: main.h:47: +#define BATADV_DAT_ENTRY_TIMEOUT (5*60000) /* 5 mins in milliseconds */ ^ total: 0 errors, 0 warnings, 1 checks, 390 lines checked checkpatch next network-coding.c: >>>>>>>> CHECK: spaces preferred around that '*' (ctx:VxV) #278: FILE: network-coding.c:278: + bat_priv->nc.max_buffer_time*10); ^ total: 0 errors, 0 warnings, 1 checks, 1936 lines checked checkpatch next soft-interface.c: >>>>>>>> CHECK: Comparison to NULL could be written "hard_iface->soft_iface" #827: FILE: soft-interface.c:827: + if (!hard_iface || hard_iface->soft_iface != NULL) total: 0 errors, 0 warnings, 1 checks, 1113 lines checked
7 years, 11 months
1
0
0
0
Build check errors found: 2015-04-11
by postmaster@open-mesh.org
Name of failed tests ==================== checkpatch next main.h checkpatch next network-coding.c checkpatch next soft-interface.c Output of different failed tests ================================ checkpatch next main.h: >>>>>>>> CHECK: spaces preferred around that '*' (ctx:VxV) #47: FILE: main.h:47: +#define BATADV_DAT_ENTRY_TIMEOUT (5*60000) /* 5 mins in milliseconds */ ^ total: 0 errors, 0 warnings, 1 checks, 390 lines checked checkpatch next network-coding.c: >>>>>>>> CHECK: spaces preferred around that '*' (ctx:VxV) #278: FILE: network-coding.c:278: + bat_priv->nc.max_buffer_time*10); ^ total: 0 errors, 0 warnings, 1 checks, 1936 lines checked checkpatch next soft-interface.c: >>>>>>>> CHECK: Comparison to NULL could be written "hard_iface->soft_iface" #827: FILE: soft-interface.c:827: + if (!hard_iface || hard_iface->soft_iface != NULL) total: 0 errors, 0 warnings, 1 checks, 1113 lines checked
7 years, 11 months
1
0
0
0
Build check errors found: 2015-04-10
by postmaster@open-mesh.org
Name of failed tests ==================== checkpatch next main.h checkpatch next network-coding.c checkpatch next soft-interface.c Output of different failed tests ================================ checkpatch next main.h: >>>>>>>> CHECK: spaces preferred around that '*' (ctx:VxV) #47: FILE: main.h:47: +#define BATADV_DAT_ENTRY_TIMEOUT (5*60000) /* 5 mins in milliseconds */ ^ total: 0 errors, 0 warnings, 1 checks, 390 lines checked checkpatch next network-coding.c: >>>>>>>> CHECK: spaces preferred around that '*' (ctx:VxV) #278: FILE: network-coding.c:278: + bat_priv->nc.max_buffer_time*10); ^ total: 0 errors, 0 warnings, 1 checks, 1936 lines checked checkpatch next soft-interface.c: >>>>>>>> CHECK: Comparison to NULL could be written "hard_iface->soft_iface" #827: FILE: soft-interface.c:827: + if (!hard_iface || hard_iface->soft_iface != NULL) total: 0 errors, 0 warnings, 1 checks, 1113 lines checked
7 years, 11 months
1
0
0
0
Build check errors found: 2015-04-09
by postmaster@open-mesh.org
Name of failed tests ==================== checkpatch next main.h checkpatch next network-coding.c checkpatch next soft-interface.c Output of different failed tests ================================ checkpatch next main.h: >>>>>>>> CHECK: spaces preferred around that '*' (ctx:VxV) #47: FILE: main.h:47: +#define BATADV_DAT_ENTRY_TIMEOUT (5*60000) /* 5 mins in milliseconds */ ^ total: 0 errors, 0 warnings, 1 checks, 390 lines checked checkpatch next network-coding.c: >>>>>>>> CHECK: spaces preferred around that '*' (ctx:VxV) #278: FILE: network-coding.c:278: + bat_priv->nc.max_buffer_time*10); ^ total: 0 errors, 0 warnings, 1 checks, 1936 lines checked checkpatch next soft-interface.c: >>>>>>>> CHECK: Comparison to NULL could be written "hard_iface->soft_iface" #827: FILE: soft-interface.c:827: + if (!hard_iface || hard_iface->soft_iface != NULL) total: 0 errors, 0 warnings, 1 checks, 1113 lines checked
7 years, 11 months
1
0
0
0
Build check errors found: 2015-04-08
by postmaster@open-mesh.org
Name of failed tests ==================== checkpatch next main.h checkpatch next network-coding.c checkpatch next soft-interface.c Output of different failed tests ================================ checkpatch next main.h: >>>>>>>> CHECK: spaces preferred around that '*' (ctx:VxV) #47: FILE: main.h:47: +#define BATADV_DAT_ENTRY_TIMEOUT (5*60000) /* 5 mins in milliseconds */ ^ total: 0 errors, 0 warnings, 1 checks, 390 lines checked checkpatch next network-coding.c: >>>>>>>> CHECK: spaces preferred around that '*' (ctx:VxV) #278: FILE: network-coding.c:278: + bat_priv->nc.max_buffer_time*10); ^ total: 0 errors, 0 warnings, 1 checks, 1936 lines checked checkpatch next soft-interface.c: >>>>>>>> CHECK: Comparison to NULL could be written "hard_iface->soft_iface" #827: FILE: soft-interface.c:827: + if (!hard_iface || hard_iface->soft_iface != NULL) total: 0 errors, 0 warnings, 1 checks, 1113 lines checked
7 years, 11 months
1
0
0
0
[linux-next] LinuxNextTracking branch, master, updated. next-20150407
by batman@open-mesh.org
The following commit has been merged in the master branch: commit a54acb3a6f853e8394c4cb7b6a4d93c88f13eefd Author: Nicolas Dichtel <nicolas.dichtel(a)6wind.com> Date: Thu Apr 2 17:07:00 2015 +0200 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(a)6wind.com> Signed-off-by: David S. Miller <davem(a)davemloft.net> diff --git a/drivers/net/ipvlan/ipvlan_core.c b/drivers/net/ipvlan/ipvlan_core.c index 2a17500..131bde9 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) 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, diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 967bb4c..788eb7a 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -1030,6 +1030,8 @@ typedef u16 (*select_queue_fallback_t)(struct net_device *dev, * int queue_index, u32 maxrate); * Called when a user wants to set a max-rate limitation of specific * TX queue. + * int (*ndo_get_iflink)(const struct net_device *dev); + * Called to get the iflink value of this device. */ struct net_device_ops { int (*ndo_init)(struct net_device *dev); @@ -1191,6 +1193,7 @@ struct net_device_ops { int (*ndo_set_tx_maxrate)(struct net_device *dev, int queue_index, u32 maxrate); + int (*ndo_get_iflink)(const struct net_device *dev); }; /** @@ -2149,6 +2152,7 @@ void __dev_remove_pack(struct packet_type *pt); void dev_add_offload(struct packet_offload *po); void dev_remove_offload(struct packet_offload *po); +int dev_get_iflink(const struct net_device *dev); struct net_device *__dev_get_by_flags(struct net *net, unsigned short flags, unsigned short mask); struct net_device *dev_get_by_name(struct net *net, const char *name); diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c index fbda6b5..baf1f98 100644 --- a/net/batman-adv/hard-interface.c +++ b/net/batman-adv/hard-interface.c @@ -83,11 +83,12 @@ static bool batadv_is_on_batman_iface(const struct net_device *net_dev) return true; /* no more parents..stop recursion */ - if (net_dev->iflink == 0 || net_dev->iflink == net_dev->ifindex) + if (dev_get_iflink(net_dev) == 0 || + dev_get_iflink(net_dev) == net_dev->ifindex) return false; /* recurse over the parent device */ - parent_dev = __dev_get_by_index(&init_net, net_dev->iflink); + parent_dev = __dev_get_by_index(&init_net, dev_get_iflink(net_dev)); /* if we got a NULL parent_dev there is something broken.. */ if (WARN(!parent_dev, "Cannot find parent device")) return false; diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c index e1115a2..0e4ddb8 100644 --- a/net/bridge/br_netlink.c +++ b/net/bridge/br_netlink.c @@ -305,8 +305,8 @@ static int br_fill_ifinfo(struct sk_buff *skb, nla_put_u8(skb, IFLA_OPERSTATE, operstate) || (dev->addr_len && nla_put(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr)) || - (dev->ifindex != dev->iflink && - nla_put_u32(skb, IFLA_LINK, dev->iflink))) + (dev->ifindex != dev_get_iflink(dev) && + nla_put_u32(skb, IFLA_LINK, dev_get_iflink(dev)))) goto nla_put_failure; if (event == RTM_NEWLINK && port) { diff --git a/net/core/dev.c b/net/core/dev.c index 65492b0..77172d0 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -660,6 +660,23 @@ __setup("netdev=", netdev_boot_setup); *******************************************************************************/ /** + * dev_get_iflink - get 'iflink' value of a interface + * @dev: targeted interface + * + * Indicates the ifindex the interface is linked to. + * Physical interfaces have the same 'ifindex' and 'iflink' values. + */ + +int dev_get_iflink(const struct net_device *dev) +{ + if (dev->netdev_ops && dev->netdev_ops->ndo_get_iflink) + return dev->netdev_ops->ndo_get_iflink(dev); + + return dev->iflink; +} +EXPORT_SYMBOL(dev_get_iflink); + +/** * __dev_get_by_name - find a device by its name * @net: the applicable net namespace * @name: name to find @@ -6345,7 +6362,7 @@ int register_netdevice(struct net_device *dev) else if (__dev_get_by_index(net, dev->ifindex)) goto err_uninit; - if (dev->iflink == -1) + if (dev_get_iflink(dev) == -1) dev->iflink = dev->ifindex; /* Transfer changeable features to wanted_features and enable @@ -7061,7 +7078,7 @@ int dev_change_net_namespace(struct net_device *dev, struct net *net, const char /* If there is an ifindex conflict assign a new one */ if (__dev_get_by_index(net, dev->ifindex)) { - int iflink = (dev->iflink == dev->ifindex); + int iflink = (dev_get_iflink(dev) == dev->ifindex); dev->ifindex = dev_new_index(net); if (iflink) dev->iflink = dev->ifindex; diff --git a/net/core/link_watch.c b/net/core/link_watch.c index 49a9e3e..9828616 100644 --- a/net/core/link_watch.c +++ b/net/core/link_watch.c @@ -40,7 +40,7 @@ static DEFINE_SPINLOCK(lweventlist_lock); static unsigned char default_operstate(const struct net_device *dev) { if (!netif_carrier_ok(dev)) - return (dev->ifindex != dev->iflink ? + return (dev->ifindex != dev_get_iflink(dev) ? IF_OPER_LOWERLAYERDOWN : IF_OPER_DOWN); if (netif_dormant(dev)) @@ -89,7 +89,7 @@ static bool linkwatch_urgent_event(struct net_device *dev) if (!netif_running(dev)) return false; - if (dev->ifindex != dev->iflink) + if (dev->ifindex != dev_get_iflink(dev)) return true; if (dev->priv_flags & IFF_TEAM_PORT) diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index cc5cf68..4238d6d 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -109,11 +109,19 @@ NETDEVICE_SHOW_RO(dev_id, fmt_hex); NETDEVICE_SHOW_RO(dev_port, fmt_dec); NETDEVICE_SHOW_RO(addr_assign_type, fmt_dec); NETDEVICE_SHOW_RO(addr_len, fmt_dec); -NETDEVICE_SHOW_RO(iflink, fmt_dec); NETDEVICE_SHOW_RO(ifindex, fmt_dec); NETDEVICE_SHOW_RO(type, fmt_dec); NETDEVICE_SHOW_RO(link_mode, fmt_dec); +static ssize_t iflink_show(struct device *dev, struct device_attribute *attr, + char *buf) +{ + struct net_device *ndev = to_net_dev(dev); + + return sprintf(buf, fmt_dec, dev_get_iflink(ndev)); +} +static DEVICE_ATTR_RO(iflink); + static ssize_t format_name_assign_type(const struct net_device *dev, char *buf) { return sprintf(buf, fmt_dec, dev->name_assign_type); diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index b96ac21..ee0186c 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -1055,8 +1055,8 @@ static int rtnl_fill_ifinfo(struct sk_buff *skb, struct net_device *dev, #ifdef CONFIG_RPS nla_put_u32(skb, IFLA_NUM_RX_QUEUES, dev->num_rx_queues) || #endif - (dev->ifindex != dev->iflink && - nla_put_u32(skb, IFLA_LINK, dev->iflink)) || + (dev->ifindex != dev_get_iflink(dev) && + nla_put_u32(skb, IFLA_LINK, dev_get_iflink(dev))) || (upper_dev && nla_put_u32(skb, IFLA_MASTER, upper_dev->ifindex)) || nla_put_u8(skb, IFLA_CARRIER, netif_carrier_ok(dev)) || @@ -2863,8 +2863,8 @@ int ndo_dflt_bridge_getlink(struct sk_buff *skb, u32 pid, u32 seq, nla_put_u32(skb, IFLA_MASTER, br_dev->ifindex)) || (dev->addr_len && nla_put(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr)) || - (dev->ifindex != dev->iflink && - nla_put_u32(skb, IFLA_LINK, dev->iflink))) + (dev->ifindex != dev_get_iflink(dev) && + nla_put_u32(skb, IFLA_LINK, dev_get_iflink(dev)))) goto nla_put_failure; br_afspec = nla_nest_start(skb, IFLA_AF_SPEC); diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c index b4a545d..eec68b0 100644 --- a/net/ipv4/ipmr.c +++ b/net/ipv4/ipmr.c @@ -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); diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 5c9e94c..37b70e8 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -4858,8 +4858,8 @@ static int inet6_fill_ifinfo(struct sk_buff *skb, struct inet6_dev *idev, (dev->addr_len && nla_put(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr)) || nla_put_u32(skb, IFLA_MTU, dev->mtu) || - (dev->ifindex != dev->iflink && - nla_put_u32(skb, IFLA_LINK, dev->iflink))) + (dev->ifindex != dev_get_iflink(dev) && + nla_put_u32(skb, IFLA_LINK, dev_get_iflink(dev)))) goto nla_put_failure; protoinfo = nla_nest_start(skb, IFLA_PROTINFO); if (!protoinfo) diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c index caf6b99..18a5ab2 100644 --- a/net/ipv6/ip6mr.c +++ b/net/ipv6/ip6mr.c @@ -992,7 +992,7 @@ static int mif6_add(struct net *net, struct mr6_table *mrt, v->pkt_out = 0; v->link = dev->ifindex; if (v->flags & MIFF_REGISTER) - v->link = dev->iflink; + v->link = dev_get_iflink(dev); /* And finish update writing critical data */ write_lock_bh(&mrt_lock); -- LinuxNextTracking
7 years, 11 months
1
0
0
0
← Newer
1
2
3
4
Older →
Jump to page:
1
2
3
4
Results per page:
10
25
50
100
200