[PATCH] IB: Introduce RMPP APIs
Introduce RMPP APIs Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Hal Rosenstock <halr@voltaire.com> Cc: Roland Dreier <rolandd@cisco.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
497677ab94
commit
d2082ee516
@@ -777,7 +777,7 @@ static int get_buf_length(int hdr_len, int data_len)
|
||||
|
||||
struct ib_mad_send_buf * ib_create_send_mad(struct ib_mad_agent *mad_agent,
|
||||
u32 remote_qpn, u16 pkey_index,
|
||||
struct ib_ah *ah,
|
||||
struct ib_ah *ah, int rmpp_active,
|
||||
int hdr_len, int data_len,
|
||||
unsigned int __nocast gfp_mask)
|
||||
{
|
||||
@@ -786,6 +786,8 @@ struct ib_mad_send_buf * ib_create_send_mad(struct ib_mad_agent *mad_agent,
|
||||
int buf_size;
|
||||
void *buf;
|
||||
|
||||
if (rmpp_active)
|
||||
return ERR_PTR(-EINVAL); /* until RMPP implemented */
|
||||
mad_agent_priv = container_of(mad_agent,
|
||||
struct ib_mad_agent_private, agent);
|
||||
buf_size = get_buf_length(hdr_len, data_len);
|
||||
|
@@ -50,26 +50,6 @@ MODULE_AUTHOR("Roland Dreier");
|
||||
MODULE_DESCRIPTION("InfiniBand subnet administration query support");
|
||||
MODULE_LICENSE("Dual BSD/GPL");
|
||||
|
||||
/*
|
||||
* These two structures must be packed because they have 64-bit fields
|
||||
* that are only 32-bit aligned. 64-bit architectures will lay them
|
||||
* out wrong otherwise. (And unfortunately they are sent on the wire
|
||||
* so we can't change the layout)
|
||||
*/
|
||||
struct ib_sa_hdr {
|
||||
u64 sm_key;
|
||||
u16 attr_offset;
|
||||
u16 reserved;
|
||||
ib_sa_comp_mask comp_mask;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
struct ib_sa_mad {
|
||||
struct ib_mad_hdr mad_hdr;
|
||||
struct ib_rmpp_hdr rmpp_hdr;
|
||||
struct ib_sa_hdr sa_hdr;
|
||||
u8 data[200];
|
||||
} __attribute__ ((packed));
|
||||
|
||||
struct ib_sa_sm_ah {
|
||||
struct ib_ah *ah;
|
||||
struct kref ref;
|
||||
|
Reference in New Issue
Block a user