aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-06-12 17:27:40 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-12 17:27:40 -0400
commitf9da455b93f6ba076935b4ef4589f61e529ae046 (patch)
tree3c4e69ce1ba1d6bf65915b97a76ca2172105b278 /net/rds
parent0e04c641b199435f3779454055f6a7de258ecdfc (diff)
parente5eca6d41f53db48edd8cf88a3f59d2c30227f8e (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
Pull networking updates from David Miller: 1) Seccomp BPF filters can now be JIT'd, from Alexei Starovoitov. 2) Multiqueue support in xen-netback and xen-netfront, from Andrew J Benniston. 3) Allow tweaking of aggregation settings in cdc_ncm driver, from Bjørn Mork. 4) BPF now has a "random" opcode, from Chema Gonzalez. 5) Add more BPF documentation and improve test framework, from Daniel Borkmann. 6) Support TCP fastopen over ipv6, from Daniel Lee. 7) Add software TSO helper functions and use them to support software TSO in mvneta and mv643xx_eth drivers. From Ezequiel Garcia. 8) Support software TSO in fec driver too, from Nimrod Andy. 9) Add Broadcom SYSTEMPORT driver, from Florian Fainelli. 10) Handle broadcasts more gracefully over macvlan when there are large numbers of interfaces configured, from Herbert Xu. 11) Allow more control over fwmark used for non-socket based responses, from Lorenzo Colitti. 12) Do TCP congestion window limiting based upon measurements, from Neal Cardwell. 13) Support busy polling in SCTP, from Neal Horman. 14) Allow RSS key to be configured via ethtool, from Venkata Duvvuru. 15) Bridge promisc mode handling improvements from Vlad Yasevich. 16) Don't use inetpeer entries to implement ID generation any more, it performs poorly, from Eric Dumazet. * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1522 commits) rtnetlink: fix userspace API breakage for iproute2 < v3.9.0 tcp: fixing TLP's FIN recovery net: fec: Add software TSO support net: fec: Add Scatter/gather support net: fec: Increase buffer descriptor entry number net: fec: Factorize feature setting net: fec: Enable IP header hardware checksum net: fec: Factorize the .xmit transmit function bridge: fix compile error when compiling without IPv6 support bridge: fix smatch warning / potential null pointer dereference via-rhine: fix full-duplex with autoneg disable bnx2x: Enlarge the dorq threshold for VFs bnx2x: Check for UNDI in uncommon branch bnx2x: Fix 1G-baseT link bnx2x: Fix link for KR with swapped polarity lane sctp: Fix sk_ack_backlog wrap-around problem net/core: Add VF link state control policy net/fsl: xgmac_mdio is dependent on OF_MDIO net/fsl: Make xgmac_mdio read error message useful net_sched: drr: warn when qdisc is not work conserving ...
Diffstat (limited to 'net/rds')
-rw-r--r--net/rds/ib_send.c4
-rw-r--r--net/rds/iw_send.c4
-rw-r--r--net/rds/iw_sysctl.c3
-rw-r--r--net/rds/rdma_transport.c2
-rw-r--r--net/rds/sysctl.c3
-rw-r--r--net/rds/tcp_listen.c2
6 files changed, 8 insertions, 10 deletions
diff --git a/net/rds/ib_send.c b/net/rds/ib_send.c
index 37be6e226d1b..1dde91e3dc70 100644
--- a/net/rds/ib_send.c
+++ b/net/rds/ib_send.c
@@ -298,7 +298,7 @@ void rds_ib_send_cq_comp_handler(struct ib_cq *cq, void *context)
298 rds_ib_stats_inc(s_ib_tx_cq_event); 298 rds_ib_stats_inc(s_ib_tx_cq_event);
299 299
300 if (wc.wr_id == RDS_IB_ACK_WR_ID) { 300 if (wc.wr_id == RDS_IB_ACK_WR_ID) {
301 if (ic->i_ack_queued + HZ/2 < jiffies) 301 if (time_after(jiffies, ic->i_ack_queued + HZ/2))
302 rds_ib_stats_inc(s_ib_tx_stalled); 302 rds_ib_stats_inc(s_ib_tx_stalled);
303 rds_ib_ack_send_complete(ic); 303 rds_ib_ack_send_complete(ic);
304 continue; 304 continue;
@@ -315,7 +315,7 @@ void rds_ib_send_cq_comp_handler(struct ib_cq *cq, void *context)
315 315
316 rm = rds_ib_send_unmap_op(ic, send, wc.status); 316 rm = rds_ib_send_unmap_op(ic, send, wc.status);
317 317
318 if (send->s_queued + HZ/2 < jiffies) 318 if (time_after(jiffies, send->s_queued + HZ/2))
319 rds_ib_stats_inc(s_ib_tx_stalled); 319 rds_ib_stats_inc(s_ib_tx_stalled);
320 320
321 if (send->s_op) { 321 if (send->s_op) {
diff --git a/net/rds/iw_send.c b/net/rds/iw_send.c
index e40c3c5db2c4..9105ea03aec5 100644
--- a/net/rds/iw_send.c
+++ b/net/rds/iw_send.c
@@ -232,7 +232,7 @@ void rds_iw_send_cq_comp_handler(struct ib_cq *cq, void *context)
232 } 232 }
233 233
234 if (wc.wr_id == RDS_IW_ACK_WR_ID) { 234 if (wc.wr_id == RDS_IW_ACK_WR_ID) {
235 if (ic->i_ack_queued + HZ/2 < jiffies) 235 if (time_after(jiffies, ic->i_ack_queued + HZ/2))
236 rds_iw_stats_inc(s_iw_tx_stalled); 236 rds_iw_stats_inc(s_iw_tx_stalled);
237 rds_iw_ack_send_complete(ic); 237 rds_iw_ack_send_complete(ic);
238 continue; 238 continue;
@@ -267,7 +267,7 @@ void rds_iw_send_cq_comp_handler(struct ib_cq *cq, void *context)
267 267
268 send->s_wr.opcode = 0xdead; 268 send->s_wr.opcode = 0xdead;
269 send->s_wr.num_sge = 1; 269 send->s_wr.num_sge = 1;
270 if (send->s_queued + HZ/2 < jiffies) 270 if (time_after(jiffies, send->s_queued + HZ/2))
271 rds_iw_stats_inc(s_iw_tx_stalled); 271 rds_iw_stats_inc(s_iw_tx_stalled);
272 272
273 /* If a RDMA operation produced an error, signal this right 273 /* If a RDMA operation produced an error, signal this right
diff --git a/net/rds/iw_sysctl.c b/net/rds/iw_sysctl.c
index 89c91515ed0c..139239d2cb22 100644
--- a/net/rds/iw_sysctl.c
+++ b/net/rds/iw_sysctl.c
@@ -111,8 +111,7 @@ static struct ctl_table rds_iw_sysctl_table[] = {
111 111
112void rds_iw_sysctl_exit(void) 112void rds_iw_sysctl_exit(void)
113{ 113{
114 if (rds_iw_sysctl_hdr) 114 unregister_net_sysctl_table(rds_iw_sysctl_hdr);
115 unregister_net_sysctl_table(rds_iw_sysctl_hdr);
116} 115}
117 116
118int rds_iw_sysctl_init(void) 117int rds_iw_sysctl_init(void)
diff --git a/net/rds/rdma_transport.c b/net/rds/rdma_transport.c
index c2be901d19ee..6cd9d1deafc3 100644
--- a/net/rds/rdma_transport.c
+++ b/net/rds/rdma_transport.c
@@ -168,7 +168,7 @@ static int rds_rdma_listen_init(void)
168 return ret; 168 return ret;
169 } 169 }
170 170
171 sin.sin_family = AF_INET, 171 sin.sin_family = AF_INET;
172 sin.sin_addr.s_addr = (__force u32)htonl(INADDR_ANY); 172 sin.sin_addr.s_addr = (__force u32)htonl(INADDR_ANY);
173 sin.sin_port = (__force u16)htons(RDS_PORT); 173 sin.sin_port = (__force u16)htons(RDS_PORT);
174 174
diff --git a/net/rds/sysctl.c b/net/rds/sysctl.c
index b5cb2aa08f33..c3b0cd43eb56 100644
--- a/net/rds/sysctl.c
+++ b/net/rds/sysctl.c
@@ -94,8 +94,7 @@ static struct ctl_table rds_sysctl_rds_table[] = {
94 94
95void rds_sysctl_exit(void) 95void rds_sysctl_exit(void)
96{ 96{
97 if (rds_sysctl_reg_table) 97 unregister_net_sysctl_table(rds_sysctl_reg_table);
98 unregister_net_sysctl_table(rds_sysctl_reg_table);
99} 98}
100 99
101int rds_sysctl_init(void) 100int rds_sysctl_init(void)
diff --git a/net/rds/tcp_listen.c b/net/rds/tcp_listen.c
index 4e638f851185..23ab4dcd1d9f 100644
--- a/net/rds/tcp_listen.c
+++ b/net/rds/tcp_listen.c
@@ -153,7 +153,7 @@ int rds_tcp_listen_init(void)
153 sock->sk->sk_data_ready = rds_tcp_listen_data_ready; 153 sock->sk->sk_data_ready = rds_tcp_listen_data_ready;
154 write_unlock_bh(&sock->sk->sk_callback_lock); 154 write_unlock_bh(&sock->sk->sk_callback_lock);
155 155
156 sin.sin_family = PF_INET, 156 sin.sin_family = PF_INET;
157 sin.sin_addr.s_addr = (__force u32)htonl(INADDR_ANY); 157 sin.sin_addr.s_addr = (__force u32)htonl(INADDR_ANY);
158 sin.sin_port = (__force u16)htons(RDS_TCP_PORT); 158 sin.sin_port = (__force u16)htons(RDS_TCP_PORT);
159 159