linux: disable netns support for tap.
Tap device is not added to the kernel datapath, so there is
no way to get netns information.
Reported-by: Eelco Chaudron
Acked-by: Eelco Chaudron
Tested-by: Eelco Chaudron
@@ -600,8 +600,12 @@ static int
netdev_linux_netnsid_update(struct netdev_linux *netdev)
{
if (netnsid_is_unset(netdev->netnsid)) {
+ if (netdev_get_class(&netdev->up) == &netdev_tap_class) {
+ netnsid_set_local(&netdev->netnsid);
+ } else {
return netdev_linux_netnsid_update__(netdev);
}
+ }
return 0;
}
