Message ID | 20240613113529.238-1-ekinzie@labn.net (mailing list archive) |
---|---|
Headers | show
Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2105.outbound.protection.outlook.com [40.107.236.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2468913791B for <netdev@vger.kernel.org>; Thu, 13 Jun 2024 11:35:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.236.105 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718278536; cv=fail; b=g6fhmyVkW0njCloJui3j2HK2ZQMT0Mkf0L0Jzscxlqobqkn/rm0EuSsMtNQj/6IBttf5IIGl+pz+7RdDt9TfysH2gjhP02T34XoaR75RwYfDnGYsoRHznqVACWS2Hn9sWPQyUOnQr8mYEcNFhSNiqcA+pCddA1KZiw2aLVYMs9U= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718278536; c=relaxed/simple; bh=ak1iEY52P0VXqxlZ6Aawm2f5gIPI9QuybnWmbLOJsyE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=OSJobIdIW/2jZVElyze/S+HRWTXk6egclxUXDdoIaZG8l2oYTPrz5xnTCbNTbUau2yVWH1qgjdfWANeOLItkSVdPy+2ZUVvwFEVG2V1BAr/0Kk8wyS8Pjw7YJBh78fvv3Alne7PLghKREvTsK7b6NJ9tvuzfW8LsbqWu3xgnP6c= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=labn.net; spf=pass smtp.mailfrom=labn.net; dkim=pass (1024-bit key) header.d=labn.onmicrosoft.com header.i=@labn.onmicrosoft.com header.b=QCTmaycy; arc=fail smtp.client-ip=40.107.236.105 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=labn.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=labn.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=labn.onmicrosoft.com header.i=@labn.onmicrosoft.com header.b="QCTmaycy" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X8ljnhipVE1lQM9FsxJzAQqZLXu0EBM5k+OAtq8WySCe1g4HNlzqnOV1EJfi7aDQ1Jtcw+Xc+Q2KTuKxBUSiRghFuXVsawj7tV4d3ozrTi1stn3XZDh7WvyrM0sYpNm5YJSyhtZ8lYARfOGmxnwm2svXs9Rm7Xob53Pt2fLGdOxVo2n/mAlUi6AJRD6vYOHXTI2z/6UxO98kk4zvZ/FBv+tEs+yvO0SqYnOY3xbcZRPERcFOQJJ/LVxVavLWDsRfPTITmlhyRzvW4SuVgBq8HQTdjUzoI1RlecJiOAQnUl6VY5EkmHmITwf0TAC3PGCbUP0yiaHjaWXkI/DpvGrEUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jUZHHXm/9Sx3Y0nlYB09F931N0ZIQhVenrEpdt6daaI=; b=WpWAdIvwF1k+05zSK/Qm302MrbJfLyvmWwYUk5wc7264nH7KgDnNZ5DQrO8/H0vw8uzhl5qHmh0CQFR5fheyLvWE9iwmixBcGXo/Gf8n5lgx8/+YXXXlaGVDC0ziZ+4LU+N0hU5IE1IqrjnqgGWYl2QL6XJ09aIzgkG5QTlvjwERN8pjLvR6ilhp+SBBnw0ghZN7O+gRHgUpczxT3noBumFBeb4XgIEbr5ebmSQsuCJz9MGtmyHFEXfKTrv3K+IS+rermGlVSm4eFR9Moqhi3zLe1awNCDiCwV1Y4RTEyEuXlFGoSc6HLnyg4bMCtqC+pH1ABnXZAS0pmX4U0iWBuQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=labn.net; dmarc=pass action=none header.from=labn.net; dkim=pass header.d=labn.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=labn.onmicrosoft.com; s=selector2-labn-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jUZHHXm/9Sx3Y0nlYB09F931N0ZIQhVenrEpdt6daaI=; b=QCTmaycyRQsLPRKaPCA5rtn2En1hAu1ucn7hCb0Om8mt0ML2YqvlfxZhsSvZ1nns+PE+vdF/kN5zBgIJumwM+n3UmYRuEHnRzeYB7WTaQhbWFnUGD7tP/UYIN9B3EPTcMostl3JtiabwtcXYWNrim6IUySqmqy6bySUORpey/rM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=labn.net; Received: from PH7PR14MB5619.namprd14.prod.outlook.com (2603:10b6:510:1f4::21) by IA0PR14MB6283.namprd14.prod.outlook.com (2603:10b6:208:437::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Thu, 13 Jun 2024 11:35:31 +0000 Received: from PH7PR14MB5619.namprd14.prod.outlook.com ([fe80::3b86:8650:ed26:d86a]) by PH7PR14MB5619.namprd14.prod.outlook.com ([fe80::3b86:8650:ed26:d86a%4]) with mapi id 15.20.7677.019; Thu, 13 Jun 2024 11:35:30 +0000 From: Eric Kinzie <ekinzie@labn.net> To: "David S . Miller" <davem@davemloft.net>, David Ahern <dsahern@kernel.org>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com> Cc: Eric H Kinzie <ekinzie@labn.net>, netdev@vger.kernel.org Subject: [RFC net-next RESEND 0/2] MPLS point-to-multipoint Date: Thu, 13 Jun 2024 07:35:20 -0400 Message-ID: <20240613113529.238-1-ekinzie@labn.net> X-Mailer: git-send-email 2.45.1.313.g3a57aa566a In-Reply-To: <20240529231847.16719-1-ekinzie@labn.net> References: <20240529231847.16719-1-ekinzie@labn.net> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MN2PR08CA0013.namprd08.prod.outlook.com (2603:10b6:208:239::18) To PH7PR14MB5619.namprd14.prod.outlook.com (2603:10b6:510:1f4::21) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: <netdev.vger.kernel.org> List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH7PR14MB5619:EE_|IA0PR14MB6283:EE_ X-MS-Office365-Filtering-Correlation-Id: 0c203546-e3ab-40bc-67ba-08dc8b9cee21 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230034|366010|376008|1800799018; X-Microsoft-Antispam-Message-Info: BtLPcnPpC+y9GxzqzunFfyBu8VUVGhvMqe+1KTv1x6JVqYnEvXgm2KxksnERw0wl1PUIfUI2GAKmtubYoUzdGnbcPLWdOs4WPcInBujXKKTciEMvQcfi0cgx5kdGtamkPqM47waGrRMjv8c5SN8L8c1HKUzta11laYelV+B2ohHCjCsUX9xuWuB4yLJtVCnY3oo/yIVj6oHoznYsaXzkwbrEXChVrxXse0ZR8zF5w+6WbaYrcgELiic/+BvJT3+vEgl0z5/xTF9P5zcaYd/ruP3DRVtJEmfPrHwesVLKXJEdPRhlR5D8zPwfkrgXVoO6s+jiC/3bIif8XlzKh0XYCVNavfo7wKDYrAoQ13w3SwXtsl5wL6hsbVy4MBVpatKj00dC33ibTbesiS7jWY+J581YCTnhTIYkgAoib8vZ+emSP1YVCZu2axk6wETSrQjaRbdgKGwAATYl3gnZub4Ek1A8MaOCpTrxj3d3o1wdt4KE/RleGzJrzcJ3tCvMgXAE3YweCd1h2qINs4i50Sqxd3AyyZpy0ijTaiYFW5b0Ieh/dwFBdMNPFBdfRxlkIJmsDyhaKVYk3dRTDIAbH0rrmBmU3LTP5xEyt3MITuXi4vEoilXj94aEZ3eowluo+/iAWj0E2jRfD/xPbxoptaL1VVsDmPIIkL8SOdjPZzBIQdhX+dpqFucTTui1oTJXSTYv7RfTtdpmz5VnPma6V7IV5LXma9L42TvOIXB1QY/AW2HQAy+9EWKFwb5lqJ6BZB4W1OcV/OG8AiSotJeuTvnV/8rtThoDmuOGFOxOREKtBFY9/WjibfTdyW7+uispTeY3Qwrn9yJiC0xGFcYsyRY4M9pnbyOnjtmwPiQM2g74uUtSyUAv3htGrsbgiRij56ZiO94MInm+iaK2RGi+KMVbs0jth2wR1dUkZB3Plcd9Wz+Hu3wSuWZ6wrnoRjvYouq3tjTqS8S3VBWmdsghwLZnxxbt/CdeX0CvLyfBlrkMq1oTsE73YNk5ugFhN6YuVO37CEFpm26Kr/ElLUGQZrWfOzmIzOmHQRMUO2N4+Kj61S7abbQ8s34H1v3TL2gWFbmtFBJQLB/tktUuz8kN368oMCWe3BZLTXS6sdYLV8jAqqPzY8OjZqOA+QInLUJQaVUvmxXPTDv+AUj32Lh7XZVgTQbZqkODzLSWJB/N7Sh/kC2a0AFLd9I6+doRu5daGC6+VaXR40osAkTdrDxrSsc2WtZ0iUkXHRTbxrG7sg9K4XONoyPEt4garKZ2VgGZpZnMq8srNpUgk15AWTpawyAY2UOtiCFEopHQ93cR0SeWtT1O1ikL/3kSsIamVaDs9vy/ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR14MB5619.namprd14.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230034)(366010)(376008)(1800799018);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-Mess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IFl0VmrzHACpqC97pfXToRCBuKgk2V8tsMI8r/PLpNV8OnCgUF0hs+0wgXo527CMmzXTuQmBbn9cisLJBsjixHsc7q5k6iK0+Ti9eynXz+67y1dLwNpLm0RuZj+Sxgo1VQ3FFcX3m75ARB2BkKil05i57zJF4emBRqYsMAfHkUQY5pnLfz2z86i2ef5xPaDnzhpAowLS1XfVZzikjFDtAAUFTC1BLKii9Dx0LfpwAVkcJyxiSLEyRBSL92LZ0cNw/2NM3xtsbXD2tRXZDkQW/UTdktfchJ+3dGC6SArkr3ID9+Geiv9hCDjk0RcoEy72mZPXZdtUpGs/Fn7qCyL+0+46QPQUXBPTkJVx6SbVsUcV1gV62oJpTwIBE7sa1ZNAyZkzMl4oWfO2jOHeTvSxwk4RbOhePAV3EnNXJWBZglRr57Xg4Yqt2vYh5CTHqWoI0EgDE1GSJGrrZ3grBu8oLrMRgpig9/2QA10xHVIHi4gxFiLNMzDFfMaOZlLFNbUUgUz5EuQ0uHBPtCefjNbx7H4a9X7a7XyTmhf X-OriginatorOrg: labn.net X-MS-Exchange-CrossTenant-Network-Message-Id: 0c203546-e3ab-40bc-67ba-08dc8b9cee21 X-MS-Exchange-CrossTenant-AuthSource: PH7PR14MB5619.namprd14.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2024 11:35:30.7581 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: eb60ac54-2184-4344-9b60-40c8b2b72561 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: oOyMobVLTCH88Go87yC6uMcs1MW7I1qZWh7KYQ9FwXvRnH9QACIv7LRv5Rx/7AYkoWoHmHwjPL/Jcddc86+dHw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR14MB6283 X-Patchwork-Delegate: kuba@kernel.org X-Patchwork-State: RFC |
Series |
MPLS point-to-multipoint
|
expand
|
From: Eric H Kinzie <ekinzie@labn.net> This series introduces point-to-multipoint MPLS LSPs and fixes a bug related to sending ARPs for MPLS-tagged packets. ARP/ND: I fixed this problem where it was observed (arp_solicit()), but I'm not sure if this is a good long-term solution. Other options I considered were (1) adjust ip[v6]_hdr() to make sure the outer header is actually IP and (2) add a field to struct sk_buff to track layer 2.5 headers. The first option might add overhead in places where it has more impact than addressing the problem in ARP. The second option, of course, makes struct sk_buff bigger and more complicated, which doesn't seem great, either. P2MP: This splits up the mpls_forward() function to handle P2MP LSPs if the route's multicast flag is set. It uses the same array of next-hops in struct mpls_route that a multipath configuration uses. It is convenient and I can't think of a use case for p2mp+multipath, but I'm curious if there are reasons not to overload the next-hop array this way. Eric H Kinzie (2): net: do not interpret MPLS shim as start of IP header net: mpls: support point-to-multipoint LSPs net/ipv4/arp.c | 15 ++- net/ipv6/ndisc.c | 13 ++- net/mpls/af_mpls.c | 218 ++++++++++++++++++++++++++++++-------------- net/mpls/internal.h | 6 +- 4 files changed, 176 insertions(+), 76 deletions(-)