[PATCH] bonding: Convert delay value from s16 to int
authorJay Vosburgh <fubar@us.ibm.com>
Sat, 23 Sep 2006 04:52:51 +0000 (21:52 -0700)
committerJeff Garzik <jeff@garzik.org>
Tue, 26 Sep 2006 00:08:08 +0000 (20:08 -0400)
commit8bb5f96b0c1f430e6be56edd6c7032bcedd86ff0
treefa30518bf610319d042236beb3a47eb092d43e4f
parent94dbffd540eea601aecad07e2df5bfd8a46672f3
[PATCH] bonding: Convert delay value from s16 to int

The value of "downdelay/miimon" and "updelay/miimon" are stored in
slave->delay. The type of downdelay, updelay, and miimon are all int.
However, slave->delay is type short, and it is not possible to store the
value of "downdelay/miimon" or "updelay/miimon" in some cases. (For example,
miimon=1 downdelay=32768)

The attached patch fixes this problem.

Signed-off-by: Kenzo Iwami <k-iwami@cj.jp.nec.com>
Acked-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/bonding/bonding.h