diff options
author | Mahesh Bandewar <maheshb@google.com> | 2017-01-03 12:47:16 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-04 13:30:42 -0500 |
commit | 009146d117b9b816193fce0f1ed75f015a398721 (patch) | |
tree | ecc9af780e7e623bd46314e4e39e7d8b8ff19960 /drivers/net/ipvlan/ipvlan.h | |
parent | a896eee3349e4e7f35a83f3b1a93c2e048d976b9 (diff) |
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>
Diffstat (limited to 'drivers/net/ipvlan/ipvlan.h')
-rw-r--r-- | drivers/net/ipvlan/ipvlan.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ipvlan/ipvlan.h b/drivers/net/ipvlan/ipvlan.h index dbfbb33ac66c..0a9068fdee0f 100644 --- a/drivers/net/ipvlan/ipvlan.h +++ b/drivers/net/ipvlan/ipvlan.h @@ -97,6 +97,7 @@ struct ipvl_port { struct work_struct wq; struct sk_buff_head backlog; int count; + struct ida ida; }; struct ipvl_skb_cb { |