On 10/15/2015 02:36 PM, sai pavan wrote:
> Hi,
>
> I am debugging an issue, where through one of the nics I am not able
> to connect to dtcp.
> So to dig in deep, i was going thought net.c files, and ended-up
> understanding little.
>
> So can i know how does a netdev connects to nic.
>
> nd_table[] has some pointers for netdev devices. Where are this
> actually instantiated ? I am missing that part of the code.
>
> How do the netdevs and nic's have 1-1 connections.

You may want to have a look at set_netdev().

>
> And if my SOC has more than 1 sysbus type ethernet chips. How can i
> connect each one of them from command line ?

You can do this by using hubport as nic's peer e.g:

-netdev hubport,id=port0,hubid=hubid -device e1000,netdev=port0

>
> Regards,
> Sai Pavan


Reply via email to