From patchwork Tue Mar 29 08:46:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Dorfman X-Patchwork-Id: 670892 X-Patchwork-Delegate: alexne@voltaire.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2T8eO1V018618 for ; Tue, 29 Mar 2011 08:40:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750994Ab1C2IkX (ORCPT ); Tue, 29 Mar 2011 04:40:23 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:56875 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750788Ab1C2IkW (ORCPT ); Tue, 29 Mar 2011 04:40:22 -0400 Received: by fxm17 with SMTP id 17so7147fxm.19 for ; Tue, 29 Mar 2011 01:40:19 -0700 (PDT) Received: by 10.223.98.8 with SMTP id o8mr2151132fan.22.1301388019598; Tue, 29 Mar 2011 01:40:19 -0700 (PDT) Received: from [172.25.1.69] (fwil.voltaire.com [193.47.165.2]) by mx.google.com with ESMTPS id k5sm1837262faa.15.2011.03.29.01.40.17 (version=SSLv3 cipher=OTHER); Tue, 29 Mar 2011 01:40:18 -0700 (PDT) Message-ID: <4D919C79.9030406@dev.mellanox.co.il> Date: Tue, 29 Mar 2011 10:46:49 +0200 From: Eli Dorfman User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Alex Netes CC: linux-rdma Subject: [PATCH] opensm: Allow comma in plugin names parsing Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 29 Mar 2011 08:40:25 +0000 (UTC) diff --git a/opensm/osm_opensm.c b/opensm/osm_opensm.c index cb40f71..11b7158 100644 --- a/opensm/osm_opensm.c +++ b/opensm/osm_opensm.c @@ -324,7 +324,7 @@ static void load_plugins(osm_opensm_t *osm, const char *plugin_names) char *p_names, *name, *p; p_names = strdup(plugin_names); - name = strtok_r(p_names, " \t\n", &p); + name = strtok_r(p_names, ", \t\n", &p); while (name && *name) { epi = osm_epi_construct(osm, name); if (!epi)