From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B5D60A0536 for ; Tue, 4 Feb 2020 16:11:00 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 94EC91C1F6; Tue, 4 Feb 2020 16:11:00 +0100 (CET) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2042.outbound.protection.outlook.com [40.107.20.42]) by dpdk.org (Postfix) with ESMTP id 375CF1C1A2; Tue, 4 Feb 2020 16:10:58 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qr3ZtpS9BN7Baw/NHGkdGn3plKx28BOQtZFufElCp0wPuaOPUKcWppvCJd22JzrviKpyDH+VijOdKg76U0sZ56bslyTeNa6//3KE6k2T+JXisoHhV3PxcHF9xK/hSsacbPUTbNIYNXjtltHkyhU3EXIkh+ln4pTrhV/yy84uokyZ/Vv9Hh1xP2RtdfPfmRTO9QG6EKnMbTBx/JNm7nr+H73W4m5lGOgHjN8eB5SocEGW+gZ4OLPJI/MdsAczVEI2+nIZNWzNrEP8djoUT0XcAsBQSLm1ZhmWLMpYheu5BMvu/IMkGdfzXmwzszi8s9PzMob+E5vjPPbpa+yGex64fA== 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-SenderADCheck; bh=ClesUXLIGVCXFD7LiyzigDSTWzym+7lni7lsDCsrEEo=; b=QooCUL5UODQjyRwyQ8GDY143wH1mS1hR62tY2Reb/WnS45xxLYo0rAZi1zgpL+/2JwIo1Zs9hTwbiJkM2tsIOZ5iQafU0cKJXtBpIAw2g9sMDBU5x9Ejbilc5/PoGmCp3uEgJ7gLJ1iIOJfTxk3pVFGCl2pe8MWjRZsxgn/zag0/XakPp79EcddtLV1WX3l5FnH/JkPk8n5NgcAXwVRydWlWRAB2p4lo935aIcR5Vr/b9m1hYcqMjXS380cu5Lf794lXQWdMf271L95FQ0E7Q+h8cX0uQCxo4BuQ/Le9YfSS2C7TuATPF8AGcILruaWzuBZdQd6o00F10rgGpoyr5A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ClesUXLIGVCXFD7LiyzigDSTWzym+7lni7lsDCsrEEo=; b=VbRf+WPuqUS2qXWIgskXCJIUrXUXX9nrHuyEP0p0d1KZCVwx8ICWLEGurrkGqjUX5EpGqaLBV54QUamQJc9fNsV/5ZsHQi5PARCccRguzAahX+mYg+1RGmQk8LdU1t0GrbnQL8S7im/yXKRWuouYKnbQcF8Lkk7skFxQ84FLjlE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=rasland@mellanox.com; Received: from AM0PR05MB6707.eurprd05.prod.outlook.com (10.186.174.145) by AM0PR05MB4354.eurprd05.prod.outlook.com (52.134.90.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2686.27; Tue, 4 Feb 2020 15:10:56 +0000 Received: from AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::bdb0:493e:2231:1c8a]) by AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::bdb0:493e:2231:1c8a%3]) with mapi id 15.20.2686.034; Tue, 4 Feb 2020 15:10:56 +0000 From: Raslan Darawsheh To: grive@u256.net Cc: thomas@monjalon.net, dev@dpdk.org, stable@dpdk.org Date: Tue, 4 Feb 2020 17:10:51 +0200 Message-Id: <1580829051-2559-1-git-send-email-rasland@mellanox.com> X-Mailer: git-send-email 2.7.4 Content-Type: text/plain X-ClientProxiedBy: AM3PR04CA0144.eurprd04.prod.outlook.com (2603:10a6:207::28) To AM0PR05MB6707.eurprd05.prod.outlook.com (2603:10a6:20b:15b::17) MIME-Version: 1.0 Received: from mellanox.com (212.29.221.74) by AM3PR04CA0144.eurprd04.prod.outlook.com (2603:10a6:207::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2707.21 via Frontend Transport; Tue, 4 Feb 2020 15:10:56 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [212.29.221.74] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 150fe7de-40fd-4545-aa50-08d7a9846f67 X-MS-TrafficTypeDiagnostic: AM0PR05MB4354: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4303; X-Forefront-PRVS: 03030B9493 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(346002)(376002)(39860400002)(366004)(396003)(199004)(189003)(2906002)(2616005)(81166006)(316002)(956004)(52116002)(8676002)(6916009)(26005)(5660300002)(81156014)(186003)(16526019)(7696005)(86362001)(478600001)(8936002)(36756003)(55016002)(8886007)(6666004)(66556008)(4326008)(66946007)(66476007); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR05MB4354; H:AM0PR05MB6707.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hKb+8HynCe4Uf0qjCVsQ5/A6BLyYbeE6Oivn4ULw7b9lrROqPwZmZCUgh5Iz18g8rNaivnGzCzh7K3uPVfSz/ah/TFyv149pMEgY/15RsctvULbaDOitnSNpUhuK3H7qxcgk1eTrRHloWq4C5CnqCcM2jGDQbgPvXrl0PJHdWXxnMV1Fvr4tpcbdc2Fe2ZX1Zd25fx/v6oxFWkBIzulmkolBnoMsR8RplJo/pwhSv0OuZG+d75bXwABQuwG5BB9O7Fe6Q+2Cvbcn0qy0vvcLe0kmsEqJNKghGddY9mZGR6sF4jFZsDE2rf+05k5xJUO856u5aNtGNFz3G+ndbwbaAR7XSUBjFVeCOqENrz2CBieucDrKEziiCu+2vKb8gLklC1UO3i6JW/o4zqj1XBGWgKOsyQGthKS4INUB7QRfXFol2Sf2Cu6RpXnmCx3HrFDI X-MS-Exchange-AntiSpam-MessageData: Cln1ODc2H13CcD3a13bV4KzTdCf5eSD69elOOuvv3FFyp6Ro5CcBt+j3X95vwl5v871FdZ77+PFs53vT5keRp+ZIjl1B+HlvBa5UxfuNG474LHSbsT86z4ddGkHTFcrF7Cje0eth7FZBwUzCea1bRw== X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 150fe7de-40fd-4545-aa50-08d7a9846f67 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Feb 2020 15:10:56.7918 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1hV5cq72L45ATQcaELLjEapvsTTRq57/5oDnO1XGWiaJFSi7J+7gCK+oyaYlpEKah3ngKkqmTQbB/Hw4QtRo1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4354 Subject: [dpdk-stable] [PATCH] net/failsafe: fix reported hash key size in device info X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hash key size is missing from reported device info. This fills the hash key size in device info. Fixes: 4586be37 ("net/failsafe: fix reported device info") Cc: stable@dpdk.org Signed-off-by: Raslan Darawsheh --- drivers/net/failsafe/failsafe_ops.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/failsafe/failsafe_ops.c b/drivers/net/failsafe/failsafe_ops.c index a87e49b..50f2aca 100644 --- a/drivers/net/failsafe/failsafe_ops.c +++ b/drivers/net/failsafe/failsafe_ops.c @@ -1068,6 +1068,8 @@ fs_dev_merge_info(struct rte_eth_dev_info *info, info->rx_queue_offload_capa &= sinfo->rx_queue_offload_capa; info->tx_queue_offload_capa &= sinfo->tx_queue_offload_capa; info->flow_type_rss_offloads &= sinfo->flow_type_rss_offloads; + info->hash_key_size = RTE_MIN(info->hash_key_size, + sinfo->hash_key_size); } /** @@ -1117,6 +1119,7 @@ fs_dev_infos_get(struct rte_eth_dev *dev, infos->max_hash_mac_addrs = UINT32_MAX; infos->max_vfs = UINT16_MAX; infos->max_vmdq_pools = UINT16_MAX; + infos->hash_key_size = UINT8_MAX; /* * Set of capabilities that can be verified upon -- 2.7.4