return ret;
}
-static u8 rds_ib_port_lookup(struct rds_ib_device *rds_ibdev, u8 port_num)
-{
- u8 i;
-
- for (i = 1; i <= ip_port_cnt; i++) {
- if (ip_config[i].rds_ibdev == rds_ibdev &&
- ip_config[i].port_num == port_num)
- return i;
- }
- return 0;
-}
-
static u8 rds_ib_get_failover_port(u8 port)
{
u8 i;
dp->dp_protocol_minor = RDS_PROTOCOL_MINOR(protocol_version);
dp->dp_protocol_minor_mask = cpu_to_be16(RDS_IB_SUPPORTED_PROTOCOLS);
dp->dp_ack_seq = rds_ib_piggyb_ack(ic);
- dp->dp_tos = cpu_to_be32(conn->c_tos);
+ dp->dp_tos = conn->c_tos;
/* Advertise flow control */
if (ic->i_flowctl) {
(unsigned long long)be64_to_cpu(fguid));
conn = rds_conn_create(dp->dp_daddr, dp->dp_saddr, &rds_ib_transport,
- be32_to_cpu(dp->dp_tos), GFP_KERNEL);
+ dp->dp_tos, GFP_KERNEL);
if (IS_ERR(conn)) {
rdsdebug("rds_conn_create failed (%ld)\n", PTR_ERR(conn));
conn = NULL;