diff options
author | Upinder Malhi <umalhi@cisco.com> | 2014-01-09 17:48:10 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-01-14 03:44:42 -0500 |
commit | 60b215e8b267f911751a043de63181dab1b69706 (patch) | |
tree | faa7429765844cfa7741675dd766e717c8da336b /drivers/infiniband/hw | |
parent | 256d6a6ac52ee02e897cec88ecc96c3ae7f9cb88 (diff) |
IB/usnic: Port over sysfs to new usnic_fwd.h
This patch ports usnic_ib_sysfs.c to the new interface of
usnic_fwd.h.
Signed-off-by: Upinder Malhi <umalhi@cisco.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/usnic/usnic_ib_sysfs.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/infiniband/hw/usnic/usnic_ib_sysfs.c b/drivers/infiniband/hw/usnic/usnic_ib_sysfs.c index bad985e9df08..3e5884232342 100644 --- a/drivers/infiniband/hw/usnic/usnic_ib_sysfs.c +++ b/drivers/infiniband/hw/usnic/usnic_ib_sysfs.c | |||
@@ -104,7 +104,7 @@ usnic_ib_show_config(struct device *device, struct device_attribute *attr, | |||
104 | PCI_SLOT(us_ibdev->pdev->devfn), | 104 | PCI_SLOT(us_ibdev->pdev->devfn), |
105 | PCI_FUNC(us_ibdev->pdev->devfn), | 105 | PCI_FUNC(us_ibdev->pdev->devfn), |
106 | netdev_name(us_ibdev->netdev), | 106 | netdev_name(us_ibdev->netdev), |
107 | us_ibdev->mac, | 107 | us_ibdev->ufdev->mac, |
108 | atomic_read(&us_ibdev->vf_cnt.refcount)); | 108 | atomic_read(&us_ibdev->vf_cnt.refcount)); |
109 | UPDATE_PTR_LEFT(n, ptr, left); | 109 | UPDATE_PTR_LEFT(n, ptr, left); |
110 | 110 | ||
@@ -239,21 +239,17 @@ static ssize_t summary_show(struct usnic_ib_qp_grp *qp_grp, char *buf) | |||
239 | int left; | 239 | int left; |
240 | char *ptr; | 240 | char *ptr; |
241 | struct usnic_vnic_res_chunk *res_chunk; | 241 | struct usnic_vnic_res_chunk *res_chunk; |
242 | struct usnic_fwd_filter_hndl *default_filter_hndl; | ||
243 | struct usnic_vnic_res *vnic_res; | 242 | struct usnic_vnic_res *vnic_res; |
244 | 243 | ||
245 | left = PAGE_SIZE; | 244 | left = PAGE_SIZE; |
246 | ptr = buf; | 245 | ptr = buf; |
247 | default_filter_hndl = list_first_entry(&qp_grp->filter_hndls, | ||
248 | struct usnic_fwd_filter_hndl, link); | ||
249 | 246 | ||
250 | n = scnprintf(ptr, left, | 247 | n = scnprintf(ptr, left, |
251 | "QPN: %d State: (%s) PID: %u VF Idx: %hu Filter ID: 0x%x ", | 248 | "QPN: %d State: (%s) PID: %u VF Idx: %hu ", |
252 | qp_grp->ibqp.qp_num, | 249 | qp_grp->ibqp.qp_num, |
253 | usnic_ib_qp_grp_state_to_string(qp_grp->state), | 250 | usnic_ib_qp_grp_state_to_string(qp_grp->state), |
254 | qp_grp->owner_pid, | 251 | qp_grp->owner_pid, |
255 | usnic_vnic_get_index(qp_grp->vf->vnic), | 252 | usnic_vnic_get_index(qp_grp->vf->vnic)); |
256 | default_filter_hndl->id); | ||
257 | UPDATE_PTR_LEFT(n, ptr, left); | 253 | UPDATE_PTR_LEFT(n, ptr, left); |
258 | 254 | ||
259 | for (i = 0; qp_grp->res_chunk_list[i]; i++) { | 255 | for (i = 0; qp_grp->res_chunk_list[i]; i++) { |