From patchwork Wed Nov 9 18:20:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flavio Leitner X-Patchwork-Id: 124652 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 34BBC1007DB for ; Thu, 10 Nov 2011 05:21:23 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754613Ab1KISVS (ORCPT ); Wed, 9 Nov 2011 13:21:18 -0500 Received: from mx1.redhat.com ([209.132.183.28]:6959 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751010Ab1KISVR (ORCPT ); Wed, 9 Nov 2011 13:21:17 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pA9IL4J3004579 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 9 Nov 2011 13:21:04 -0500 Received: from localhost (ovpn-113-32.phx2.redhat.com [10.3.113.32]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id pA9IL24X023032; Wed, 9 Nov 2011 13:21:03 -0500 From: Flavio Leitner To: Jiri Pirko Cc: netdev , davem@davemloft.net, eric.dumazet@gmail.com, bhutchings@solarflare.com, shemminger@vyatta.com, fubar@us.ibm.com, andy@greyhouse.net, tgraf@infradead.org, ebiederm@xmission.com, mirqus@gmail.com, kaber@trash.net, greearb@candelatech.com, jesse@nicira.com, benjamin.poirier@gmail.com, jzupka@redhat.com, Flavio Leitner Subject: [PATCH] libteam: fix function names to include 'bond' Date: Wed, 9 Nov 2011 16:20:46 -0200 Message-Id: <1320862846-6000-1-git-send-email-fbl@redhat.com> In-Reply-To: <1319660867-945-1-git-send-email-jpirko@redhat.com> References: <1319660867-945-1-git-send-email-jpirko@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Signed-off-by: Flavio Leitner --- I found those while trying to test V6 patch using latest libteam (commit 5e9790816606a6dd4e7f6f32c0bb0c45e5d13b31) and libnl-3.2.2 (last stable). thanks, fbl lib/libteam.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libteam.c b/lib/libteam.c index feb13b6..e7ae6b0 100644 --- a/lib/libteam.c +++ b/lib/libteam.c @@ -1331,7 +1331,7 @@ int team_port_add(struct team_handle *th, uint32_t port_ifindex) { int err; - err = rtnl_link_enslave_ifindex(th->nl_cli.sock, th->ifindex, + err = rtnl_link_bond_enslave_ifindex(th->nl_cli.sock, th->ifindex, port_ifindex); return -nl2syserr(err); } @@ -1350,6 +1350,6 @@ int team_port_remove(struct team_handle *th, uint32_t port_ifindex) { int err; - err = rtnl_link_release_ifindex(th->nl_cli.sock, port_ifindex); + err = rtnl_link_bond_release_ifindex(th->nl_cli.sock, port_ifindex); return -nl2syserr(err); }