]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-Ease-to-follow-an-interface-that-moves-to-another-netns'
authorDavid S. Miller <davem@davemloft.net>
Mon, 29 Jan 2018 17:23:53 +0000 (12:23 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jan 2018 17:23:53 +0000 (12:23 -0500)
commit7ddc4c93df492642bb2931e66bc7a9b7ddb77a04
tree4c8fa3f46034244bb2e5eaa7cc1258b0ae427c68
parentc887b53daef206928362ecd0467353d1b39cc28c
parenteb78fa3c524c039de4c430231d2935d846e3f87f
Merge branch 'net-Ease-to-follow-an-interface-that-moves-to-another-netns'

Nicolas Dichtel says:

====================
net: Ease to follow an interface that moves to another netns

The goal of this series is to ease the user to follow an interface that
moves to another netns.

After this series, with a patched iproute2:

$ ip netns
bar
foo
$ ip monitor link &
$ ip link set dummy0 netns foo
Deleted 5: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default
    link/ether 6e:a7:82:35:96:46 brd ff:ff:ff:ff:ff:ff new-nsid 0 new-ifindex 6

=> new nsid: 0, new ifindex: 6 (was 5 in the previous netns)

$ ip link set eth1 netns bar
Deleted 3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default
    link/ether 52:54:01:12:34:57 brd ff:ff:ff:ff:ff:ff new-nsid 1 new-ifindex 3

=> new nsid: 1, new ifindex: 3 (same ifindex)

$ ip netns
bar (id: 1)
foo (id: 0)
====================

Signed-off-by: David S. Miller <davem@davemloft.net>