aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds/ib.h
diff options
context:
space:
mode:
authorAndy Grover <andy.grover@oracle.com>2010-01-13 19:32:24 -0500
committerAndy Grover <andy.grover@oracle.com>2010-09-08 21:11:50 -0400
commit919ced4ce7d6ac62dd5be62d8993fe22a527d53a (patch)
treef201cb777e39cee0fa030ebf0e71558b3227b9c9 /net/rds/ib.h
parent6f3d05db0da0b874afd2dd229bed715133532f8d (diff)
RDS/IB: Remove ib_[header/data]_sge() functions
These functions were to cope with differently ordered sg entries depending on RDS 3.0 or 3.1+. Now that we've dropped 3.0 compatibility we no longer need them. Also, modify usage sites for these to refer to sge[0] or [1] directly. Reorder code to initialize header sgs first. Signed-off-by: Andy Grover <andy.grover@oracle.com>
Diffstat (limited to 'net/rds/ib.h')
-rw-r--r--net/rds/ib.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/net/rds/ib.h b/net/rds/ib.h
index 426035ac54a1..dbf8d6e31493 100644
--- a/net/rds/ib.h
+++ b/net/rds/ib.h
@@ -356,28 +356,4 @@ extern unsigned long rds_ib_sysctl_max_recv_allocation;
356extern unsigned int rds_ib_sysctl_flow_control; 356extern unsigned int rds_ib_sysctl_flow_control;
357extern ctl_table rds_ib_sysctl_table[]; 357extern ctl_table rds_ib_sysctl_table[];
358 358
359/*
360 * Helper functions for getting/setting the header and data SGEs in
361 * RDS packets (not RDMA)
362 *
363 * From version 3.1 onwards, header is in front of data in the sge.
364 */
365static inline struct ib_sge *
366rds_ib_header_sge(struct rds_ib_connection *ic, struct ib_sge *sge)
367{
368 if (ic->conn->c_version > RDS_PROTOCOL_3_0)
369 return &sge[0];
370 else
371 return &sge[1];
372}
373
374static inline struct ib_sge *
375rds_ib_data_sge(struct rds_ib_connection *ic, struct ib_sge *sge)
376{
377 if (ic->conn->c_version > RDS_PROTOCOL_3_0)
378 return &sge[1];
379 else
380 return &sge[0];
381}
382
383#endif 359#endif