xfrm interface: ifname may be wrong in logs
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Mon, 15 Jul 2019 10:00:21 +0000 (12:00 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 17 Jul 2019 08:03:54 +0000 (10:03 +0200)
commite0aaa332e6a97dae57ad59cdb19e21f83c3d081c
tree60a060417d33cb807a1af6dc8c505f6c6f95368a
parente9e7e85d75f3731079ffd77c1a66f037aef04fe7
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>
include/net/xfrm.h
net/xfrm/xfrm_interface.c