--- 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 # Signed-off-by: David S. Miller # # 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 # Signed-off-by: David S. Miller # # 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 # Signed-off-by: David S. Miller # # 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 # Signed-off-by: David S. Miller # # 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 # Signed-off-by: David S. Miller #