From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 83C9B42A83; Tue, 16 May 2023 17:33:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4E646406B6; Tue, 16 May 2023 17:33:16 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id A09FE40689 for ; Tue, 16 May 2023 17:33:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684251193; x=1715787193; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=i50czipP7nzIuTML0fYNfcQ2vLB3Os5PXEPiUSBKIh4=; b=hSz3QoNgn12O9YtDyrxiLqnAOusHmjM1hAIBWDyEZGHAGH9Nx61yD/nc uPQ6Fd/cd7+WP2SHZvK/jD9x1kPW8Iv0eb48ZlBUykF2wjsCGjrPRf8Cm nJkcaF6BlmJIeUf6aA6EaL4tlsCwtcOyGdF68W+zRMPh51tHCDICoTidZ h80rNVGGWgssy5nl1NZ8gMZGTeJ+IyFOhXnmL81cd1ofDql0L2SAZlnwb xPX7aN4Rv+p9m4qzUiVdnRtsmi9BoOmIPlTwrn8Vjk4HOvmjJanSn2VwW vxBxiaT4DSCa2wtQ71gl1z5NHAfLRVZ7bkrqRmkgkxo5SuVoOVh5b9xS+ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10712"; a="340879456" X-IronPort-AV: E=Sophos;i="5.99,278,1677571200"; d="scan'208";a="340879456" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2023 08:33:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10712"; a="813477066" X-IronPort-AV: E=Sophos;i="5.99,278,1677571200"; d="scan'208";a="813477066" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga002.fm.intel.com with ESMTP; 16 May 2023 08:33:12 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 16 May 2023 08:33:12 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 16 May 2023 08:33:11 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Tue, 16 May 2023 08:33:11 -0700 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.42) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Tue, 16 May 2023 08:33:11 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FzNtbma5OQGCuV+BjBkju8003xybqeyXb0+Us25poJb5B4mon0IQX5Z8OvCwly/IaF66lvIONmp80PX7531ZlJ/2JLdJLk/76v9ricfn04oeUy1UsrSO9+wx6F2NqpRbN+Ujt7WHOr+HIwGnSEqGIMFi+1f51Cw5D0fDk6x5fqtaozEtNdcxWCSfG4f0OnhB3YtIRe8kb4/ejIYfaSJHLDewssUBJdRnXZd/WwZS2yZirDk2e1rTouj2aFapHWrTxMhZTVNwAfz/Ijo+z55vvV5bombqoJWUx7OaDEi97gcVEvOy1HUyVrQIw1wFjG6jFXlw3E6MrsDIYkw/EQx1jw== 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=fPAJdf/Zm18NBpokV+Dl4p+QEw4uO2hSTdXksR9JpWM=; b=ZwKxdRW2Y0fvc5+LlHVYboRKfqlwltd9cVLW5VsK0s2kUWZRTqeytubarcU2l8OvY13zeZc+jnasHZyPXnIpqT4Io7gwGACLOSst81qRGOIwtryS8xcpJRJFAmzq1SYY8SjyMgIzDtYceXpTpzqTq8g5Z9AcJ9fgHWY5wD7+rVjEXapw2Mrtknw5au9OPyjcjIeoBKK7oNQkoFPzUFVxzgcbx28fOkaS6WS0iMzeiESE2k/EnAuWDr6BUIxB+RZBs0S6czsqbFQuJ6ChFKGi85h+4jZRNaGBBYSDuck94BhLpbv+cqLt2v07CF+H3ncSaEnnxvlHy/MeaISZQARNjg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DM4PR11MB6502.namprd11.prod.outlook.com (2603:10b6:8:89::7) by CO1PR11MB4820.namprd11.prod.outlook.com (2603:10b6:303:6f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.32; Tue, 16 May 2023 15:33:08 +0000 Received: from DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::49c0:aa4c:e5b4:e718]) by DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::49c0:aa4c:e5b4:e718%5]) with mapi id 15.20.6387.033; Tue, 16 May 2023 15:33:08 +0000 Message-ID: <4f697c31-8559-c599-c539-9dd33a7682af@intel.com> Date: Tue, 16 May 2023 16:33:04 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.11.0 Subject: Re: [PATCH 1/3] net/ark: support secondary process Content-Language: en-US To: Ed Czeck , , CC: John Miller , Shepard Siegel References: <20230217160039.2487085-1-ed.czeck@atomicrules.com> From: "Burakov, Anatoly" In-Reply-To: <20230217160039.2487085-1-ed.czeck@atomicrules.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P302CA0005.GBRP302.PROD.OUTLOOK.COM (2603:10a6:600:2c2::13) To DM4PR11MB6502.namprd11.prod.outlook.com (2603:10b6:8:89::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB6502:EE_|CO1PR11MB4820:EE_ X-MS-Office365-Filtering-Correlation-Id: 4d284cb9-0e65-4e27-6338-08db5622d9a4 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: p5ajyy1BEZGafFt+zWyRBkjkZbH6LZqihmCvdZ1WBUEqhqoqAGX33S4543aR2YLSmTg+oYQWTc6k1y015FBIcZOVd7A/ib84XXl8TPbntZdc1YHDboUBJD4ht/3QbgNpwY9SxmuLYaD0hJBH8kGf3ws0Mkl6wkVvzvtgQbVqxDbDkj0LbfPUNXk/1YObXSo58O82LOjfpzGRG6isrJ2gI0c+tGRhBdvwRN9gafAFCI0CCa4M7tP/NDKF8afwttJG9JmItwgvkF6PvNmMBZahV+I6nS17fDnB+iujonh3InAv0FdmbqJGhoRsKJh+XBHVkXTcmtL9YF1GSYPgstsm5gOjuMFzcXyRf+NBpvF8rjUcHbHs3eITwOmjYMzoYvFC9Gj5n4rEg6iY3mGfHcApkRcEBjYaGBLES5piNvyDOXUZ/rbchanL4kMyIUeZUahxp5jKCeexS4mn/CeT2+V3HKY5vjk+J04u0ZeAZhgShYxYPAsaehUaTSpi1tECeduI1Y9e/PT8lOO4EMnY4mIyMB7U5rxQhVqXpCHNmEIdzHZ+s6y0TN68e0V0TxNAqsWs3sx2c7iTg5JZhEqgP+q3r1KjEWKTzWBYHKZQuMkY+whStmuaPmTBMfxOBhSDSNVOxuNXHCMET/qkN6M2dyXEqg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB6502.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(136003)(396003)(39860400002)(346002)(366004)(376002)(451199021)(31696002)(4326008)(8936002)(8676002)(86362001)(41300700001)(316002)(66556008)(66946007)(66476007)(54906003)(2906002)(5660300002)(4744005)(31686004)(478600001)(38100700002)(82960400001)(6486002)(6666004)(186003)(36756003)(6512007)(53546011)(6506007)(26005)(2616005)(83380400001)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eU5QMVBOaThJbmhoc0d0LzJjTEdQZUswOERVMnYxbHdHTWF3Y2FJQWxERE9o?= =?utf-8?B?MjN5SmY3eDJRejdndGxBdE9ENkZUaS8yL0pnRWFBRFJMeWsrbWFiWkxhZUhk?= =?utf-8?B?eVFsb3V2c2lWZkJYWkRtcHVTa0pGLzI1cmdkd01XMkZiRVIwdTMxSVNvOU1a?= =?utf-8?B?bEpwSmRvbUVBQ2ZkWWxzSExDVmVtQ2RKRGZvUVBldmhTNzJ6RXdnaXgyYXhZ?= =?utf-8?B?QmhJNUgzdjlvQ25LVEVKUE9va3pJeW43NUptR2g3bGhZSVd3ekpLdlRlZ1Vu?= =?utf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PbFowK3Q5SHJtSmJ1Ulc4?= =?utf-8?B?QVhvckxMVWlVTEZIVzBMeXhPYktVTEV2SWxFQytaQXNlQU1hWmpDenUzUzRn?= =?utf-8?B?RkE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 4d284cb9-0e65-4e27-6338-08db5622d9a4 X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB6502.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2023 15:33:08.6004 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /FmzCKfpNQNTcf/8c/nM4l2hQoCSPCkq+NfLp4tf6R6K9/oNtMenlotugW+076037DHfezoT7+mvh2KOx/DtPYGOLeqWic5Lj0bKsCRhga4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB4820 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 2/17/2023 4:00 PM, Ed Czeck wrote: > From: John Miller > > disable device configuration for secondary processes > > Signed-off-by: John Miller > --- > drivers/net/ark/ark_ethdev.c | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/ark/ark_ethdev.c b/drivers/net/ark/ark_ethdev.c > index b2995427c8..f96722551e 100644 > --- a/drivers/net/ark/ark_ethdev.c > +++ b/drivers/net/ark/ark_ethdev.c > @@ -147,6 +147,9 @@ eth_ark_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, > struct rte_eth_dev *eth_dev; > int ret; > > + if (rte_eal_process_type() == RTE_PROC_SECONDARY) > + fprintf(stderr, "ARK probed by secondary process\n"); Why is this printing directly to stderr? IMO this should be RTE_LOG(ERR, ...) -- Thanks, Anatoly