This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
IP over HDLC link network driver
- From: "aditya veer singh" <adityav at cdotd dot ernet dot in>
- To: "ecos" <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 1 Aug 2006 18:22:25 +0630
- Subject: [ECOS] IP over HDLC link network driver
Hi,
I am using MPC860 with mbx like board. SCC1 is configured in ethernet mode.
I have configured the SCC 2,3 and 4 in HDLC mode and want to build network driver over
them, so that each of them is recognized as separate interface (just like ethernet) and
initialized with the BSD TCP/IP stack.
In case of ethernet the delivery of IP packets happens through alarm_thread (timeout.c)
which calls eth_drv_run_deliveries() or eth_drv_tickle_devices().
I have couple of questions related to it:
1. Can I use the same thread and add my deliver method to it?
But won't it make the function calls serialized?
Will it impact performance?
2. Do I need to make a separate thread for handling the SCCs configured in HDLC mode?
Will a single thread do for all the three or there should 3 seprate ones?
What guidelines or precautions should be followed while creating it?
Thanks in advance,
Aditya
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss