OSDN Git Service

net/smc: determine vlan_id of stacked net_device
authorUrsula Braun <ubraun@linux.ibm.com>
Wed, 2 May 2018 14:56:47 +0000 (16:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 May 2018 17:29:12 +0000 (13:29 -0400)
commitcb9d43f6775457cac75544bc4197f26ac2b6f294
treede4b7fd5d06c7221a155a9bf9000f513b93c4275
parent9b67e26f936cd40a551da98914ed56dc5606686b
net/smc: determine vlan_id of stacked net_device

An SMC link group is bound to a specific vlan_id. Its link uses
the RoCE-GIDs established for the specific vlan_id. This patch makes
sure the appropriate vlan_id is determined for stacked scenarios like
for instance a master bonding device with vlan devices enslaved.

Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_core.c