diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-08 15:59:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-08 15:59:10 -0400 |
commit | e46dc1dab969550d4136e9be0e7919ca09e49573 (patch) | |
tree | 86dbc21796b402c895fd96d5197bf38d8d060545 | |
parent | 87e2831c3fa39cbf6f7ab676bb5aef039b9659e2 (diff) | |
parent | bf0b48dfc368c07c42b5a3a5658c8ee81b4283ac (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
* 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
[IPv6]: Fix ICMPv6 redirect handling with target multicast address
[PKT_SCHED] cls_u32: error code isn't been propogated properly
[ROSE]: Fix rose.ko oops on unload
[TCP]: Fix fastpath_cnt_hint when GSO skb is partially ACKed
-rw-r--r-- | include/net/rose.h | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_input.c | 3 | ||||
-rw-r--r-- | net/ipv6/ndisc.c | 9 | ||||
-rw-r--r-- | net/rose/rose_loopback.c | 4 | ||||
-rw-r--r-- | net/rose/rose_route.c | 15 | ||||
-rw-r--r-- | net/sched/cls_u32.c | 2 |
6 files changed, 22 insertions, 13 deletions
diff --git a/include/net/rose.h b/include/net/rose.h index a4047d3cf5dd..e5bb084d8754 100644 --- a/include/net/rose.h +++ b/include/net/rose.h | |||
@@ -188,7 +188,7 @@ extern void rose_kick(struct sock *); | |||
188 | extern void rose_enquiry_response(struct sock *); | 188 | extern void rose_enquiry_response(struct sock *); |
189 | 189 | ||
190 | /* rose_route.c */ | 190 | /* rose_route.c */ |
191 | extern struct rose_neigh rose_loopback_neigh; | 191 | extern struct rose_neigh *rose_loopback_neigh; |
192 | extern const struct file_operations rose_neigh_fops; | 192 | extern const struct file_operations rose_neigh_fops; |
193 | extern const struct file_operations rose_nodes_fops; | 193 | extern const struct file_operations rose_nodes_fops; |
194 | extern const struct file_operations rose_routes_fops; | 194 | extern const struct file_operations rose_routes_fops; |
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index bbad2cdb74b7..f893e90061eb 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -2420,6 +2420,9 @@ static int tcp_tso_acked(struct sock *sk, struct sk_buff *skb, | |||
2420 | __u32 dval = min(tp->fackets_out, packets_acked); | 2420 | __u32 dval = min(tp->fackets_out, packets_acked); |
2421 | tp->fackets_out -= dval; | 2421 | tp->fackets_out -= dval; |
2422 | } | 2422 | } |
2423 | /* hint's skb might be NULL but we don't need to care */ | ||
2424 | tp->fastpath_cnt_hint -= min_t(u32, packets_acked, | ||
2425 | tp->fastpath_cnt_hint); | ||
2423 | tp->packets_out -= packets_acked; | 2426 | tp->packets_out -= packets_acked; |
2424 | 2427 | ||
2425 | BUG_ON(tcp_skb_pcount(skb) == 0); | 2428 | BUG_ON(tcp_skb_pcount(skb) == 0); |
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 73a894a2152c..5b596659177c 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c | |||
@@ -1268,9 +1268,10 @@ static void ndisc_redirect_rcv(struct sk_buff *skb) | |||
1268 | 1268 | ||
1269 | if (ipv6_addr_equal(dest, target)) { | 1269 | if (ipv6_addr_equal(dest, target)) { |
1270 | on_link = 1; | 1270 | on_link = 1; |
1271 | } else if (!(ipv6_addr_type(target) & IPV6_ADDR_LINKLOCAL)) { | 1271 | } else if (ipv6_addr_type(target) != |
1272 | (IPV6_ADDR_UNICAST|IPV6_ADDR_LINKLOCAL)) { | ||
1272 | ND_PRINTK2(KERN_WARNING | 1273 | ND_PRINTK2(KERN_WARNING |
1273 | "ICMPv6 Redirect: target address is not link-local.\n"); | 1274 | "ICMPv6 Redirect: target address is not link-local unicast.\n"); |
1274 | return; | 1275 | return; |
1275 | } | 1276 | } |
1276 | 1277 | ||
@@ -1344,9 +1345,9 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh, | |||
1344 | } | 1345 | } |
1345 | 1346 | ||
1346 | if (!ipv6_addr_equal(&ipv6_hdr(skb)->daddr, target) && | 1347 | if (!ipv6_addr_equal(&ipv6_hdr(skb)->daddr, target) && |
1347 | !(ipv6_addr_type(target) & IPV6_ADDR_LINKLOCAL)) { | 1348 | ipv6_addr_type(target) != (IPV6_ADDR_UNICAST|IPV6_ADDR_LINKLOCAL)) { |
1348 | ND_PRINTK2(KERN_WARNING | 1349 | ND_PRINTK2(KERN_WARNING |
1349 | "ICMPv6 Redirect: target address is not link-local.\n"); | 1350 | "ICMPv6 Redirect: target address is not link-local unicast.\n"); |
1350 | return; | 1351 | return; |
1351 | } | 1352 | } |
1352 | 1353 | ||
diff --git a/net/rose/rose_loopback.c b/net/rose/rose_loopback.c index cd01642f0491..114df6eec8c3 100644 --- a/net/rose/rose_loopback.c +++ b/net/rose/rose_loopback.c | |||
@@ -79,7 +79,7 @@ static void rose_loopback_timer(unsigned long param) | |||
79 | 79 | ||
80 | skb_reset_transport_header(skb); | 80 | skb_reset_transport_header(skb); |
81 | 81 | ||
82 | sk = rose_find_socket(lci_o, &rose_loopback_neigh); | 82 | sk = rose_find_socket(lci_o, rose_loopback_neigh); |
83 | if (sk) { | 83 | if (sk) { |
84 | if (rose_process_rx_frame(sk, skb) == 0) | 84 | if (rose_process_rx_frame(sk, skb) == 0) |
85 | kfree_skb(skb); | 85 | kfree_skb(skb); |
@@ -88,7 +88,7 @@ static void rose_loopback_timer(unsigned long param) | |||
88 | 88 | ||
89 | if (frametype == ROSE_CALL_REQUEST) { | 89 | if (frametype == ROSE_CALL_REQUEST) { |
90 | if ((dev = rose_dev_get(dest)) != NULL) { | 90 | if ((dev = rose_dev_get(dest)) != NULL) { |
91 | if (rose_rx_call_request(skb, dev, &rose_loopback_neigh, lci_o) == 0) | 91 | if (rose_rx_call_request(skb, dev, rose_loopback_neigh, lci_o) == 0) |
92 | kfree_skb(skb); | 92 | kfree_skb(skb); |
93 | } else { | 93 | } else { |
94 | kfree_skb(skb); | 94 | kfree_skb(skb); |
diff --git a/net/rose/rose_route.c b/net/rose/rose_route.c index bbcbad1da0d0..96f61a71b252 100644 --- a/net/rose/rose_route.c +++ b/net/rose/rose_route.c | |||
@@ -45,7 +45,7 @@ static DEFINE_SPINLOCK(rose_neigh_list_lock); | |||
45 | static struct rose_route *rose_route_list; | 45 | static struct rose_route *rose_route_list; |
46 | static DEFINE_SPINLOCK(rose_route_list_lock); | 46 | static DEFINE_SPINLOCK(rose_route_list_lock); |
47 | 47 | ||
48 | struct rose_neigh rose_loopback_neigh; | 48 | struct rose_neigh *rose_loopback_neigh; |
49 | 49 | ||
50 | /* | 50 | /* |
51 | * Add a new route to a node, and in the process add the node and the | 51 | * Add a new route to a node, and in the process add the node and the |
@@ -362,7 +362,12 @@ out: | |||
362 | */ | 362 | */ |
363 | void rose_add_loopback_neigh(void) | 363 | void rose_add_loopback_neigh(void) |
364 | { | 364 | { |
365 | struct rose_neigh *sn = &rose_loopback_neigh; | 365 | struct rose_neigh *sn; |
366 | |||
367 | rose_loopback_neigh = kmalloc(sizeof(struct rose_neigh), GFP_KERNEL); | ||
368 | if (!rose_loopback_neigh) | ||
369 | return; | ||
370 | sn = rose_loopback_neigh; | ||
366 | 371 | ||
367 | sn->callsign = null_ax25_address; | 372 | sn->callsign = null_ax25_address; |
368 | sn->digipeat = NULL; | 373 | sn->digipeat = NULL; |
@@ -417,13 +422,13 @@ int rose_add_loopback_node(rose_address *address) | |||
417 | rose_node->mask = 10; | 422 | rose_node->mask = 10; |
418 | rose_node->count = 1; | 423 | rose_node->count = 1; |
419 | rose_node->loopback = 1; | 424 | rose_node->loopback = 1; |
420 | rose_node->neighbour[0] = &rose_loopback_neigh; | 425 | rose_node->neighbour[0] = rose_loopback_neigh; |
421 | 426 | ||
422 | /* Insert at the head of list. Address is always mask=10 */ | 427 | /* Insert at the head of list. Address is always mask=10 */ |
423 | rose_node->next = rose_node_list; | 428 | rose_node->next = rose_node_list; |
424 | rose_node_list = rose_node; | 429 | rose_node_list = rose_node; |
425 | 430 | ||
426 | rose_loopback_neigh.count++; | 431 | rose_loopback_neigh->count++; |
427 | 432 | ||
428 | out: | 433 | out: |
429 | spin_unlock_bh(&rose_node_list_lock); | 434 | spin_unlock_bh(&rose_node_list_lock); |
@@ -454,7 +459,7 @@ void rose_del_loopback_node(rose_address *address) | |||
454 | 459 | ||
455 | rose_remove_node(rose_node); | 460 | rose_remove_node(rose_node); |
456 | 461 | ||
457 | rose_loopback_neigh.count--; | 462 | rose_loopback_neigh->count--; |
458 | 463 | ||
459 | out: | 464 | out: |
460 | spin_unlock_bh(&rose_node_list_lock); | 465 | spin_unlock_bh(&rose_node_list_lock); |
diff --git a/net/sched/cls_u32.c b/net/sched/cls_u32.c index 8dbe36912ecb..d4d5d2f271d2 100644 --- a/net/sched/cls_u32.c +++ b/net/sched/cls_u32.c | |||
@@ -502,7 +502,7 @@ static int u32_set_parms(struct tcf_proto *tp, unsigned long base, | |||
502 | 502 | ||
503 | #ifdef CONFIG_NET_CLS_IND | 503 | #ifdef CONFIG_NET_CLS_IND |
504 | if (tb[TCA_U32_INDEV-1]) { | 504 | if (tb[TCA_U32_INDEV-1]) { |
505 | int err = tcf_change_indev(tp, n->indev, tb[TCA_U32_INDEV-1]); | 505 | err = tcf_change_indev(tp, n->indev, tb[TCA_U32_INDEV-1]); |
506 | if (err < 0) | 506 | if (err < 0) |
507 | goto errout; | 507 | goto errout; |
508 | } | 508 | } |