Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332892
b: refs/heads/master
c: 809d5fc
h: refs/heads/master
v: v3
  • Loading branch information
Gao feng authored and David S. Miller committed Oct 7, 2012
1 parent 179603e commit 9bcc9a1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6dc878a8ca39e93f70c42f3dd7260bde10c1e0f1
refs/heads/master: 809d5fc9bf6589276a12bd4fd611e4c7ff9940c3
3 changes: 2 additions & 1 deletion trunk/drivers/infiniband/core/cma.c
Original file line number Diff line number Diff line change
Expand Up @@ -3498,7 +3498,8 @@ static int cma_get_id_stats(struct sk_buff *skb, struct netlink_callback *cb)
}

static const struct ibnl_client_cbs cma_cb_table[] = {
[RDMA_NL_RDMA_CM_ID_STATS] = { .dump = cma_get_id_stats },
[RDMA_NL_RDMA_CM_ID_STATS] = { .dump = cma_get_id_stats,
.module = THIS_MODULE },
};

static int __init cma_init(void)
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/infiniband/core/netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ static int ibnl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
{
struct netlink_dump_control c = {
.dump = client->cb_table[op].dump,
.module = client->cb_table[op].module,
};
return netlink_dump_start(nls, skb, nlh, &c);
}
Expand Down
1 change: 1 addition & 0 deletions trunk/include/rdma/rdma_netlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ struct rdma_cm_id_stats {

struct ibnl_client_cbs {
int (*dump)(struct sk_buff *skb, struct netlink_callback *nlcb);
struct module *module;
};

int ibnl_init(void);
Expand Down

0 comments on commit 9bcc9a1

Please sign in to comment.