patch-2.4.21 linux-2.4.21/include/linux/if_shaper.h

Next file: linux-2.4.21/include/linux/in6.h
Previous file: linux-2.4.21/include/linux/if_ether.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/include/linux/if_shaper.h linux-2.4.21/include/linux/if_shaper.h
@@ -10,7 +10,7 @@
  *	5 is about right for 28.8 upwards. Below that double for every
  *	halving of speed or so. - ie about 20 for 9600 baud.
  */
-#define SHAPER_LATENCY	(5*HZ)
+#define SHAPER_LATENCY	(5L*HZ)
 #define SHAPER_MAXSLIP	2
 #define SHAPER_BURST	(HZ/50)		/* Good for >128K then */
 
@@ -21,8 +21,8 @@
 	__u32 bitspersec;
 	__u32 shapelatency;
 	__u32 shapeclock;
-	__u32 recovery;		/* Time we can next clock a packet out on
-				   an empty queue */
+	unsigned long recovery;		/* Time we can next clock a packet out on
+					   an empty queue */
         unsigned long locked;
         struct net_device_stats stats;
 	struct net_device *dev;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)