From patchwork Mon Dec 16 13:30:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Nelkenbaum X-Patchwork-Id: 3354151 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 AE70E9F314 for ; Mon, 16 Dec 2013 13:30:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B3D3220218 for ; Mon, 16 Dec 2013 13:30:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E7EE220212 for ; Mon, 16 Dec 2013 13:30:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753878Ab3LPNah (ORCPT ); Mon, 16 Dec 2013 08:30:37 -0500 Received: from mail-wg0-f45.google.com ([74.125.82.45]:44720 "EHLO mail-wg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753675Ab3LPNah (ORCPT ); Mon, 16 Dec 2013 08:30:37 -0500 Received: by mail-wg0-f45.google.com with SMTP id y10so4618054wgg.12 for ; Mon, 16 Dec 2013 05:30:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=suH/LD0PRarGmVXb2B1ONsTiAdR6dM38+VQvJma4Um8=; b=AGHju8vA/8VB/JgGn77nhBnurBhTe8CPBtYniRQxS70umSsEfBgR/+ULFYZp5OJ/nR PUxWv3h7AVZZupYlYO+QSQGFbXRLRJ5cN/LiG9+t4gpT3ilZMmL6/YJ618KExb9NkiAO yugp109pOw/BCNb9Xqtlr0qdU3ZonsHOQ/0FLjBefYBXIXF0o5HuORj5nN/e8UU6g2+P IOQTCnwcYTDgTQZPHmLkBRF4NICV3kA12v+zbi8TaUbR7PBA2wUzaSD8QbqoAb6M+z+8 XCP3GVT4lHNEoMkYe0ESG+BWN/c+Yvm1sAzHncDzBWnSey/RfHGYno0yYaiOq8aDZXoT t5SQ== X-Gm-Message-State: ALoCoQnaXLlnfkki4kUzMhzUAqalpeyH0b2I0LXpQfET2Gfj4EKTQE0vzecPse8pxjtApGYDedoZ X-Received: by 10.181.12.6 with SMTP id em6mr5697927wid.49.1387200635657; Mon, 16 Dec 2013 05:30:35 -0800 (PST) Received: from [10.223.0.16] (out.voltaire.com. [193.47.165.251]) by mx.google.com with ESMTPSA id fu1sm5443891wib.9.2013.12.16.05.30.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 16 Dec 2013 05:30:32 -0800 (PST) Message-ID: <52AF0075.3070709@dev.mellanox.co.il> Date: Mon, 16 Dec 2013 15:30:29 +0200 From: Ilya Nelkenbaum User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Hal Rosenstock , Sasha Kotchubievsky , "linux-rdma@vger.kernel.org" Subject: [PATCH v2] ssa_smdb.[c h]: remove 'osm_header.h' dependency from 'ssa_smdb.h' Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 Signed-off-by: Ilya Nelkenbaum --- Changes since version 1: - all method declarations were removed from 'ssa_smdb.h' - argument types were changed back from 'void*' to specific types include/infiniband/ssa_smdb.h | 26 -------------------------- plugin/src/ssa_extract.c | 16 ++++++++++++++++ plugin/src/ssa_smdb.c | 1 + 3 files changed, 17 insertions(+), 26 deletions(-) -- 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/include/infiniband/ssa_smdb.h b/include/infiniband/ssa_smdb.h index 66fae67..016c99f 100644 --- a/include/infiniband/ssa_smdb.h +++ b/include/infiniband/ssa_smdb.h @@ -34,7 +34,6 @@ #ifndef _SSA_SMDB_H_ #define _SSA_SMDB_H_ -#include #include #include @@ -204,30 +203,5 @@ struct ep_lft_block_tbl_rec { struct ssa_db *ssa_db_smdb_init(uint64_t data_rec_cnt[SSA_TABLE_ID_MAX]); void ssa_db_smdb_destroy(struct ssa_db * p_smdb); - -/**********************SUBNET OPTS records*******************************/ -void ep_subnet_opts_tbl_rec_init(osm_subn_t *p_subn, - struct ep_subnet_opts_tbl_rec * p_rec); - -/**********************GUID to LID records*******************************/ -void ep_guid_to_lid_tbl_rec_init(osm_port_t *p_port, - struct ep_guid_to_lid_tbl_rec * p_rec); - -/**********************NODE records**************************************/ -void ep_node_tbl_rec_init(osm_node_t *p_node, struct ep_node_tbl_rec * p_rec); - -/**********************LINK records**************************************/ -void ep_link_tbl_rec_init(osm_physp_t *p_physp, struct ep_link_tbl_rec * p_rec); - -/**********************PORT records**************************************/ -void ep_port_tbl_rec_init(osm_physp_t *p_physp, struct ep_port_tbl_rec * p_rec); - -/********************** LFT Block records*******************************/ -void ep_lft_block_tbl_rec_init(osm_switch_t *p_sw, uint16_t lid, uint16_t block, - struct ep_lft_block_tbl_rec * p_rec); - -/********************** LFT Top records*********************************/ -void ep_lft_top_tbl_rec_init(uint16_t lid, uint16_t lft_top, - struct ep_lft_top_tbl_rec *p_rec); END_C_DECLS #endif /* _SSA_SMDB_H_ */ diff --git a/plugin/src/ssa_extract.c b/plugin/src/ssa_extract.c index c8847eb..0587230 100644 --- a/plugin/src/ssa_extract.c +++ b/plugin/src/ssa_extract.c @@ -54,6 +54,22 @@ extern struct ssa_database *ssa_db; extern int first; extern int smdb_deltas; +extern void ep_subnet_opts_tbl_rec_init(osm_subn_t * p_subn, + struct ep_subnet_opts_tbl_rec * p_rec); +extern void ep_guid_to_lid_tbl_rec_init(osm_port_t * p_port, + struct ep_guid_to_lid_tbl_rec * p_rec); +extern void ep_node_tbl_rec_init(osm_node_t * p_node, + struct ep_node_tbl_rec * p_rec); +extern void ep_link_tbl_rec_init(osm_physp_t * p_physp, + struct ep_link_tbl_rec * p_rec); +extern void ep_port_tbl_rec_init(osm_physp_t * p_physp, + struct ep_port_tbl_rec * p_rec); +extern void ep_lft_block_tbl_rec_init(osm_switch_t * p_sw, uint16_t lid, + uint16_t block, + struct ep_lft_block_tbl_rec * p_rec); +extern void ep_lft_top_tbl_rec_init(uint16_t lid, uint16_t lft_top, + struct ep_lft_top_tbl_rec * p_rec); + /** ========================================================================= */ struct ssa_db_extract *ssa_db_extract(osm_opensm_t *p_osm) diff --git a/plugin/src/ssa_smdb.c b/plugin/src/ssa_smdb.c index ed0a53e..a6e75a1 100644 --- a/plugin/src/ssa_smdb.c +++ b/plugin/src/ssa_smdb.c @@ -32,6 +32,7 @@ */ #include +#include #include static const struct db_table_def def_tbl[] = {