virt_wifi: implement ndo_get_iflink
authorTaehee Yoo <ap420073@gmail.com>
Thu, 5 Mar 2020 09:06:36 +0000 (09:06 +0000)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 20 Mar 2020 13:42:20 +0000 (14:42 +0100)
commitdd063ffae0e54c1ec2b7257c92ac1ea31546a932
treed77101f26e621e4e0e4f03b85c5a80bd0b6ddbd3
parenta916062a09d94cbeff87b7d57840b8747ab4a833
virt_wifi: implement ndo_get_iflink

->ndo_get_iflink() is useful for finding lower interface.

Test commands:
    ip link add dummy0 type dummy
    ip link add vw1 link dummy0 type virt_wifi
    ip link show vw1

Before:
    9: vw1: <BROADCAST,MULTICAST> ...
After:
    9: vw1@dummy0: <BROADCAST,MULTICAST> ...

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Link: https://lore.kernel.org/r/20200305090636.28221-1-ap420073@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/virt_wifi.c