From patchwork Fri Dec 20 20:30:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Upinder Malhi (umalhi)" X-Patchwork-Id: 3391791 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4ABF79F344 for ; Fri, 20 Dec 2013 20:30:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 77BCF20704 for ; Fri, 20 Dec 2013 20:30:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 95DED20703 for ; Fri, 20 Dec 2013 20:30:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752636Ab3LTUag (ORCPT ); Fri, 20 Dec 2013 15:30:36 -0500 Received: from mtv-iport-2.cisco.com ([173.36.130.13]:16712 "EHLO mtv-iport-2.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752135Ab3LTUaf (ORCPT ); Fri, 20 Dec 2013 15:30:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1689; q=dns/txt; s=iport; t=1387571435; x=1388781035; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=KSCiIZFkYIyZwmhFmf3RCphUWoDdKHAPghoOfBz1Y0E=; b=GqKx2/edD+3jOIyfdbTLdQ7RB2A15nMzE+2JPvUH6+HUWgp6ErmrEGLg ZiPmw0e7NyBnaj0K+CmERQ0tq39l4zHYJwd8cDuT4Kb5wmN2DkyGjLMAp r1L59GSmeKeLZuc6hQshUvrxP51kU/wiP+xt8fGky/qB4DPnqoGB/A1Gx 4=; X-IronPort-AV: E=Sophos;i="4.95,523,1384300800"; d="scan'208";a="101113348" Received: from mtv-core-1.cisco.com ([171.68.58.6]) by mtv-iport-2.cisco.com with ESMTP; 20 Dec 2013 20:30:34 +0000 Received: from sjc-savbu-bld03.cisco.com (sjc-savbu-bld03.cisco.com [171.71.188.58]) by mtv-core-1.cisco.com (8.14.5/8.14.5) with ESMTP id rBKKUYUM029939; Fri, 20 Dec 2013 20:30:34 GMT Received: by sjc-savbu-bld03.cisco.com (Postfix, from userid 246720) id 1B3E33F80B; Fri, 20 Dec 2013 12:30:34 -0800 (PST) From: Upinder Malhi To: linux-rdma@vger.kernel.org, roland@kernel.org Cc: Upinder Malhi Subject: [PATCH for-next 5/5] IB/usnic: Port over sysfs to new usnic_fwd.h Date: Fri, 20 Dec 2013 12:30:25 -0800 Message-Id: <1387571425-8566-6-git-send-email-umalhi@cisco.com> X-Mailer: git-send-email 1.8.0-rc0 In-Reply-To: <1387571425-8566-1-git-send-email-umalhi@cisco.com> References: <1387571425-8566-1-git-send-email-umalhi@cisco.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-15.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY, USER_IN_DEF_DKIM_WL autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch ports usnic_ib_sysfs.c to the new interface of usnic_fwd.h. Signed-off-by: Upinder Malhi --- drivers/infiniband/hw/usnic/usnic_ib_sysfs.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) -- 1.8.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/infiniband/hw/usnic/usnic_ib_sysfs.c b/drivers/infiniband/hw/usnic/usnic_ib_sysfs.c index bad985e..3e58842 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, PCI_SLOT(us_ibdev->pdev->devfn), PCI_FUNC(us_ibdev->pdev->devfn), netdev_name(us_ibdev->netdev), - us_ibdev->mac, + us_ibdev->ufdev->mac, atomic_read(&us_ibdev->vf_cnt.refcount)); UPDATE_PTR_LEFT(n, ptr, left); @@ -239,21 +239,17 @@ static ssize_t summary_show(struct usnic_ib_qp_grp *qp_grp, char *buf) int left; char *ptr; struct usnic_vnic_res_chunk *res_chunk; - struct usnic_fwd_filter_hndl *default_filter_hndl; struct usnic_vnic_res *vnic_res; left = PAGE_SIZE; ptr = buf; - default_filter_hndl = list_first_entry(&qp_grp->filter_hndls, - struct usnic_fwd_filter_hndl, link); n = scnprintf(ptr, left, - "QPN: %d State: (%s) PID: %u VF Idx: %hu Filter ID: 0x%x ", + "QPN: %d State: (%s) PID: %u VF Idx: %hu ", qp_grp->ibqp.qp_num, usnic_ib_qp_grp_state_to_string(qp_grp->state), qp_grp->owner_pid, - usnic_vnic_get_index(qp_grp->vf->vnic), - default_filter_hndl->id); + usnic_vnic_get_index(qp_grp->vf->vnic)); UPDATE_PTR_LEFT(n, ptr, left); for (i = 0; qp_grp->res_chunk_list[i]; i++) {