From patchwork Wed Aug 26 16:48:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ido Schimmel X-Patchwork-Id: 1352050 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=idosch.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=Dgt61rOa; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4BcBfC3yDHz9sSJ for ; Thu, 27 Aug 2020 02:49:23 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727093AbgHZQtW (ORCPT ); Wed, 26 Aug 2020 12:49:22 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:50259 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726739AbgHZQtV (ORCPT ); Wed, 26 Aug 2020 12:49:21 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E90FC5C00F2; Wed, 26 Aug 2020 12:49:19 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 26 Aug 2020 12:49:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=7Mo+jNvfVeiHKLsxr c/gOYMW9pT2LGc6993UvqRhSVk=; b=Dgt61rOaDFng4gyC+h5UxO3+2y8IpTCVa zhG5n3CAKU1QLdnsvJrCqmynoOpl5Kn2mB/t3jv9VQuq/zB47dCGuT4/8yxaxQRc P9+I/WVGuMNSFAsCvaQ4rBMtiR/3rCsNCsRfnkTpIPcMdkmo892NhZ8an1uhwqI+ Mg+boaVviNi9ljyG2L8KuTEJ0HQI4QHMv1rGmBoWzY0cvh+HL8EvV5+jGhNGpr6V Ro89WuzH1nL6cQTkEQezemHsR+fHWTy/8aaWrhPTYolpSjxhtU6oufLpe34BqA0B 8Hg4GUQa9t3aoVMj3twt/CdAJc0SG13ik7UMeffSt4RrNhGZinRbA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedruddvvddguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpefkughoucfutghhihhmmhgvlhcuoehiughoshgthhesihguohhs tghhrdhorhhgqeenucggtffrrghtthgvrhhnpeetveeghfevgffgffekueffuedvhfeuhe ehteffieekgeehveefvdegledvffduhfenucfkphepkeegrddvvdelrdefjedrudeikeen ucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehiughosh gthhesihguohhstghhrdhorhhg X-ME-Proxy: Received: from shredder.mtl.com (igld-84-229-37-168.inter.net.il [84.229.37.168]) by mail.messagingengine.com (Postfix) with ESMTPA id 0D8673280059; Wed, 26 Aug 2020 12:49:17 -0400 (EDT) From: Ido Schimmel To: netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, dsahern@gmail.com, mlxsw@nvidia.com, Ido Schimmel Subject: [PATCH net-next 0/7] ipv4: nexthop: Various improvements Date: Wed, 26 Aug 2020 19:48:50 +0300 Message-Id: <20200826164857.1029764-1-idosch@idosch.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Ido Schimmel This patch set contains various improvements that I made to the nexthop object code while studying it towards my upcoming changes. While patches #4 and #6 fix bugs, they are not regressions (never worked). They also do not occur to me as critical issues, which is why I am targeting them at net-next. Tested with fib_nexthops.sh: Tests passed: 134 Tests failed: 0 Ido Schimmel (7): ipv4: nexthop: Reduce allocation size of 'struct nh_group' ipv4: nexthop: Use nla_put_be32() for NHA_GATEWAY ipv4: nexthop: Remove unnecessary rtnl_dereference() ipv4: nexthop: Correctly update nexthop group when removing a nexthop selftests: fib_nexthops: Test IPv6 route with group after removing IPv4 nexthops ipv4: nexthop: Correctly update nexthop group when replacing a nexthop selftests: fib_nexthops: Test IPv6 route with group after replacing IPv4 nexthops net/ipv4/nexthop.c | 49 ++++++++++++++++++--- tools/testing/selftests/net/fib_nexthops.sh | 30 +++++++++++++ 2 files changed, 72 insertions(+), 7 deletions(-)