Messages in this thread | | | Date | Mon, 06 Mar 2006 13:42:13 -0800 | From | Sean Hefty <> | Subject | Re: [openib-general] Re: [PATCH 6/6] IB: userspace support for RDMA connection manager |
| |
Roland Dreier wrote: > > +struct rdma_ucm_query_route_resp { > > + __u64 node_guid; > > + struct ib_user_path_rec ib_route[2]; > > + struct sockaddr_in6 src_addr; > > + struct sockaddr_in6 dst_addr; > > + __u32 num_paths; > > + __u8 port_num; > > + __u8 reserved[3]; > > +}; > > Is there a 32-bit/64-bit compatibility problem here? From a quick > look, struct sockaddr_in6 is not 8-byte aligned.
Unless I miss counted, they should be aligned. ib_user_path_rec is defined near the end of patch 1/6.
+struct ib_user_path_rec { + __u8 dgid[16]; + __u8 sgid[16]; + __be16 dlid; + __be16 slid; + __u32 raw_traffic; + __be32 flow_label; + __u32 reversible; + __u32 mtu; + __be16 pkey; + __u8 hop_limit; + __u8 traffic_class; + __u8 numb_path; + __u8 sl; + __u8 mtu_selector; + __u8 rate_selector; + __u8 rate; + __u8 packet_life_time_selector; + __u8 packet_life_time; + __u8 preference; +};
- Sean
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |