Hi,

It is the responsibility of the interface drivers to allocate the hw_address 
i.e.:

  error = ethernet_register_interface (vnm, virtio_device_class.index,

                                       vif->dev_instance, vif->mac_addr,

                                       &vif->hw_if_index,

                                       virtio_pci_flag_change);

-br
Mohsin

From: <[email protected]> on behalf of Catalin Vasile <[email protected]>
Date: Friday, April 2, 2021 at 5:44 AM
To: "[email protected]" <[email protected]>
Subject: [vpp-dev] hw_address of vnet_hw_interface_t

Hi,

I'm trying to go through the VPP sources.
One of the things I having a hard time understanding is: where is hw_address 
allocated for vnet_hw_interface_t ?
I cannot find it anywhere.

Best regards,
Catalin Vasile
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19100): https://lists.fd.io/g/vpp-dev/message/19100
Mute This Topic: https://lists.fd.io/mt/81796186/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to