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 AA6A3A0534 for ; Tue, 4 Feb 2020 14:43:14 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 758CB1C0BD; Tue, 4 Feb 2020 14:43:14 +0100 (CET) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2049.outbound.protection.outlook.com [40.107.20.49]) by dpdk.org (Postfix) with ESMTP id A74691C0BD for ; Tue, 4 Feb 2020 14:43:12 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZZNpS9KzF83/KMWg8VZePc8rP1GPYCiOhZXAsCw1SskVp82fFDsS/A48JuX4y95BbRXlz89/XKsfPw2l/4nhhM/3omqUsBCGrpC1ziP70cdtb601T/klOC2QaPzRbNB0U24x9G316M8vbWYAeN3PyfUbLntd6LRiQbrxxux/djRQW0pvgJZp3ZoemUNMbDdMLumWLrtkPs63OClPR/+mOZap9GSt+smMsPCb7TYzvp/WE+QX/MJF4+JDZUEmiyZYqudr8K2xVPLN3+/ZAKI7rD5mvhOPLMqaxmw9DA1COQ/xvkvDiP4WE4QxUBbpAYF0s2uT4QCVEDHwoHluQQz0JQ== 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=U+1I7Xr7ick1Y563Z6xgf7bOM21nurDuLbz3f4NYbIcnuZbI+vMTjkXcDzTxAzLRQnM4PADlO5ozsHP5N6h3xGEhag6ENIWRbEJQBoohvXG3knCAcKUXur9pT9eBw/l2JpIG16+Jz5BBfGCMevoDwlo+sBoGpdvxwr67s/GvFpGaQ1dKBm6YgrPf35OS131KTJRKRof2yh6wy5S2GvlPGh7MdMG9HQaiOCuhDzKAbQB8Q0AjerD6mlUrt0Mla4NwJC310ounHGi6m95TWIanuuQjTZLs4QiqJUKnbWLpcka2zspQnb1928NhiEuZ1+wOfNsFeMohohvCAHIy/pEkZw== 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=otNGCeun9S9hHEtQmWqRiwakUJ3RQJtCJ7LCVBFG1EcciDmrTXuKufVcUIQjU07cvtE3QoI68RJGjllmIrnpa6tj7OT+tq4/XA3JkN3Kpe1tkm3GgIycKQOY19nl0LQ2dOkNaYahXaZ/P41T4RmFcWl57q7lk9HD+Mxb/qefvbo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=rasland@mellanox.com; Received: from AM0PR05MB6707.eurprd05.prod.outlook.com (10.186.174.145) by AM0PR05MB5361.eurprd05.prod.outlook.com (20.178.18.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2686.29; Tue, 4 Feb 2020 13:43:10 +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 13:43:10 +0000 From: Raslan Darawsheh To: thomas@monjalon.net Cc: stable@dpdk.org Date: Tue, 4 Feb 2020 15:43:00 +0200 Message-Id: <1580823780-2367-2-git-send-email-rasland@mellanox.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1580823780-2367-1-git-send-email-rasland@mellanox.com> References: <1580823780-2367-1-git-send-email-rasland@mellanox.com> Content-Type: text/plain X-ClientProxiedBy: LO2P265CA0091.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:8::31) To AM0PR05MB6707.eurprd05.prod.outlook.com (2603:10a6:20b:15b::17) MIME-Version: 1.0 Received: from mellanox.com (212.29.221.74) by LO2P265CA0091.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:8::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2686.29 via Frontend Transport; Tue, 4 Feb 2020 13:43:09 +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: d3284afe-1670-43f6-f684-08d7a9782c74 X-MS-TrafficTypeDiagnostic: AM0PR05MB5361: 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)(39860400002)(366004)(376002)(346002)(136003)(396003)(189003)(199004)(6916009)(66946007)(2616005)(66476007)(66556008)(956004)(36756003)(55016002)(2906002)(4326008)(81166006)(81156014)(8676002)(86362001)(26005)(8936002)(8886007)(6666004)(316002)(52116002)(5660300002)(16526019)(478600001)(186003)(7696005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR05MB5361; H:AM0PR05MB6707.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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: ym26dUE0AfMd5+jA36Sh/9vurCWv+M4CyENY19enf9igWuI7KfMESGvBOpzjtdL2DkPbDLJ4Wt+U9liBCkEbotYr64lbIvNLW6hJ5iOHb+WhBNBfZZbAqma8jBoWpTUDLIb3OSLNezvvzqiGdIFPq7nt3twObios0jDSS4UTBY3Aprvz/fPTjpCUVLx9h/xeqqQVGmHVGDwoFCgMPbf0OtLVfU8tbNNI8vjVq7zEmkWTEGk4IPbWtEr43j6e1q5Gd/wnZ9rS4dqBn40eaExfW43USmuXgeU0M5ixsUkW0A6G/iFE4xftSNIjffkcKY2D1SVNHO8AgS8t9T0G71HXUaiZPSOcFPZde4LHE3Ai683z+UQeZ3+1m5HssOuiRXMK23uipjjmPwQEgkwF+gEf5IsY7WzyocYGMzS42T0IO+pxJSU3v4oVVX9XXthQtRL1 X-MS-Exchange-AntiSpam-MessageData: D7Mcn5pIouA4IAuasovCYb5EEg1JjG+GYxdGjOWnhYKf7CTx/qAyXZvuc/HY7vT7qTu6L8m8OCUYbksUDFUIAJQSx1IrTbgLYz06kzwd/sO9NwfKMp5j6dLGMD3Vs38L8nM0wHfmlvf2fdWDHjkALQ== X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: d3284afe-1670-43f6-f684-08d7a9782c74 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Feb 2020 13:43:10.6413 (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: p2UpYhfTCbXMtzvnAZXB92NRP3RtJo9bDWUrZbC0s02eRdvHHoe4czViPwTQPswZ97DzfoiEJHzfUhQYDV4K7w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5361 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