From: David S. Miller Date: Mon, 27 Sep 2010 08:03:03 +0000 (-0700) Subject: Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 X-Git-Tag: v2.6.37-rc1~147^2~349 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e40051d134f7ee95c8c1f7a3471e84eafc9ab326;p=platform%2Fkernel%2Flinux-3.10.git Merge branch 'master' of /linux/kernel/git/davem/net-2.6 Conflicts: drivers/net/qlcnic/qlcnic_init.c net/ipv4/ip_output.c --- e40051d134f7ee95c8c1f7a3471e84eafc9ab326 diff --cc net/ipv4/ip_gre.c index 0967d02,35c93e8..5d6ddcb --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c @@@ -44,9 -44,8 +44,9 @@@ #include #include #include +#include - #ifdef CONFIG_IPV6 + #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) #include #include #include diff --cc net/ipv4/ip_output.c index 3551b6d,7649d77..439d2a3 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c @@@ -487,10 -487,9 +487,9 @@@ int ip_fragment(struct sk_buff *skb, in * LATER: this step can be merged to real generation of fragments, * we can switch to copy when see the first bad fragment. */ - if (skb_has_frags(skb)) { + if (skb_has_frag_list(skb)) { - struct sk_buff *frag; + struct sk_buff *frag, *frag2; int first_len = skb_pagelen(skb); - int truesizes = 0; if (first_len - hlen > mtu || ((first_len - hlen) & 7) || diff --cc net/ipv6/ip6_output.c index efbbbce,980912e..99157b4 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c @@@ -637,9 -637,9 +637,9 @@@ static int ip6_fragment(struct sk_buff } mtu -= hlen + sizeof(struct frag_hdr); - if (skb_has_frags(skb)) { + if (skb_has_frag_list(skb)) { int first_len = skb_pagelen(skb); - int truesizes = 0; + struct sk_buff *frag2; if (first_len - hlen > mtu || ((first_len - hlen) & 7) || diff --cc net/rds/tcp_connect.c index a65ee78,c519939..af95c8e --- a/net/rds/tcp_connect.c +++ b/net/rds/tcp_connect.c @@@ -43,9 -43,9 +43,9 @@@ void rds_tcp_state_change(struct sock * struct rds_connection *conn; struct rds_tcp_connection *tc; - read_lock(&sk->sk_callback_lock); + read_lock_bh(&sk->sk_callback_lock); conn = sk->sk_user_data; - if (conn == NULL) { + if (!conn) { state_change = sk->sk_state_change; goto out; } diff --cc net/rds/tcp_listen.c index ae27869,27844f2..8b5cc4a --- a/net/rds/tcp_listen.c +++ b/net/rds/tcp_listen.c @@@ -114,9 -114,9 +114,9 @@@ void rds_tcp_listen_data_ready(struct s rdsdebug("listen data ready sk %p\n", sk); - read_lock(&sk->sk_callback_lock); + read_lock_bh(&sk->sk_callback_lock); ready = sk->sk_user_data; - if (ready == NULL) { /* check for teardown race */ + if (!ready) { /* check for teardown race */ ready = sk->sk_data_ready; goto out; } diff --cc net/rds/tcp_recv.c index 7017f3af,e437974..67263fb --- a/net/rds/tcp_recv.c +++ b/net/rds/tcp_recv.c @@@ -324,9 -324,9 +324,9 @@@ void rds_tcp_data_ready(struct sock *sk rdsdebug("data ready sk %p bytes %d\n", sk, bytes); - read_lock(&sk->sk_callback_lock); + read_lock_bh(&sk->sk_callback_lock); conn = sk->sk_user_data; - if (conn == NULL) { /* check for teardown race */ + if (!conn) { /* check for teardown race */ ready = sk->sk_data_ready; goto out; } diff --cc net/rds/tcp_send.c index 2979fb4,2f012a0..aa16841 --- a/net/rds/tcp_send.c +++ b/net/rds/tcp_send.c @@@ -174,9 -224,9 +174,9 @@@ void rds_tcp_write_space(struct sock *s struct rds_connection *conn; struct rds_tcp_connection *tc; - read_lock(&sk->sk_callback_lock); + read_lock_bh(&sk->sk_callback_lock); conn = sk->sk_user_data; - if (conn == NULL) { + if (!conn) { write_space = sk->sk_write_space; goto out; }