Some operations and some info about TX.
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Mon, 24 May 2010 09:12:05 +0000 (05:12 -0400)
committerThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Mon, 24 May 2010 09:12:05 +0000 (05:12 -0400)
15net/net

index 86d7e3f..0a3d403 100644 (file)
--- a/15net/net
+++ b/15net/net
 * skb\\_reserve - only allowed for empty buffer, reserves headroom
 * skb\\_orphan - release it from its socket holder
 
+# Network Device
+
+* include linux/netdevice.h
+* struct net\\_device
+       - char name[]
+       - features
+       - stats
+       - netdev\\_ops
+       - ethtool\\_ops
+       - header\\_ops
+       - flags
+       - mtu
+       - type
+       - hard\\_header\\_len
+
+# Network Device Setup
+
+* alloc\\_netdev(szpriv, name, setup)
+* setup function
+* include linux/etherdevice.h
+* ether\\_setup
+* alloc\\_etherdev
+* register\\_netdev
+* unregister\\_netdev
+* free\\_netdev
+
+# Network Device Operations
+
+* struct net\\_device\\_ops
+* ndo\\_init
+* ndo\\_open
+       - should call netif\\_start\\_queue
+* ndo\\_stop
+       - should call netif\\_stop\\_queue
+
+# Network Device Address
+
+* struct net\\_device
+       - dev\\_addr
+* random\\_ether\\_addr
+* struct net\\_device\\_ops
+       - ndo\\_set\\_mac\\_address
+* eth\\_mac\\_addr
+
+# Transmission
+
+* ndo\\_start\\_xmit
+* called with a held lock
+
+# Limits on transmission
+
+* When TX buffers are full, xmit may call netif\\_stop\\_queue
+* Should arrange to get netif\\_wake\\_queue called after TX buffers are free
+  again
+
+# Transmission timeout
+
+# NAPI
 
 # Changes in net device