Re: [PATCH 1/3] virtio-net: Set mac address to hardware if the peer is vdpa

2020-09-25 Thread Cindy Lu
On Thu, Sep 24, 2020 at 3:18 PM Jason Wang wrote: > > > On 2020/9/22 上午11:01, Cindy Lu wrote: > > On Tue, Sep 22, 2020 at 9:55 AM Jason Wang wrote: > >> > >> On 2020/9/17 下午11:58, Cindy Lu wrote: > >>> If the peer's type is vdpa,set the mac address to NIC in > >>> virtio_net_device_realize, > >>

Re: [PATCH 1/3] virtio-net: Set mac address to hardware if the peer is vdpa

2020-09-24 Thread Jason Wang
On 2020/9/22 上午11:01, Cindy Lu wrote: On Tue, Sep 22, 2020 at 9:55 AM Jason Wang wrote: On 2020/9/17 下午11:58, Cindy Lu wrote: If the peer's type is vdpa,set the mac address to NIC in virtio_net_device_realize, Also sometime vdpa get an all 0 macaddress from the hardware, this will cause t

Re: [PATCH 1/3] virtio-net: Set mac address to hardware if the peer is vdpa

2020-09-21 Thread Cindy Lu
On Tue, Sep 22, 2020 at 9:55 AM Jason Wang wrote: > > > On 2020/9/17 下午11:58, Cindy Lu wrote: > > If the peer's type is vdpa,set the mac address to NIC in > > virtio_net_device_realize, > > Also sometime vdpa get an all 0 macaddress from the hardware, this will > > cause the traffic down > > So

Re: [PATCH 1/3] virtio-net: Set mac address to hardware if the peer is vdpa

2020-09-21 Thread Jason Wang
On 2020/9/17 下午11:58, Cindy Lu wrote: If the peer's type is vdpa,set the mac address to NIC in virtio_net_device_realize, Also sometime vdpa get an all 0 macaddress from the hardware, this will cause the traffic down So we add the check for this part. if we get an 0 mac address we will use th

[PATCH 1/3] virtio-net: Set mac address to hardware if the peer is vdpa

2020-09-17 Thread Cindy Lu
If the peer's type is vdpa,set the mac address to NIC in virtio_net_device_realize, Also sometime vdpa get an all 0 macaddress from the hardware, this will cause the traffic down So we add the check for this part. if we get an 0 mac address we will use the default mac address instead Signed-off-