aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/xfrm.h
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2019-07-15 12:00:21 +0200
committerSteffen Klassert <steffen.klassert@secunet.com>2019-07-17 10:03:54 +0200
commite0aaa332e6a97dae57ad59cdb19e21f83c3d081c (patch)
tree60a060417d33cb807a1af6dc8c505f6c6f95368a /include/net/xfrm.h
parentxfrm interface: avoid corruption on changelink (diff)
downloadlinux-dev-e0aaa332e6a97dae57ad59cdb19e21f83c3d081c.tar.xz
linux-dev-e0aaa332e6a97dae57ad59cdb19e21f83c3d081c.zip
xfrm interface: ifname may be wrong in logs
The ifname is copied when the interface is created, but is never updated later. In fact, this property is used only in one error message, where the netdevice pointer is available, thus let's use it. Fixes: f203b76d7809 ("xfrm: Add virtual xfrm interfaces") Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r--include/net/xfrm.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index b22db30c3d88..ad761ef84797 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -983,7 +983,6 @@ static inline void xfrm_dst_destroy(struct xfrm_dst *xdst)
void xfrm_dst_ifdown(struct dst_entry *dst, struct net_device *dev);
struct xfrm_if_parms {
- char name[IFNAMSIZ]; /* name of XFRM device */
int link; /* ifindex of underlying L2 interface */
u32 if_id; /* interface identifyer */
};