diff options
author | David S. Miller <davem@davemloft.net> | 2010-05-17 01:26:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-17 01:26:58 -0400 |
commit | 6811d58fc148c393f80a9f5a9db49d7e75cdc546 (patch) | |
tree | c25d5b0e49ec848943d35f819e748d157ccb492e /include | |
parent | c4949f074332a64baeb2ead6ab9319ca37642f96 (diff) | |
parent | c02db8c6290bb992442fec1407643c94cc414375 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
include/linux/if_link.h
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/if_link.h | 23 | ||||
-rw-r--r-- | include/net/tcp.h | 21 |
2 files changed, 22 insertions, 22 deletions
diff --git a/include/linux/if_link.h b/include/linux/if_link.h index cfd420ba72df..c3af67fce3f2 100644 --- a/include/linux/if_link.h +++ b/include/linux/if_link.h | |||
@@ -111,10 +111,7 @@ enum { | |||
111 | IFLA_NET_NS_PID, | 111 | IFLA_NET_NS_PID, |
112 | IFLA_IFALIAS, | 112 | IFLA_IFALIAS, |
113 | IFLA_NUM_VF, /* Number of VFs if device is SR-IOV PF */ | 113 | IFLA_NUM_VF, /* Number of VFs if device is SR-IOV PF */ |
114 | IFLA_VF_MAC, /* Hardware queue specific attributes */ | 114 | IFLA_VFINFO_LIST, |
115 | IFLA_VF_VLAN, | ||
116 | IFLA_VF_TX_RATE, /* TX Bandwidth Allocation */ | ||
117 | IFLA_VFINFO, | ||
118 | IFLA_STATS64, | 115 | IFLA_STATS64, |
119 | __IFLA_MAX | 116 | __IFLA_MAX |
120 | }; | 117 | }; |
@@ -236,6 +233,24 @@ enum macvlan_mode { | |||
236 | 233 | ||
237 | /* SR-IOV virtual function managment section */ | 234 | /* SR-IOV virtual function managment section */ |
238 | 235 | ||
236 | enum { | ||
237 | IFLA_VF_INFO_UNSPEC, | ||
238 | IFLA_VF_INFO, | ||
239 | __IFLA_VF_INFO_MAX, | ||
240 | }; | ||
241 | |||
242 | #define IFLA_VF_INFO_MAX (__IFLA_VF_INFO_MAX - 1) | ||
243 | |||
244 | enum { | ||
245 | IFLA_VF_UNSPEC, | ||
246 | IFLA_VF_MAC, /* Hardware queue specific attributes */ | ||
247 | IFLA_VF_VLAN, | ||
248 | IFLA_VF_TX_RATE, /* TX Bandwidth Allocation */ | ||
249 | __IFLA_VF_MAX, | ||
250 | }; | ||
251 | |||
252 | #define IFLA_VF_MAX (__IFLA_VF_MAX - 1) | ||
253 | |||
239 | struct ifla_vf_mac { | 254 | struct ifla_vf_mac { |
240 | __u32 vf; | 255 | __u32 vf; |
241 | __u8 mac[32]; /* MAX_ADDR_LEN */ | 256 | __u8 mac[32]; /* MAX_ADDR_LEN */ |
diff --git a/include/net/tcp.h b/include/net/tcp.h index fb5c66b2ab81..a1449144848a 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -1206,30 +1206,15 @@ extern int tcp_v4_md5_do_del(struct sock *sk, | |||
1206 | extern struct tcp_md5sig_pool * __percpu *tcp_alloc_md5sig_pool(struct sock *); | 1206 | extern struct tcp_md5sig_pool * __percpu *tcp_alloc_md5sig_pool(struct sock *); |
1207 | extern void tcp_free_md5sig_pool(void); | 1207 | extern void tcp_free_md5sig_pool(void); |
1208 | 1208 | ||
1209 | extern struct tcp_md5sig_pool *__tcp_get_md5sig_pool(int cpu); | 1209 | extern struct tcp_md5sig_pool *tcp_get_md5sig_pool(void); |
1210 | extern void __tcp_put_md5sig_pool(void); | 1210 | extern void tcp_put_md5sig_pool(void); |
1211 | |||
1211 | extern int tcp_md5_hash_header(struct tcp_md5sig_pool *, struct tcphdr *); | 1212 | extern int tcp_md5_hash_header(struct tcp_md5sig_pool *, struct tcphdr *); |
1212 | extern int tcp_md5_hash_skb_data(struct tcp_md5sig_pool *, struct sk_buff *, | 1213 | extern int tcp_md5_hash_skb_data(struct tcp_md5sig_pool *, struct sk_buff *, |
1213 | unsigned header_len); | 1214 | unsigned header_len); |
1214 | extern int tcp_md5_hash_key(struct tcp_md5sig_pool *hp, | 1215 | extern int tcp_md5_hash_key(struct tcp_md5sig_pool *hp, |
1215 | struct tcp_md5sig_key *key); | 1216 | struct tcp_md5sig_key *key); |
1216 | 1217 | ||
1217 | static inline | ||
1218 | struct tcp_md5sig_pool *tcp_get_md5sig_pool(void) | ||
1219 | { | ||
1220 | int cpu = get_cpu(); | ||
1221 | struct tcp_md5sig_pool *ret = __tcp_get_md5sig_pool(cpu); | ||
1222 | if (!ret) | ||
1223 | put_cpu(); | ||
1224 | return ret; | ||
1225 | } | ||
1226 | |||
1227 | static inline void tcp_put_md5sig_pool(void) | ||
1228 | { | ||
1229 | __tcp_put_md5sig_pool(); | ||
1230 | put_cpu(); | ||
1231 | } | ||
1232 | |||
1233 | /* write queue abstraction */ | 1218 | /* write queue abstraction */ |
1234 | static inline void tcp_write_queue_purge(struct sock *sk) | 1219 | static inline void tcp_write_queue_purge(struct sock *sk) |
1235 | { | 1220 | { |