From patchwork Wed Jun 8 18:14:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Toppins X-Patchwork-Id: 12874473 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79C6DC433EF for ; Wed, 8 Jun 2022 18:19:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235464AbiFHSR1 (ORCPT ); Wed, 8 Jun 2022 14:17:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235102AbiFHSPG (ORCPT ); Wed, 8 Jun 2022 14:15:06 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 046A3F66 for ; Wed, 8 Jun 2022 11:15:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654712103; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KtTqOFBPhNUiDjjBagEddu+2OQP4Rt1P8k3OOPYqKPg=; b=a2z061XQ8wPSwZMPhgxTVyauQSj4Dl6HSuYvVuPFbAooht7OWCfBcmzk9sVMfe8dS63nvm Ia5+FFV46l868W3v/a2BHJdhseBKDN5kxrFEPtfyF7Tqjon1R3c12hVALTClrUiDRnBO8U FB3O/qQSX0xELSKfQ6BbvjDbeJ7yxt8= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-453-0F20A9oZNfi5ZphfQ3Hvsw-1; Wed, 08 Jun 2022 14:15:01 -0400 X-MC-Unique: 0F20A9oZNfi5ZphfQ3Hvsw-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 866FF811E75 for ; Wed, 8 Jun 2022 18:15:01 +0000 (UTC) Received: from jtoppins.rdu.csb (unknown [10.22.16.117]) by smtp.corp.redhat.com (Postfix) with ESMTP id 67E3F492CA3; Wed, 8 Jun 2022 18:15:01 +0000 (UTC) From: Jonathan Toppins To: netdev@vger.kernel.org Cc: jtoppins@redhat.com Subject: [net-next v2 0/2] bonding: netlink errors and cleanup Date: Wed, 8 Jun 2022 14:14:55 -0400 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org The first patch attempts to set helpful error messages when configuring bonds via netlink. The second patch removes redundant init code for RLB mode which is already done in bond_open. v2: * rebased to latest net-next * fixed kernel doc header for __bond_opt_set Jonathan Toppins (2): bonding: netlink error message support for options bonding: cleanup bond_create drivers/net/bonding/bond_main.c | 24 ++----- drivers/net/bonding/bond_netlink.c | 101 +++++++++++++++++++---------- drivers/net/bonding/bond_options.c | 32 +++++++-- include/net/bond_options.h | 3 +- 4 files changed, 101 insertions(+), 59 deletions(-)