Message ID | 20170529194023.15414-4-fbl@redhat.com |
---|---|
State | Accepted |
Headers | show |
On Mon, May 29, 2017 at 04:40:23PM -0300, Flavio Leitner wrote: > It is important to maintain the original state when > the device already exists in the system. > > Signed-off-by: Flavio Leitner <fbl@redhat.com> Applied, thanks!
diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index d181e4f..efcb7ac 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -851,6 +851,7 @@ netdev_linux_construct_tap(struct netdev *netdev_) } /* Create tap device. */ + get_flags(&netdev->up, &netdev->ifi_flags); ifr.ifr_flags = IFF_TAP | IFF_NO_PI; ovs_strzcpy(ifr.ifr_name, name, sizeof ifr.ifr_name); if (ioctl(netdev->tap_fd, TUNSETIFF, &ifr) == -1) {
It is important to maintain the original state when the device already exists in the system. Signed-off-by: Flavio Leitner <fbl@redhat.com> --- lib/netdev-linux.c | 1 + 1 file changed, 1 insertion(+)