diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-09 18:12:52 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-09 18:12:52 -0500 |
commit | 1fd5a46dd6bbca3a1275465120caf4748872c2a7 (patch) | |
tree | c24862a43f57974394ebb58a1d9005e4093e3bf7 /include | |
parent | 2cc6055060d975e8c7601f4a1c68ef2d3050b4e9 (diff) | |
parent | dff2c03534f525813342ab8dec90c5bb1ee07471 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/crypto.h | 5 | ||||
-rw-r--r-- | include/net/act_api.h | 2 | ||||
-rw-r--r-- | include/net/pkt_sched.h | 23 |
3 files changed, 18 insertions, 12 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h index 3c89df6e7768..d88bf8aa8b47 100644 --- a/include/linux/crypto.h +++ b/include/linux/crypto.h | |||
@@ -3,6 +3,7 @@ | |||
3 | * | 3 | * |
4 | * Copyright (c) 2002 James Morris <jmorris@intercode.com.au> | 4 | * Copyright (c) 2002 James Morris <jmorris@intercode.com.au> |
5 | * Copyright (c) 2002 David S. Miller (davem@redhat.com) | 5 | * Copyright (c) 2002 David S. Miller (davem@redhat.com) |
6 | * Copyright (c) 2005 Herbert Xu <herbert@gondor.apana.org.au> | ||
6 | * | 7 | * |
7 | * Portions derived from Cryptoapi, by Alexander Kjeldaas <astor@fast.no> | 8 | * Portions derived from Cryptoapi, by Alexander Kjeldaas <astor@fast.no> |
8 | * and Nettle, by Niels Möller. | 9 | * and Nettle, by Niels Möller. |
@@ -126,7 +127,11 @@ struct crypto_alg { | |||
126 | unsigned int cra_blocksize; | 127 | unsigned int cra_blocksize; |
127 | unsigned int cra_ctxsize; | 128 | unsigned int cra_ctxsize; |
128 | unsigned int cra_alignmask; | 129 | unsigned int cra_alignmask; |
130 | |||
131 | int cra_priority; | ||
132 | |||
129 | const char cra_name[CRYPTO_MAX_ALG_NAME]; | 133 | const char cra_name[CRYPTO_MAX_ALG_NAME]; |
134 | const char cra_driver_name[CRYPTO_MAX_ALG_NAME]; | ||
130 | 135 | ||
131 | union { | 136 | union { |
132 | struct cipher_alg cipher; | 137 | struct cipher_alg cipher; |
diff --git a/include/net/act_api.h b/include/net/act_api.h index b55eb7c7f033..11e9eaf79f5a 100644 --- a/include/net/act_api.h +++ b/include/net/act_api.h | |||
@@ -63,7 +63,7 @@ struct tc_action_ops | |||
63 | __u32 type; /* TBD to match kind */ | 63 | __u32 type; /* TBD to match kind */ |
64 | __u32 capab; /* capabilities includes 4 bit version */ | 64 | __u32 capab; /* capabilities includes 4 bit version */ |
65 | struct module *owner; | 65 | struct module *owner; |
66 | int (*act)(struct sk_buff **, struct tc_action *, struct tcf_result *); | 66 | int (*act)(struct sk_buff *, struct tc_action *, struct tcf_result *); |
67 | int (*get_stats)(struct sk_buff *, struct tc_action *); | 67 | int (*get_stats)(struct sk_buff *, struct tc_action *); |
68 | int (*dump)(struct sk_buff *, struct tc_action *,int , int); | 68 | int (*dump)(struct sk_buff *, struct tc_action *,int , int); |
69 | int (*cleanup)(struct tc_action *, int bind); | 69 | int (*cleanup)(struct tc_action *, int bind); |
diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h index 6492e7363d84..b94d1ad92c4d 100644 --- a/include/net/pkt_sched.h +++ b/include/net/pkt_sched.h | |||
@@ -1,6 +1,7 @@ | |||
1 | #ifndef __NET_PKT_SCHED_H | 1 | #ifndef __NET_PKT_SCHED_H |
2 | #define __NET_PKT_SCHED_H | 2 | #define __NET_PKT_SCHED_H |
3 | 3 | ||
4 | #include <linux/jiffies.h> | ||
4 | #include <net/sch_generic.h> | 5 | #include <net/sch_generic.h> |
5 | 6 | ||
6 | struct qdisc_walker | 7 | struct qdisc_walker |
@@ -59,8 +60,8 @@ typedef struct timeval psched_time_t; | |||
59 | typedef long psched_tdiff_t; | 60 | typedef long psched_tdiff_t; |
60 | 61 | ||
61 | #define PSCHED_GET_TIME(stamp) do_gettimeofday(&(stamp)) | 62 | #define PSCHED_GET_TIME(stamp) do_gettimeofday(&(stamp)) |
62 | #define PSCHED_US2JIFFIE(usecs) (((usecs)+(1000000/HZ-1))/(1000000/HZ)) | 63 | #define PSCHED_US2JIFFIE(usecs) usecs_to_jiffies(usecs) |
63 | #define PSCHED_JIFFIE2US(delay) ((delay)*(1000000/HZ)) | 64 | #define PSCHED_JIFFIE2US(delay) jiffies_to_usecs(delay) |
64 | 65 | ||
65 | #else /* !CONFIG_NET_SCH_CLK_GETTIMEOFDAY */ | 66 | #else /* !CONFIG_NET_SCH_CLK_GETTIMEOFDAY */ |
66 | 67 | ||
@@ -123,9 +124,9 @@ do { \ | |||
123 | default: \ | 124 | default: \ |
124 | __delta = 0; \ | 125 | __delta = 0; \ |
125 | case 2: \ | 126 | case 2: \ |
126 | __delta += 1000000; \ | 127 | __delta += USEC_PER_SEC; \ |
127 | case 1: \ | 128 | case 1: \ |
128 | __delta += 1000000; \ | 129 | __delta += USEC_PER_SEC; \ |
129 | } \ | 130 | } \ |
130 | } \ | 131 | } \ |
131 | __delta; \ | 132 | __delta; \ |
@@ -136,9 +137,9 @@ psched_tod_diff(int delta_sec, int bound) | |||
136 | { | 137 | { |
137 | int delta; | 138 | int delta; |
138 | 139 | ||
139 | if (bound <= 1000000 || delta_sec > (0x7FFFFFFF/1000000)-1) | 140 | if (bound <= USEC_PER_SEC || delta_sec > (0x7FFFFFFF/USEC_PER_SEC)-1) |
140 | return bound; | 141 | return bound; |
141 | delta = delta_sec * 1000000; | 142 | delta = delta_sec * USEC_PER_SEC; |
142 | if (delta > bound || delta < 0) | 143 | if (delta > bound || delta < 0) |
143 | delta = bound; | 144 | delta = bound; |
144 | return delta; | 145 | return delta; |
@@ -152,9 +153,9 @@ psched_tod_diff(int delta_sec, int bound) | |||
152 | default: \ | 153 | default: \ |
153 | __delta = psched_tod_diff(__delta_sec, bound); break; \ | 154 | __delta = psched_tod_diff(__delta_sec, bound); break; \ |
154 | case 2: \ | 155 | case 2: \ |
155 | __delta += 1000000; \ | 156 | __delta += USEC_PER_SEC; \ |
156 | case 1: \ | 157 | case 1: \ |
157 | __delta += 1000000; \ | 158 | __delta += USEC_PER_SEC; \ |
158 | case 0: \ | 159 | case 0: \ |
159 | if (__delta > bound || __delta < 0) \ | 160 | if (__delta > bound || __delta < 0) \ |
160 | __delta = bound; \ | 161 | __delta = bound; \ |
@@ -170,15 +171,15 @@ psched_tod_diff(int delta_sec, int bound) | |||
170 | ({ \ | 171 | ({ \ |
171 | int __delta = (tv).tv_usec + (delta); \ | 172 | int __delta = (tv).tv_usec + (delta); \ |
172 | (tv_res).tv_sec = (tv).tv_sec; \ | 173 | (tv_res).tv_sec = (tv).tv_sec; \ |
173 | if (__delta > 1000000) { (tv_res).tv_sec++; __delta -= 1000000; } \ | 174 | if (__delta > USEC_PER_SEC) { (tv_res).tv_sec++; __delta -= USEC_PER_SEC; } \ |
174 | (tv_res).tv_usec = __delta; \ | 175 | (tv_res).tv_usec = __delta; \ |
175 | }) | 176 | }) |
176 | 177 | ||
177 | #define PSCHED_TADD(tv, delta) \ | 178 | #define PSCHED_TADD(tv, delta) \ |
178 | ({ \ | 179 | ({ \ |
179 | (tv).tv_usec += (delta); \ | 180 | (tv).tv_usec += (delta); \ |
180 | if ((tv).tv_usec > 1000000) { (tv).tv_sec++; \ | 181 | if ((tv).tv_usec > USEC_PER_SEC) { (tv).tv_sec++; \ |
181 | (tv).tv_usec -= 1000000; } \ | 182 | (tv).tv_usec -= USEC_PER_SEC; } \ |
182 | }) | 183 | }) |
183 | 184 | ||
184 | /* Set/check that time is in the "past perfect"; | 185 | /* Set/check that time is in the "past perfect"; |