aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ipvlan/ipvlan.h
diff options
context:
space:
mode:
authorMahesh Bandewar <maheshb@google.com>2017-01-03 12:47:16 -0800
committerDavid S. Miller <davem@davemloft.net>2017-01-04 13:30:42 -0500
commit009146d117b9b816193fce0f1ed75f015a398721 (patch)
treeecc9af780e7e623bd46314e4e39e7d8b8ff19960 /drivers/net/ipvlan/ipvlan.h
parentnet: dsa: remove out label in dsa_switch_setup_one (diff)
downloadlinux-dev-009146d117b9b816193fce0f1ed75f015a398721.tar.xz
linux-dev-009146d117b9b816193fce0f1ed75f015a398721.zip
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.h1
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 {