Results 1 to 6 of 6
Hi, all:
How can I know whether the packets recieved from network by my own NIC driver are transmitted to upper layer(IP layer) or not?
How can I know if ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-07-2011 #1Just Joined!
- Join Date
- Nov 2011
- Posts
- 28
How does a NIC driver activate with upper layer mutually?
Hi, all:
How can I know whether the packets recieved from network by my own NIC driver are transmitted to upper layer(IP layer) or not?
How can I know if the packets come from upper layer are passed to my own NIC driver and go out further?
Is there any shell command or utility show that information?
The symptom of my running driver is as if the driver is seperated from the upper layer comletely! The "ping" or "scp" command cannot go through the driver and the received packets by the driver cannot pass to upper layer!
thanks!
li, kunlun
- 11-08-2011 #2Just Joined!
- Join Date
- Nov 2011
- Posts
- 28
Additionally, four calls to my rtl8139_start_xmit() happen whenever the interface up or the device is opened! No call to my rtl8139_start_xmit, however, happen when I issue "ping" or "scp" shell command.
Could anybody tell me why?
li, kunlun
- 11-08-2011 #3Just Joined!
- Join Date
- Nov 2011
- Posts
- 28
My kernel is linux 3.0.4, and follwing is the information that may be helpful:
lspci |grep -i net
02:00.0 Ethernet controller: Atheros Communications AR8131 Gigabit Ethernet (rev c0)
03:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
I suspect that my driver does not "melt" or "link" into the system as a whole although inserted into kernel. So it doesn't work correctly. How should I examine this by which command?
li, kunlun
- 11-08-2011 #4Just Joined!
- Join Date
- Nov 2011
- Posts
- 28
- 11-08-2011 #5Just Joined!
- Join Date
- Jan 2010
- Posts
- 32
Might be network interface not getting registered.
What does "ifconfig -a" or "ip a" show?
# ifconfig -a
# ip a
?Last edited by saulius2; 11-08-2011 at 08:51 AM.
- 11-09-2011 #6Just Joined!
- Join Date
- Nov 2011
- Posts
- 28
Dear all:
thanks! I have cleaned up the trouble!
Since I have stopped the device queue under wrong conditions my driver cannot send messages out. Now, my driver runs correctly!
thanks a lot!
li, kunlun


Reply With Quote

