Project

General

Profile

Actions

Bug #423

closed

Moving a macvtap on top of batX to netns causes error

Added by Leonardo Mörlein over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
02/26/2022
Due date:
% Done:

100%

Estimated time:

Description

Moving a macvtap interface on top of a batadv device into a netns causes an error. The following error is printed to dmesg:

[569490.277121] batman_adv: Cannot find parent device

The setup can be reproduced using the following script:

#!/bin/sh

# preparation
ip link add bat0 type batadv
ip link set bat0 up
ip netns add test
ip link add link bat0 name vtap type macvtap

# trigger the bug
ip link set vtap netns test up

# cleanup
ip netns exec test ip link del vtap
ip link del bat0
ip netns del test

I can reproduce this with:
  • 2021.3
  • 2022.0

I haven't checked other versions.

Actions

Also available in: Atom PDF