From patchwork Sat Oct 8 16:50:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Abramov X-Patchwork-Id: 431 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 47D0227BBE9; Sat, 8 Oct 2022 17:52:30 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id BF4BE27BBEA for ; Sat, 8 Oct 2022 17:52:27 +0100 (BST) Received: from localhost ([::1]:45878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohD3q-0005nl-Ni for patchwork@mira.cbaines.net; Sat, 08 Oct 2022 12:52:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohD3S-0005nO-SZ for guix-patches@gnu.org; Sat, 08 Oct 2022 12:52:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42280) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ohD3S-0006sf-KP for guix-patches@gnu.org; Sat, 08 Oct 2022 12:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ohD3S-0002YV-Aj for guix-patches@gnu.org; Sat, 08 Oct 2022 12:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58382] [PATCH 0/3] guile-netlink: Add support for bonds Resent-From: Alexey Abramov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 08 Oct 2022 16:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58382 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58382@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16652478679747 (code B ref -1); Sat, 08 Oct 2022 16:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Oct 2022 16:51:07 +0000 Received: from localhost ([127.0.0.1]:41358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohD2Y-0002X9-Oa for submit@debbugs.gnu.org; Sat, 08 Oct 2022 12:51:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:33364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohD2T-0002Wm-TI for submit@debbugs.gnu.org; Sat, 08 Oct 2022 12:51:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohD2T-0005bw-N0 for guix-patches@gnu.org; Sat, 08 Oct 2022 12:51:01 -0400 Received: from mail.mmer.org ([178.22.65.174]:52742) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohD2S-0006kg-3M for guix-patches@gnu.org; Sat, 08 Oct 2022 12:51:01 -0400 Received: from mail.mmer.org (localhost [127.0.0.1]) by mail.mmer.org (OpenSMTPD) with ESMTP id 95e04c34 for ; Sat, 8 Oct 2022 16:50:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=mmer.org; h=from:to :subject:date:message-id:mime-version:content-transfer-encoding; s=dkim; bh=jza6BdWodyh/gbwewJySylTwgmdnoSeofGhJ0YxPQvY=; b=qs3+ Q23uPLbHp8PUR6X2lUzuPHWpX4vRB1GuL2+Ei53M0y9TI8X5d8Mzd29hPd6AFqBM ZDQrZYaq2kUYIPCsu3JGcgG8JPXrjJg+/R3TZLCLaSh4SRDHpvR+OVbIo9+1DZAw l+ImVPPh6fk5sSvdqBd8rOR05KWVq+Vb5jxit8M= Received: from delta (j74210.upc-j.chello.nl [24.132.74.210]) by mail.mmer.org (OpenSMTPD) with ESMTPSA id 7459747d (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Sat, 8 Oct 2022 16:50:54 +0000 (UTC) Date: Sat, 8 Oct 2022 18:50:43 +0200 Message-Id: <20221008165043.13177-1-levenson@mmer.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Received-SPF: pass client-ip=178.22.65.174; envelope-from=levenson@mmer.org; helo=mail.mmer.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Alexey Abramov X-ACL-Warn: , Alexey Abramov via Guix-patches X-Patchwork-Original-From: Alexey Abramov via Guix-patches via From: Alexey Abramov X-getmail-retrieved-from-mailbox: Patches With these patches, guile-netlink can be used to build bonds. bond-type-args function accepts keys that people would be set to bond interfaces via 'ip link set'. 'ip link help bond' shows the list of all passable settings. Only few of them are implemented right now. Master field was also added to 'link-set' in order to bind interfaces to their masters in case of bonding. Alexey Abramov (3): link: Pass correct attribute and a payload to rename a link link: Allow to bound interfaces to bonds link: Add partial support for bond interfaces ip/link.scm | 77 ++++++++++++++++++++++++++++++++++++++++++-- netlink/constant.scm | 30 +++++++++++++++++ 2 files changed, 104 insertions(+), 3 deletions(-)