summaryrefslogtreecommitdiff
blob: adcacf55da60f523175e3b62ab846629a88a4cf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
--- a/include/linux/netdevice.h	2005-10-20 06:36:27 -07:00
+++ b/include/linux/netdevice.h	2005-10-20 06:36:27 -07:00
@@ -73,6 +73,11 @@
 
 #define MAX_ADDR_LEN	32		/* Largest hardware address length */
 
+/* Driver transmit return codes */
+#define NETDEV_TX_OK 0		/* driver took care of packet */
+#define NETDEV_TX_BUSY 1	/* driver tx path was busy*/
+#define NETDEV_TX_LOCKED -1	/* driver tx lock was already taken */
+
 /*
  *	Compute the worst case header length according to the protocols
  *	used.
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2004/09/12 16:53:16-07:00 hadi@cyberus.ca 
#   [NET]: Use NETDEV_TX_* macros instead of magic numbers.
#   
#   Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
#   Signed-off-by: David S. Miller <davem@davemloft.net>
# 
# drivers/net/e1000/e1000_main.c
#   2004/09/12 16:52:48-07:00 hadi@cyberus.ca +5 -5
#   [NET]: Use NETDEV_TX_* macros instead of magic numbers.
#   
#   Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
#   Signed-off-by: David S. Miller <davem@davemloft.net>
# 
# drivers/net/tg3.c
#   2004/09/12 16:52:48-07:00 hadi@cyberus.ca +3 -3
#   [NET]: Use NETDEV_TX_* macros instead of magic numbers.
#   
#   Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
#   Signed-off-by: David S. Miller <davem@davemloft.net>
# 
# include/linux/netdevice.h
#   2004/09/12 16:52:49-07:00 hadi@cyberus.ca +5 -0
#   [NET]: Use NETDEV_TX_* macros instead of magic numbers.
#   
#   Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
#   Signed-off-by: David S. Miller <davem@davemloft.net>
# 
# net/sched/sch_generic.c
#   2004/09/12 16:52:49-07:00 hadi@cyberus.ca +4 -8
#   [NET]: Use NETDEV_TX_* macros instead of magic numbers.
#   
#   Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
#   Signed-off-by: David S. Miller <davem@davemloft.net>
#