Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2391415rwd; Fri, 16 Jun 2023 03:16:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4xipvOzj66ptG+AMlBmShQiErUgfzFCfnwcoZU0eaUWkSyAIU7fFVrFp9xGCZ+j9g9+mfx X-Received: by 2002:a05:6214:230d:b0:621:562c:4e22 with SMTP id gc13-20020a056214230d00b00621562c4e22mr2044962qvb.47.1686910607884; Fri, 16 Jun 2023 03:16:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686910607; cv=pass; d=google.com; s=arc-20160816; b=BV26KJ8g9L9lrjiFWduBQhql0v2Mqe381Jdc+dS7ThINnNMJfrjBt9FSIDwKSA7by5 8/QFy90KyhnEQkoi9p5OcDo2CnCsLM0L1DZN4v3Cii/5RqLTxvuMSSfG8+HVyvxcKaCX 2h9/YbIuQC5F/d3hTKdT5o+HCbkcUdti77vkH9Y2Pi8lvttzf5Tp996hsDKnhkQNb5LT iI6z6bcmNgg5ayDKhFVFmqoolgAXhDhfA1GyM0NeH4ATywdB/sEgITxfVbcy8dbChKsG yBXiCVdU8UB2CPIESOqZcoMY7sRa1QA5ILPACDnz7Jod5v9KEw/d4Zr1Tk637/I6RVSV c7TQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8sKV1AdVeDidj/7n+XHvMBhza280gxgIsjdhh54BPX8=; b=g8A20Ijq0lABA/MP/tNsX9aRTaQebh31rL4kWV/dx1FmtpyQLnnwh7UolV3wHpn3Pr qCUlxx4NvIYLs9nW1AIpvb63RtYD1YdBTFWw9QlCviV+Xl1dfKND+oU4IfRcHXImwfpg 7qJETXbp01YllYl8PlbAJIGamaHyr0Ri/E2Is7ozZyECuRy7nFilfXkd04KzAqjc+4Yi K6EZMWQYUFREcOcqkgeBBWx+PlDuWKHhOWwqmD41y1ZiaxV4TeyaeOoG5I4Xr82qnOfk WUdK6NmD8+9jfo32zXb/nrKeam57lEDU7ZpG6FrkWQbz9lEWzcshbW8nSkKWXXFx07fM 9znA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=GxOv5Rpe; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=corigine.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id az9-20020a056a02004900b0053fbb2ddb4csi15138540pgb.36.2023.06.16.03.16.33; Fri, 16 Jun 2023 03:16:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=GxOv5Rpe; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=corigine.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232573AbjFPKHw (ORCPT + 99 others); Fri, 16 Jun 2023 06:07:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245688AbjFPKH3 (ORCPT ); Fri, 16 Jun 2023 06:07:29 -0400 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2132.outbound.protection.outlook.com [40.107.92.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B6E035A1; Fri, 16 Jun 2023 03:06:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RGA0/zNvyWOrBATzYt/je+ebbAps+RW9fwiZfv0+q6Q/ScNqsO4KUl0QYS2yfNLfs9qKtq44BM1ok9YiC41A+in7eOcb1mOh+8yxw4pacKarexfcL6f9PRGxNq6PU8kPv+tHlAGbsYktDkMvd2s/I9FF0uZJLbyW5iOafs+8awRO553c5CAqm9quTjJpJIGL90o2iIIhj/R/r1kkELu8ZG8TrcZFj8NOcXD1qwW0tDBTRphUwqvkgZsS2hKvlDsgAYtGJsgs6riX0qhoD1AfT7YmjKJEo1xU2dzyi7YSCXqn+i2MWScToKb6VW1skIUWE646duuPit72jE0nVfDtQQ== 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=8sKV1AdVeDidj/7n+XHvMBhza280gxgIsjdhh54BPX8=; b=Vx2XfdnsyWtP6lGf9Iln4aCfYpDOmsd3BvOjohxFzEEEqXQoc7NscPYVME49ZWMmIr0dxq5gWmGuSY5A7ro/Gza9dNMOTI828UyIsigWuklJ+LUB+IPsYHoBJSJ+ZT2QTqW/oFQr+PXOW7VvfJJDpzpuGGUWsV0lkMJjFVwkE/d84OvX4+UQUBqC9RAZxHjuqJMGxRm2qoxmDGybX9PClrZPrt8ElplqBumP7PsRz3bPOJ0r7BCXq6Vp3jD20qp/rxaIUXFgScAMmD6Gip4JXfkrbmoAZjJXP9xlspwqsfbZSBIhcZqQlJpnlGkUw4pGVcGCiG7Bf1Lvrq8FX8x4VQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8sKV1AdVeDidj/7n+XHvMBhza280gxgIsjdhh54BPX8=; b=GxOv5Rpea6VFUZ90vV8r2elz+Mh5oZygBO6Vz8VF8VTDNrkPVQ+MopqkRr3Cv/q+wF6134VDOpCgxVMxUxEyUGgodeyW+cjh6/jFjvHv9SBWcTQwJQfzK2IveAK/EuvjLcqK4iP7ke0LxZ7t1iVyhu+qD04hePNp5Z7ljX+U5l0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) by DM4PR13MB5860.namprd13.prod.outlook.com (2603:10b6:8:49::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.25; Fri, 16 Jun 2023 10:06:35 +0000 Received: from PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::eb8f:e482:76e0:fe6e]) by PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::eb8f:e482:76e0:fe6e%5]) with mapi id 15.20.6500.025; Fri, 16 Jun 2023 10:06:35 +0000 Date: Fri, 16 Jun 2023 12:06:29 +0200 From: Simon Horman To: Arnd Bergmann Cc: Edward Cree , Martin Habets , Jakub Kicinski , Arnd Bergmann , "David S. Miller" , Eric Dumazet , Paolo Abeni , Alejandro Lucero , Jiri Pirko , Pieter Jansen van Vuuren , netdev@vger.kernel.org, linux-net-drivers@amd.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] sfc: add CONFIG_INET dependency for TC offload Message-ID: References: <20230616090844.2677815-1-arnd@kernel.org> <20230616090844.2677815-2-arnd@kernel.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230616090844.2677815-2-arnd@kernel.org> X-ClientProxiedBy: AM0PR02CA0204.eurprd02.prod.outlook.com (2603:10a6:20b:28f::11) To PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR13MB4842:EE_|DM4PR13MB5860:EE_ X-MS-Office365-Filtering-Correlation-Id: 5c882ff7-5469-41ba-9790-08db6e515e42 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vU0DhiSD70mFc0yQAXnwB31R81U+2n6R41CAa7XtDRO4akACnjMhuENLOIpeMKPAxDZlMSokjDbRE7TOFaQ3lanNB1X7N6++tlPuEai2jrgTCy8/0GZuW3TE5R5h7p5jIXQjyN19e/0o/BBXkOiOd2PZfcm3i8zkXeXKxGEhanF9JHO/V5N9gf17vCFfwn1/ZKqHLzhKhI1istpTPdRejQqfVaMe3a7VyxwUrg7KrV9czrpM9YRGlxB7kGu6XpnDf1XX5qKODCexqaIvVYOxnwPZ7wjahm/DZYEHaYCqzDEjsrZ7b+pDHcN6qe+NsY6WwiPETnGYKlGTD/H968FJ00gPI3ZLmqP+60zSDHe4dl4n+z/RDNViKtkVTUwbiO1vrAug6TkbgLI7Pr8mu2ThImlZEBJzxdevyLtKzwDyd825xegQD2nZsstDhXGPVNzZ56cN7WbYI6Gtgvhtia0NLYxp8vZDhtf3nbKUlsMGWtny1ggv3WPGhTlzsuVlTmrrXnT0T+xTnmD/a7tjZVKQ6YSNPuygNGYiQV53hzjhk1rDsbFKfn4mhpATy/KSQuCzdXaFzc/Misd37xwSpPwLixoxpYfRzlIa/dQ3QFSAbLI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR13MB4842.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39840400004)(136003)(376002)(366004)(396003)(346002)(451199021)(5660300002)(2616005)(38100700002)(83380400001)(186003)(2906002)(6506007)(6512007)(44832011)(7416002)(478600001)(6916009)(66476007)(6666004)(8936002)(316002)(6486002)(66556008)(66946007)(8676002)(41300700001)(86362001)(36756003)(4326008)(54906003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?XxzYJy+fxq7Ej4EwC+U6DT4XUMeqYJSqA+nr2UUR5uajWxdTAqkPxv9U2Z59?= =?us-ascii?Q?C9BP2FGaVTd04FgeaEk/ES0lJnbUan55Mo1vxq2yeJlCVRpMxGxeW8shYQxa?= =?us-ascii?Q?zGi3ouQ5sQSDt4Cae2OaoHrSXEeF58uP04MMfAyqdvjLW0xEAvQQ+TElzJCU?= =?us-ascii?Q?OAgCxs3iFDKrETsmfRNMap7U+X5vc2ZQay+/U0bWDhZZE8q+Yx1GgDdvKvSc?= =?us-ascii?Q?lEFyFtxxk7eYhUdlRvsNBMbvRjSzHyL0ZRbA5gxOEyKLfB6+gAOPwyvqyWbH?= =?us-ascii?Q?0yKuIV+B+5j+RWH7+YZnb5OUe4CgTlLlM471Ma9454rzyJKIggsmXMKOTJ/J?= =?us-ascii?Q?Dv5wFpVSlGOwwm5d7OQ2GsPQXlD+nyS0VBMS26Reft7gX5yKZoRt1ZymsALl?= =?us-ascii?Q?UnJfXTbSFJDX4qpu+BTfAS4hzRD5q/lLiO9tqiRUOKPj27R3SZA6wsgZSMHy?= =?us-ascii?Q?683Qn7lTXLq/uomk3v9kjDWCy20gekfOBDzi2MzDcwiQ2RzKR1CNQXUwLDT/?= =?us-ascii?Q?HtEMkH5WRnOaPLtYvWfojLZERFkl9pXgV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qJZmd3owODHVNbKQbqpHuyx82N2D7ekx+VOti9JE5QiyyvJNLCK?= =?us-ascii?Q?MnN4pE4JjJJlsJ7aiZQTCZqJ8a9F6qhI4SpevvARbhscd/bSlwwNPX2LYjOQ?= =?us-ascii?Q?dLaQlSblSGnlJGA77uHKSGO6fRj+dkNLl2oBKChkcwFRSCRQAOz0RRa3v9kB?= =?us-ascii?Q?1R8fe04n4vGma5shNprjiJ+fI8ZQY4maJ1ArXHQ99UyaJnnMtKqqApiyagIg?= =?us-ascii?Q?AqqTlA=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c882ff7-5469-41ba-9790-08db6e515e42 X-MS-Exchange-CrossTenant-AuthSource: PH0PR13MB4842.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2023 10:06:35.6860 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2ZmTGzCVAXmXiBCER0rYM2XGIhAEBPa6vEXQTvFx0ON2angXQY+PoRhmq4eh3lOjBwMj4aGqH8nxQbz28mz8VrwDIejA6DFTVXfKa8i+Exs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR13MB5860 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 16, 2023 at 11:08:19AM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > The driver now fails to link when CONFIG_INET is disabled, so > add an explicit Kconfig dependency: > > ld.lld: error: undefined symbol: ip_route_output_flow > >>> referenced by tc_encap_actions.c > >>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_tc_flower_create_encap_md) in archive vmlinux.a > > ld.lld: error: undefined symbol: ip_send_check > >>> referenced by tc_encap_actions.c > >>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_gen_encap_header) in archive vmlinux.a > >>> referenced by tc_encap_actions.c > >>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_gen_encap_header) in archive vmlinux.a > > ld.lld: error: undefined symbol: arp_tbl > >>> referenced by tc_encap_actions.c > >>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_tc_netevent_event) in archive vmlinux.a > >>> referenced by tc_encap_actions.c > >>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_tc_netevent_event) in archive vmlinux.a > > Fixes: a1e82162af0b8 ("sfc: generate encap headers for TC offload") > Signed-off-by: Arnd Bergmann Reviewed-by: Simon Horman