netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question regarding MAC address configuraton with VLAN devices
@ 2015-04-01 19:15 Manish Chopra
  2015-04-07 13:16 ` Manish Chopra
  2015-04-07 15:44 ` Alexander Duyck
  0 siblings, 2 replies; 6+ messages in thread
From: Manish Chopra @ 2015-04-01 19:15 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: netdev, Yuval Mintz


Hello Patrick,

I have a question regarding MAC address configuration of network devices specially
when VLANs are configured on that. Can you please help to address?

When user changes MAC address of a base network device [e.g., via ifconfig]
why existing VLAN device on top of that would add it's previous MAC address to
unicast list of base device instead of adapting the new MAC address
in it's own net device?

What we are trying to achieve here is that -

For a VF, if Hypervisor/Administrator has forced a MAC [e.g., via iproute2] then as a part of 
"learning process [of the new hypervisor forced mac] done by VF driver", it will simply call
"call_netdevice_notifiers(NETDEV_CHANGEADDR, dev)", which would notify the address change
to VLAN interfaces configured on top of VF device and they will adapt the hypervisor forced MAC too.
But that's not seems to be the behavior here, instead VLAN device on top of the VF device seems to be adding
It's previous MAC address to unicast list of base VF device. This configuration will not take effect
[since PF is blocking the VF's additional unicast MACs, if once a MAC has been forced to the VF], thus
effectively the VLAN interface will never receive traffic with it's configured MAC.


Regards,
Manish

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-04-08 10:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-01 19:15 Question regarding MAC address configuraton with VLAN devices Manish Chopra
2015-04-07 13:16 ` Manish Chopra
2015-04-07 15:44 ` Alexander Duyck
2015-04-08  5:49   ` Yuval Mintz
2015-04-08  9:20     ` Michal Kubecek
2015-04-08 10:16       ` Yuval Mintz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).