Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1355296rwd; Thu, 18 May 2023 10:56:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Eq56C/otgxiWzjcQ9GeBPh5rdKZKGHY+n7OO/XzWd8dtUwNpDwqDXXlw27Ws+e8ZIb18Q X-Received: by 2002:a05:6a20:3d04:b0:106:8b:99d2 with SMTP id y4-20020a056a203d0400b00106008b99d2mr677155pzi.51.1684432607472; Thu, 18 May 2023 10:56:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684432607; cv=pass; d=google.com; s=arc-20160816; b=Waxgcvj+fmEzg8RiK0/gZqI2Y+xz/9pLNBL0pojFUBZIs7Gz7wYKCJcg9+gDYvM0Gj ozv4IrBNVRX7ncn4jZW+dCRiE258wJWC1bLP4n50l616TypO9xVMoJ5W3ZTWCg3lQGkX iFEdg6dYcUqDHrjep1oGDYovjn1uyxpTwSRjKkApEpeBQeELN1HKPAwNgUvHllRKf7Qj 8G+qeWxchckzWXdOpExRXfI8KEWm6KQ8URk8l9Z/JM1D59Z2DNABrv3XCIl0shghoRgP J8+pZqfjm8c84IxL5pOQzlsamxpG0fv070sGv3l131R/YKL3/Eg86yFy2J1G388H2kXn sHww== 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=ionh9n9SdqJHPhwGCN6eSqa6e/QqYYGrgK+/5CABsr0=; b=eaoO613EQHWc8WffLUic6ECzZG7OkNDdWtohokDyaHwGDl2BTMKGKZUtvKK5LnWcNE igZsPvfqxOx1pqhjIaakuxWdEBFWDA/mZ1uZoVOLGcdkzk8xSAZ89+aDB+SmzA+djvCO 6IX86k9mpgdXgZ8GKAElqDw3XXTA53qjbwwLX5TkyIVTs3i2ULpbJpw+Rk/DAEp8LsJ4 rmHr5Kw75Ke8Ns1CXE40OffBdjOK7wjlekJ7de7j2K7+M5vfWSfYxEJsauCViAwb7SN3 KG2c5LRrN231Srdk8bNgev0xVS282T8+tWWQEL8We6/Se85Kl83B49fS4INiB1wZOUB/ YoLA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=qqX5C2Fz; 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 bs1-20020a632801000000b0052e76460273si2058923pgb.243.2023.05.18.10.56.35; Thu, 18 May 2023 10:56: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=qqX5C2Fz; 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 S229783AbjERRrl (ORCPT + 99 others); Thu, 18 May 2023 13:47:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229666AbjERRrS (ORCPT ); Thu, 18 May 2023 13:47:18 -0400 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2138.outbound.protection.outlook.com [40.107.244.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3673E10C1; Thu, 18 May 2023 10:47:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lWq3DTmMixnWXR7DXGhv+gU/ndRrbzSBqMHuoveQRe2cvWsFu89cizmOJFI+SvmhcSXddXgCoNy1TkR5rP9IVzzWEcfLoHrCs4OklIm2P9bOQ8T4QsyvPAkamqkqWu37ijrKg903fSxO8BoYDPH81UcGiAtQoXiCe2s6aXE0h087iOyw5+OI2d3H7e2fTS0sV4Q5RPRVSzUgEfVFqeMPxUKgVNEU/ZeVpEAsPfbhwZVSMQjGR1HDR1gxIuF4gVvRwCqTgOTcRo06/6ysMm6PIV0kCdiRFdtxPRr2ldwdXCoVF20hBhSmk4aUAidAleqcfGXb+zR4aB0iREfhsCGpRQ== 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=ionh9n9SdqJHPhwGCN6eSqa6e/QqYYGrgK+/5CABsr0=; b=EXuwTHKLf/zjrpttTdDPq5nPTqmorJyFCensqF0VdM1jUYrZHrkQXXNJNqk+UBqQqRIj3nX8rVBY/m9lT4KhYizgWsyYbjVHfZbf0xfrkpv/pqfqEaH4C+cIEFApCXs2VK2b2hiV14wyW66Lm/BCVnTdH3oVLc7kvNPv1LtcgXenfDIN25Ro8n64yDfs1j22LHPjWn2bOffRl91vMoreHFJPKqvhFJ8ska5erS5asrfNA2sCV7aWDXT1O++1gxxpf+b5Uvk6DIFMp/aor896MVizV8DSTBck50rIwderkUrffak9Wu6HawCQHIFDOzA5JX0yCPV5uoAnfmKAW6syrQ== 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=ionh9n9SdqJHPhwGCN6eSqa6e/QqYYGrgK+/5CABsr0=; b=qqX5C2FzjnQfgA1GL/B19pUNqRvLY4WalERCVZX3icuv1TwfbVgSN/T1i3Po2mwRMwSns+FdzT47ciU7/S3TzWRsY4GboVoZC4tC5Q49bTc0y0OnMXkmGaEaT4ZA3vd75yP9uKGFMvYRSnczFoXMgldLQLUCNTlbYcn19BqNCeA= 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 BY5PR13MB3811.namprd13.prod.outlook.com (2603:10b6:a03:22e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.17; Thu, 18 May 2023 17:47:14 +0000 Received: from PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::f416:544d:18b7:bb34]) by PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::f416:544d:18b7:bb34%5]) with mapi id 15.20.6411.019; Thu, 18 May 2023 17:47:13 +0000 Date: Thu, 18 May 2023 19:47:06 +0200 From: Simon Horman To: wei.fang@nxp.com Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, shenwei.wang@nxp.com, xiaoning.wang@nxp.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-imx@nxp.com, Lorenzo Bianconi Subject: Re: [PATCH net-next] net: fec: turn on XDP features Message-ID: References: <20230518143236.1638914-1-wei.fang@nxp.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230518143236.1638914-1-wei.fang@nxp.com> X-ClientProxiedBy: AM0PR05CA0082.eurprd05.prod.outlook.com (2603:10a6:208:136::22) To PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR13MB4842:EE_|BY5PR13MB3811:EE_ X-MS-Office365-Filtering-Correlation-Id: 1a0ceb0e-d66b-4a0d-fc58-08db57c7e9ce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hJf9knSS3DAJ0vXa7HSKA++OSm4LWENdNCAZSMBbs8b79NKBxP0jUHUi1mR+lF726yttA3a2hOmIwf97AMUlJ1V/1keGKJCS5khQPSJdQpQs9mFGwznYCgdqcq28UWjmbManOOUiKyG3WbeSh6TKP5tlqsX+64WqASaE5TgHVqHnMlLHqQ/zfU12tV/X/XbvIWbqxD7cCzoAT1QA36njm27enYhosNIbZUCroIexAmt5JajoJibVysUYGkcsNCT6pIyJ6unR/oOMiyzY8+MEZzgfDblO9j/gYAyPeTfxyW46Qi5Cuyoc0DHowoXmDvCp8jJ+Se1x/CMp71Bohc9GM46/rc9QFxkG1TMByPkyx1DcpnXxIMTu3b+HZcFT5dA7XnE+DRBPbCvDMxyHslEgyxPqaULQEtQ/4ECaIcfCAcu8DaZVLI5wzJHfKdAl1xKCYQM+DWYyOhIjQl+BR0qpCb9WnXleMK4Fr/ppEiedPhnoT8U6aFvZpWpJcg4gsQoFK5xyUzAc+go7kcWIRAqtIHgjIwz2/5Mk+sUW76LnLuP0VuW66Hlnm4H7UDECuHbuKDVEfzEf/dsWvW5JbaZEzV1GpS9RvuKjviGyj6PEREw= 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)(376002)(366004)(136003)(396003)(346002)(39830400003)(451199021)(44832011)(186003)(2616005)(478600001)(6666004)(6486002)(6512007)(6506007)(8936002)(8676002)(5660300002)(36756003)(7416002)(38100700002)(6916009)(41300700001)(66556008)(66946007)(66476007)(2906002)(4326008)(316002)(86362001)(67856001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?933zFM+SRVMFLOQrEKrVKc6V9U6JtTGNpORBlP0rMeoyejCbPKQ7FvHU4YE4?= =?us-ascii?Q?Bb7RpANcjNRIDvY9guawyvc4XkhLowFXxEU5LYd/FhDBIig8dfDDQmDBW3Sw?= =?us-ascii?Q?N2GhpJW/4lSQwy1fm9LxzOTz9CjNmMM+j/BSgKB0jloR1DdCBX9iL+5e2rFG?= =?us-ascii?Q?Lj5mp96I8ijhL6ZvGLM/9CNaDSHWVbSkgzYrHrkFgR9D2s9gBz4y1Cjen6W9?= =?us-ascii?Q?PlJ4AGxOhWsrFCyPnd7WL2awNvfIVjXJDSNwXQl4+haQWQJGctmjB3eFiTbv?= =?us-ascii?Q?G53FnOIsqQ7SFZeJcOT6pyXu8Vv2SaYhONCezrfvMxANjePQmGD30PC+N9NG?= =?us-ascii?Q?evwtj+b2CdAI0rYgkscRwQI7LOY2OCLQFyj3712aCE7ZpiOo1E4pxUZlRop7?= =?us-ascii?Q?d9Duw3jYHn2GiIX7dlBsFavfq+BEIiKouIbmdNjKYYIG0Ir99/unTr5Am8Pe?= =?us-ascii?Q?fT+/MbRH0Y7t5etZIGvloJnpAHs5n5U1uZ0bRRIBXhhnYbYvPQDJmTlweF0E?= =?us-ascii?Q?xFU1C2HKbyxu9bNvbCXj4qRhTB9pUnm2NyTPPl6Gr/WMv6+mj8ucklOU5OwZ?= =?us-ascii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xVVOu0PHx2WF?= =?us-ascii?Q?ZA988TjWBSbWrVbQ5Ry4F+5Qu0rgMNcOjqDTQtjy9LM3OorFMmqEeCOcyxUF?= =?us-ascii?Q?ap7m6/IzHBYespvhmhxZF58sVWo/0FB2arsZ+qnD0csHs1MNLLj1a7byk8X1?= =?us-ascii?Q?/v18++HSccv7TGhvkWDl9mlP7B9o0uGsUx6ulw4Mn2H92v+XhsCJeyE1veQ4?= =?us-ascii?Q?8TdlBg=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1a0ceb0e-d66b-4a0d-fc58-08db57c7e9ce X-MS-Exchange-CrossTenant-AuthSource: PH0PR13MB4842.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2023 17:47:13.7880 (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: WA762I8edhcwx/mXohgpiSAjdftgc/MIu9YOMoxG7uFPxddMRwOCG5D+VtPLLn9Mw5WadB/I4+1SjkstYRL22DneGr2QY+5vrdewGvGEEPo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR13MB3811 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 +Lorenzo On Thu, May 18, 2023 at 10:32:36PM +0800, wei.fang@nxp.com wrote: > From: Wei Fang > > The XDP features are supported since the commit 66c0e13ad236 > ("drivers: net: turn on XDP features"). Currently, the fec > driver supports NETDEV_XDP_ACT_BASIC, NETDEV_XDP_ACT_REDIRECT > and NETDEV_XDP_ACT_NDO_XMIT. So turn on these XDP features > for fec driver. > > Signed-off-by: Wei Fang > --- > drivers/net/ethernet/freescale/fec_main.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c > index cd215ab20ff9..577affda6efa 100644 > --- a/drivers/net/ethernet/freescale/fec_main.c > +++ b/drivers/net/ethernet/freescale/fec_main.c > @@ -4030,6 +4030,8 @@ static int fec_enet_init(struct net_device *ndev) > } > > ndev->hw_features = ndev->features; > + ndev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT | > + NETDEV_XDP_ACT_NDO_XMIT; > > fec_restart(ndev); > > -- > 2.25.1 > >