Re: [vpp-dev] hw_address of vnet_hw_interface_t

2021-04-02 Thread Mohsin Kazmi via lists.fd.io
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,

   >hw_if_index,

   virtio_pci_flag_change);

-br
Mohsin

From:  on behalf of Catalin Vasile 
Date: Friday, April 2, 2021 at 5:44 AM
To: "vpp-dev@lists.fd.io" 
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: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] hw_address of vnet_hw_interface_t

2021-04-01 Thread Catalin Vasile
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 (#19093): https://lists.fd.io/g/vpp-dev/message/19093
Mute This Topic: https://lists.fd.io/mt/81796186/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-