]> git.baikalelectronics.ru Git - kernel.git/commit
ipvlan: assign unique dev-id for each slave device.
authorMahesh Bandewar <maheshb@google.com>
Tue, 3 Jan 2017 20:47:16 +0000 (12:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jan 2017 18:30:42 +0000 (13:30 -0500)
commitd2b0bf94d7e11c3b90dfac682c7cd15cd71e705b
treeecc9af780e7e623bd46314e4e39e7d8b8ff19960
parent4417e03cd3e50ef76746f05b8f9e78aff8e95e6a
ipvlan: assign unique dev-id for each slave device.

IPvlan setup uses one mac-address (of master). The IPv6 link-local
addresses are derived using the mac-address on the link. Lack of
dev-ids makes these link-local addresses same for all slaves including
that of master device. dev-ids are necessary to add differentiation
when L2 address is shared.

Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipvlan/ipvlan.h
drivers/net/ipvlan/ipvlan_main.c