From patchwork Fri Sep 18 03:32:32 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Loktionov, Aleksandr" X-Patchwork-Id: 2307828 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256 header.s=default header.b=MM1JVRsN; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=LYsmzHEz; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=patchwork.ozlabs.org) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hmYTR4pt4z1y2j for ; Fri, 18 Sep 2026 23:32:43 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 3D94A60E18; Fri, 18 Sep 2026 13:32:42 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id VkrIlh9v7qq5; Fri, 18 Sep 2026 13:32:41 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.0 smtp3.osuosl.org 8900E60E05 Authentication-Results: smtp3.osuosl.org; arc=pass header.oldest-pass=0 smtp.remote-ip=140.211.166.142 ARC-Seal: i=2; d=osuosl.org; s=arc; a=rsa-sha256; cv=pass; t=1789738361; b=jE9OC5ui7b7G7FTeS3e5oa3YWcL5lyJfvtaSDkcUIDaicUOiCOajop5U7h2ufk/dBMwJ 4IvwRY0uy3GAESKptosr+fhiOgDwUFR9GNO5x9vSGHQF+zvmMqomniAdcQlNhhD5Wb1fB upf6oUPMIBqsbVTcpO8y5hzDz3xsMWkJ8TQ8/iL1WIlf3VaYwnRlGyEM9WAQjnivMeUyX seV+tXAcluKo5DDrNQmBzu7cjM1FL/GwqLfkCGngltUMDFZrgUaZC7Ge+4oTxptRxJcFs JMfHPmgVNbYPUCak/xdOBb0AJFy8nshk2YnYTyf5ySsCSWQVICophD1MvMknx21K7nw== ARC-Message-Signature: i=2; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1789738361; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received: DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-IronPort-AV: X-IronPort-AV:Received:X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-ExtLoop1: X-IronPort-AV:Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding: X-BeenThere:X-Mailman-Version:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:Errors-To; bh=LKoquSdDQYVhPhkJ62HgErg47vYhBwpkGsfSrmbEmMc=; b=qteIMIIbb/mc8rhB15cZFzpNl53VLB1dyWFJfKLYE5ctM1ekdWYTeoLW6gbg3Im+qmjv LvLBYppX3dBW91DyMVdM4nDGrnggXvT6uKL856AByx9KI9171cARm8oUHAPEwhZ0KNXb7 iFFiSwm0khtpG2/h7MrvIR0hJxONF6m1X8rvOVhYLpUD9m9W/ay7JDgXSA/4BIdmmYSSs uPu7aajwMJexCm+5ik1kwbqybllFzZ0gln1THTSCh/t74F9lcANlx79JmTPM5o/KlLQgc a91JwDWaPMiXoKShDq4w14ggAw1MZ7OOn9wakb6fYeFtWzLDx107VonsLHXGhL5Uu7g== ARC-Authentication-Results: i=2; smtp3.osuosl.org; arc=pass header.oldest-pass=0 smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1789738361; bh=LKoquSdDQYVhPhkJ62HgErg47vYhBwpkGsfSrmbEmMc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=MM1JVRsNoRD0yID0R5xKHS03lNsLmqqUAKMkc54BuYjJeLfY4UPL4u5i1Pwal0zL2 3j2xLIu7fZagyUZjrIaKbyj3sQem9jFcgbT8ZEqePVnBIbytKBS7zjv3A8uvVOxnoW lKRggfF7LKWIHbG4JBlnBfcun5hTy1x42guOktCa5fQTioirEpQInQbNI91sTwGp0u ous/gtThXUDVwA7Cdfp1tkALM+cVZeAXE26Jep8KuWtZ+XWAk41LeOuMph+J6PPl1w OSRBCNwA3g9f5VpI3PohIMgb5WVa75BXNgqUH87D0hV8pbzOZG7vX3I0i4h5PJAPr6 DBMmxjPY2XpSA== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id 8900E60E05; Fri, 18 Sep 2026 13:32:41 +0000 (UTC) X-Original-To: intel-wired-lan@lists.osuosl.org Delivered-To: intel-wired-lan@lists.osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists1.osuosl.org (Postfix) with ESMTP id DAAD843A for ; Fri, 18 Sep 2026 13:32:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id C1346400B4 for ; Fri, 18 Sep 2026 13:32:38 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id jRXwk6-oJVhk for ; Fri, 18 Sep 2026 13:32:38 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.0 smtp2.osuosl.org 3004D40348 Authentication-Results: smtp2.osuosl.org; arc=none smtp.remote-ip=192.198.163.7 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1789738358; b=kT73vXlSIMtfSS/c6KWgaS4z/wy6fpYjo+PR2OmZ6+UYEfSfYa7BkZrAxMDvxfefNQvc SJdnED6N/9yKY1mHgqgxXq9y8JqwhZNIgCK/83HIsIIERQ1k9ifJGMA96CVcMckhof17m I3q6Sa+8bk8LaLyIAazEj4KzPYyFcsa2Knla26G7Usjzn0azxqdWxaSQEF347YzHm+a5S f6vAlE9Akk9B3m6whpj/T/gggFFvJaDF98qPAU70tccaVVgKwr2v7HT2/e9GGx4Ed7jSb qlTdUpN4UM7WYE279LP3RTlnf0Ps+GC00vLv2ghKRjbKqmpvuI2nB1Hcqv27OMVrm6g== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1789738358; h=Received-SPF:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=LKoquSdDQYVhPhkJ62HgErg47vYhBwpkGsfSrmbEmMc=; b=Vo0i4tPb8kbFO1Uj9SemZePGyPpgbG3o4sAweW/vPAW53nm44hKe8zYhHJwNrL3RLCg0 AtopBBGL43mbcwQ1KNU42h9iTi47gi1lPDNAw+jlGL8XsnHv5nRe6gdanR884bJ+W8HlL U2V4UV+JVJwSzkgz5Um66/khJowC/m4jYuoJTs2H7MFDWPoUdoYKeH1iQXHvtb3CuYlKt 49fpwan+bQjIwvuvXEgxbuJbnP43h0/rm6q28qHX1Z5ZElq0TrmxJy1xV1pUBBc4xJjMs vcwu6LFWyjptPNq502pIQrVKejo1z/eChqV0CMnRZPbyEVdPcwivL3yai023kBV8asA== ARC-Authentication-Results: i=1; smtp2.osuosl.org; dmarc=pass header.from=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=LYsmzHEz; arc=none smtp.remote-ip=192.198.163.7 Received-SPF: None (mailfrom) identity=mailfrom; client-ip=192.198.163.7; helo=mgamail.intel.com; envelope-from=aleksandr.loktionov@intel.com; receiver= Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=LYsmzHEz Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by smtp2.osuosl.org (Postfix) with ESMTPS id 3004D40348 for ; Fri, 18 Sep 2026 13:32:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1789738358; x=1821274358; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VChwflk0shkuBtKgGE57//Nbv9qLEN/7fd5WM7wrFSc=; b=LYsmzHEzBxHeYedq8pehh0dLasjMOQxk8Llryg8090Niafq0LKk6GPRC Bz1Fr7CHTK7GOKSLm7cNJ+uoIgmxr2kZ5Bb3GCFd5pNixp5F61JeIVStx zBrlDH3UDog6qa5co+8XGg6fqiF2m0J4hhOb1UknOLiZHwWNZ01xxxDZT LDrlkh0nzUc5RcNDa2/WtgVf+1BEfB6EkMdCu5m11BNWyefsloRH3cvKx yu4apbtlMZd+x7JBpbExgrfUmFQtQhc/q3zFLNFMsLco0OXTU3MLkhA80 sOTCaT26Vm1TeF4tsWyKrRPxQKmwH2xqkze58JtvhKf73AAbGauxnk4W9 A==; X-CSE-ConnectionGUID: ZX3+HeRzTni7p4Y44VNq4A== X-CSE-MsgGUID: nW3Gg8kJT0GYs+TXttm+oQ== X-IronPort-AV: E=McAfee;i="6800,10657,11908"; a="115776412" X-IronPort-AV: E=Sophos;i="6.27,109,1787036400"; d="scan'208";a="115776412" Received: from fmviesa013.fm.intel.com ([10.60.135.153]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2026 06:32:38 -0700 X-CSE-ConnectionGUID: zY1nWEEXRpWb3zN5q2op9Q== X-CSE-MsgGUID: 2G2F19iuR+OAsedfePvrsA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,109,1787036400"; d="scan'208";a="2835241" Received: from amlin-019-225.igk.intel.com ([10.102.19.225]) by fmviesa013.fm.intel.com with ESMTP; 18 Sep 2026 06:32:36 -0700 From: Aleksandr Loktionov To: intel-wired-lan@lists.osuosl.org, anthony.l.nguyen@intel.com, aleksandr.loktionov@intel.com Cc: netdev@vger.kernel.org, Tomasz Lichwala , Simon Horman Subject: [PATCH iwl-net v3 1/3] ice: fix asymmetric pause negotiation reporting in ethtool Date: Fri, 18 Sep 2026 15:32:32 +0200 Message-ID: <20260918133234.4169074-2-aleksandr.loktionov@intel.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260918133234.4169074-1-aleksandr.loktionov@intel.com> References: <20260918133234.4169074-1-aleksandr.loktionov@intel.com> MIME-Version: 1.0 X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-wired-lan-bounces@osuosl.org From: Tomasz Lichwala Add Asym_Pause to the supported link modes so that asymmetric pause negotiation is properly reported via ethtool. Without Asym_Pause in the supported modes, 'ethtool -a' incorrectly shows 'RX/TX negotiated: off' for asymmetric pause configurations, even when pause is properly negotiated and functional at the hardware level. Fixes: 5a056cd7ead2 ("ice: add lp_advertising flow control support") Signed-off-by: Tomasz Lichwala Signed-off-by: Aleksandr Loktionov Reviewed-by: Simon Horman --- drivers/net/ethernet/intel/ice/ice_ethtool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice/ice_ethtool.c index bf9a821..a257b7d 100644 --- a/drivers/net/ethernet/intel/ice/ice_ethtool.c +++ b/drivers/net/ethernet/intel/ice/ice_ethtool.c @@ -2365,8 +2365,9 @@ ice_get_link_ksettings(struct net_device *netdev, break; } - /* flow control is symmetric and always supported */ + /* flow control is symmetric or asymmetric and always supported */ ethtool_link_ksettings_add_link_mode(ks, supported, Pause); + ethtool_link_ksettings_add_link_mode(ks, supported, Asym_Pause); caps = kzalloc_obj(*caps); if (!caps) From patchwork Fri Sep 18 03:32:33 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Loktionov, Aleksandr" X-Patchwork-Id: 2307829 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256 header.s=default header.b=uhUifmF1; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=R4QahaTk; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=patchwork.ozlabs.org) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hmYTT63Fjz1y02 for ; Fri, 18 Sep 2026 23:32:45 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 613E960DE3; Fri, 18 Sep 2026 13:32:44 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id DLuLVroJ_sU8; Fri, 18 Sep 2026 13:32:42 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.0 smtp3.osuosl.org 8CDCA60E27 Authentication-Results: smtp3.osuosl.org; arc=pass header.oldest-pass=0 smtp.remote-ip=140.211.166.142 ARC-Seal: i=2; d=osuosl.org; s=arc; a=rsa-sha256; cv=pass; t=1789738362; b=D9OZAKSbWDWC7vFCjfqK5/TfgbnCx++Ypsc7v9/4ui4svzJg8CE2VJ5SGr4dvEdBa9gJ aeIR+gcDY1EXolrxN5YHM0L+3zcloMJZrygmIz0uDOnTd3oc4COzxh0eECQrzNzgzyO1g YrimLdJjjktJ63AoVUI8UdbQbF1LiQ/aSANRUZQ+0CdDzJXa+0ZhJ21pb6bqe8Xyo/cOS l+QkbK5OqWQP42nnz+zPNCZFsOHQmjB1xjvnAEW0gSujN3SaYjp5ZMCyQT3ptdkq9k1wE V4v1MEc3PNU2BhfyOv6TzDMmtnCEPUEPCJTxbWYEnOTEwrlTbULVE4Wj7T/gmGPI2XA== ARC-Message-Signature: i=2; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1789738362; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received: DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-IronPort-AV: X-IronPort-AV:Received:X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-ExtLoop1: X-IronPort-AV:Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding: X-BeenThere:X-Mailman-Version:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:Errors-To; bh=e4varR05R1mpW6aj3L5RsYrD+mVoWr0zhtIcQQ1O/JM=; b=NCPrjKyshjG4F494k25wv2Wr4VlWmKnhvvUkjBSpbioWJ9rkh5QuRi4X9534ybt3xd80 qUr89JAJQEcyUUup4gNiEuGN662uWrZsIGMzyxIXdFt38Gay1aHcoRdTrUJ6XJSDkT2ky t1Y3C7QKK3rGzRWgDztLDSq1ujH1Hsvbg91A8Gccd9Sf7YRV8Eh0H92I+ZrzSeHBNZAdT v2JoIoj8uTqRa3uJtHUPeA4hNMktDgDErhWYSBnVle2DHVx5xdvW37ZUKPLb4uyGlG9BK d5m6M09Q+PuZP95KRrwVTSgxtF4He7//5WGittamAgi6zJWRYlE3kl6zL+rzA5Bsu4A== ARC-Authentication-Results: i=2; smtp3.osuosl.org; arc=pass header.oldest-pass=0 smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1789738362; bh=e4varR05R1mpW6aj3L5RsYrD+mVoWr0zhtIcQQ1O/JM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=uhUifmF1jnacHTCh5wJeDbvZmE4sT6RZDtyEUqRwhQhmTmE3EOMlrMs++qr/+6fTs FRBhE0BODbpBzwLkOdagrGAqHyjcQ8ZUJOSK9wo7BKKp6K+UFr5Vl+PB6BvhQ4FEu0 iw+R3t4mcaxnGoxUvFAkQrkug+6pmu5Zg/WzssueqBG5luvmlv5ofiw4904R/rPquY u5+2J54mIfQQBVfN9WYob2CIGB7Kua0A4eOz5Y4HufbySui0oQZuuW/07zdD0Wpr/i Yxk1BHjcOSS+0O02DG55bmfwSCzlUopfSSTvpE5tknOLzJTjNA/ZVGra8//sAiOiYM Bu8GwdBXzGEOQ== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id 8CDCA60E27; Fri, 18 Sep 2026 13:32:42 +0000 (UTC) X-Original-To: intel-wired-lan@lists.osuosl.org Delivered-To: intel-wired-lan@lists.osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists1.osuosl.org (Postfix) with ESMTP id 92A44279 for ; Fri, 18 Sep 2026 13:32:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 84A03400B4 for ; Fri, 18 Sep 2026 13:32:40 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Itqq7bUs6zJX for ; Fri, 18 Sep 2026 13:32:40 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.0 smtp2.osuosl.org D768D40348 Authentication-Results: smtp2.osuosl.org; arc=none smtp.remote-ip=192.198.163.7 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1789738360; b=H14jJltVvEfGHRAH2ZYgnH3em5+07tyHM/KLxNt8a0I8gKT46MKUmWiq5t+JvK0nY/Zw w9ZDkfq+c4M89AwJAtC2LJLVlmoj696iVWydiVETAthavljFRTh3zgcZ6Zp+9vfRixMMR NkCPGBzf6VE53G1pGS1I0XHhITaqf1AyGRMqb5MEmqoHysxio8kfYsFqFEuPSrOM00ErG vWqnaibZ7VqqmToqcCBNPx/GDl7ydslr239C5zEgknjwIevIAwixDGuWYUAcxaq46AfUO hkY5K6WWspzwHyziQ2IutC5ZDwwnPddGANgKr4PvQ/O/5v+x/02amo/MTxeCJT6Czzw== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1789738360; h=Received-SPF:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=e4varR05R1mpW6aj3L5RsYrD+mVoWr0zhtIcQQ1O/JM=; b=pOZBGmVom1Fy7QKXqp2vZkXrxmmlKE2eE0uYm5qHNeEN4rbmJtuSAqWjDVeoqw+R1CeI OQubHtwjfyoT5PJpjn2vCheYWwiNgiijwuAW+efxVREL8OXgHcTD37mQwhndimVzLg+B3 PoltIPqUuxMG+LRhm1I976ZmDQ7PQ6bevEdo2E4JWyW7gr/0fksfO/7qgra9PyXzGWLvA gk/9rrjdJoKvAi6Rn9+XNI5VRtuVmsnT8kS7eInaPiWc52VbY0BEluZVbYUieVTAAxzbM R281zeRGsr+1YoNULU1qv9WIrW+tnO9xUZOWzwKIqnub/7MfyM7qkxMUPUSNFtUBjDA== ARC-Authentication-Results: i=1; smtp2.osuosl.org; dmarc=pass header.from=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=R4QahaTk; arc=none smtp.remote-ip=192.198.163.7 Received-SPF: None (mailfrom) identity=mailfrom; client-ip=192.198.163.7; helo=mgamail.intel.com; envelope-from=aleksandr.loktionov@intel.com; receiver= Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=R4QahaTk Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by smtp2.osuosl.org (Postfix) with ESMTPS id D768D40348 for ; Fri, 18 Sep 2026 13:32:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1789738360; x=1821274360; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=obzIt/8/SPc/HlGDlPOusLf41Nts5aDL0HrOu18ivq4=; b=R4QahaTkQV8dxPwOYrVsWb66Eqk4BS9wXI4VablXgvyLVEbEvN84FqqO 35wW7106NFU2ax5/7zof8H3PXUnpkFjU/f8Dub3cKEC2zMtUlY36T9mS4 S7uQyAW8wd51H4xZW0OfQq1P88yLP5nHa0YaYB+9rNu10Pyl10cTRWZMM KcIDFsnuZNwPkND5mDXt4cyXTbDYYw8OPTZawwVWdC6CvnBTMV3VNEAwN rd6oVX55aRMBgigWuxrXQXHlm2LTQzMd0KLoFIcTEEcqd6587zQIJJrEt ET1ilHEALPe/apJ9iugGgG5pPTXyi/kJrWvlwIkYT+wlArBrRp85EgPQn A==; X-CSE-ConnectionGUID: Ucy8aa3/Q5Sjmnt+6d+faw== X-CSE-MsgGUID: 8UPVXmHcTnOMAW1ykz0p8A== X-IronPort-AV: E=McAfee;i="6800,10657,11908"; a="115776417" X-IronPort-AV: E=Sophos;i="6.27,109,1787036400"; d="scan'208";a="115776417" Received: from fmviesa013.fm.intel.com ([10.60.135.153]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2026 06:32:40 -0700 X-CSE-ConnectionGUID: 8akHuPLWQYC4xmWaesgv0w== X-CSE-MsgGUID: GAuhM++uRkSURtjY+FmRkg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,109,1787036400"; d="scan'208";a="2835249" Received: from amlin-019-225.igk.intel.com ([10.102.19.225]) by fmviesa013.fm.intel.com with ESMTP; 18 Sep 2026 06:32:38 -0700 From: Aleksandr Loktionov To: intel-wired-lan@lists.osuosl.org, anthony.l.nguyen@intel.com, aleksandr.loktionov@intel.com Cc: netdev@vger.kernel.org, Konrad Knitter , Simon Horman Subject: [PATCH iwl-net v3 2/3] ice: fix autoneg disable when link partner doesn't support AN Date: Fri, 18 Sep 2026 15:32:33 +0200 Message-ID: <20260918133234.4169074-3-aleksandr.loktionov@intel.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260918133234.4169074-1-aleksandr.loktionov@intel.com> References: <20260918133234.4169074-1-aleksandr.loktionov@intel.com> MIME-Version: 1.0 X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-wired-lan-bounces@osuosl.org From: Konrad Knitter Disabling autonegotiation was silently ignored when autoneg had not yet completed (ICE_AQ_AN_COMPLETED was not set), leaving the configuration unchanged with no error. This could prevent link from forming if the link partner requires non-autoneg mode. Extend the condition to also allow disabling autoneg when the link partner reports no AN ability (ICE_AQ_LP_AN_ABILITY clear). Gate the ICE_AQ_LP_AN_ABILITY check on the link being up so that stale or zeroed an_info when link is down does not produce a false positive. Introduce the helper ice_autoneg_disable_allowed() to make the check explicit. Fixes: f1a4a66d2310 ("ice: fix set pause param autoneg check") Signed-off-by: Konrad Knitter Signed-off-by: Aleksandr Loktionov Reviewed-by: Simon Horman Reviewed-by: Tomasz Lichwala --- drivers/net/ethernet/intel/ice/ice_ethtool.c | 26 ++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice/ice_ethtool.c index a257b7d..4ce198f 100644 --- a/drivers/net/ethernet/intel/ice/ice_ethtool.c +++ b/drivers/net/ethernet/intel/ice/ice_ethtool.c @@ -2501,6 +2501,28 @@ ice_ksettings_find_adv_link_speed(const struct ethtool_link_ksettings *ks) return adv_link_speed; } +/** + * ice_autoneg_disable_allowed - check if autoneg can be disabled + * @p: port info + * + * Check if autonegotiation can be disabled based on link state. + * ICE_AQ_LP_AN_ABILITY is only valid when the link is up; gate that + * check accordingly to avoid false positives from stale link data. + * + * Return: true if autoneg has completed, or if the link is up and the + * link partner does not advertise autonegotiation capability. + */ +static bool ice_autoneg_disable_allowed(struct ice_port_info *p) +{ + u8 an_info = p->phy.link_info.an_info; + + if (an_info & ICE_AQ_AN_COMPLETED) + return true; + /* ICE_AQ_LP_AN_ABILITY is only valid when link is up */ + return (p->phy.link_info.link_info & ICE_AQ_LINK_UP) && + !(an_info & ICE_AQ_LP_AN_ABILITY); +} + /** * ice_setup_autoneg * @p: port info @@ -2539,8 +2561,8 @@ ice_setup_autoneg(struct ice_port_info *p, struct ethtool_link_ksettings *ks, } } } else { - /* If autoneg is currently enabled */ - if (p->phy.link_info.an_info & ICE_AQ_AN_COMPLETED) { + /* If autoneg completed or link partner does not support AN */ + if (ice_autoneg_disable_allowed(p)) { /* If autoneg is supported 10GBASE_T is the only PHY * that can disable it, so otherwise return error */ From patchwork Fri Sep 18 03:32:34 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Loktionov, Aleksandr" X-Patchwork-Id: 2307830 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256 header.s=default header.b=bKz1LmaY; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=F2JVOfsH; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=patchwork.ozlabs.org) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hmYTV0Lrjz1y2j for ; Fri, 18 Sep 2026 23:32:46 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 9B9EF60DF1; Fri, 18 Sep 2026 13:32:44 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id J4ABnEdpFHSM; Fri, 18 Sep 2026 13:32:43 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.0 smtp3.osuosl.org C2DE660E3F Authentication-Results: smtp3.osuosl.org; arc=pass header.oldest-pass=0 smtp.remote-ip=140.211.166.142 ARC-Seal: i=2; d=osuosl.org; s=arc; a=rsa-sha256; cv=pass; t=1789738363; b=NHWZQiIhOIHVULvTqjbsShyeqtmF3eSV20mxkVAItshSQrS8GzqADY44P1C8jatV6fBA iekMNhXoWcER/7TzIH4vzeM5g37f0ThyLNG/P6LmJyEjQJpei43msRApVpuzOTjqTmY5s 07YONzDRtAUNHKZNfQY2wRXM4Z7f3sLOIMWr/W2XN6xuCUos1jZlVmcNR8cRQKWWHeHsl Eb6dx9wVaC/NptaVHxnornKvd3SpEpA6ilnFM39NmRgUj6i0XM/vI4alnDtCB6gehc7D6 UVhyvZVmYseYpZR5+dgpz3NlcaiyYz9U100Wyjz6spcc6u1wl3z57x3QrYLe166b7SA== ARC-Message-Signature: i=2; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1789738363; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received: DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-IronPort-AV: X-IronPort-AV:Received:X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-ExtLoop1: X-IronPort-AV:Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding: X-BeenThere:X-Mailman-Version:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:Errors-To; bh=2amdIlBcUnmD+W8TT1ZYD1JibdQE72rUlEG8I1btosw=; b=U5EkLUnDzQ7AJQUqAW94jkMwwchj8VaoLS7CloqL0XmPoq95F9g3WZDXnDW8i8mIgODe 0QKY6k+MMfjmiTt1rrshqBXHl7elmG5CcB+00TQLtUUjNnvCvwp26MHLKH3Wf6//YNd/b /tzDcbeobz5P0gENEvjjgBgKfGiVRn1PcII7pGBJ1AhoHvXoHiV8nPDl+U7yLbAf5iWN/ WQhiXz9yBv9fgMdpzD/niEVW2xaqAqeuAQHm0n1CIHNBzbgfTmzZ23rq3JLXvnjY+Kjjz +rymmlRBNMrWgpMEKcSmPqn4OAs5E+C0XZobPPG1eSiLPeCooQVBO/0i7rEwjnjNbwg== ARC-Authentication-Results: i=2; smtp3.osuosl.org; arc=pass header.oldest-pass=0 smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1789738363; bh=2amdIlBcUnmD+W8TT1ZYD1JibdQE72rUlEG8I1btosw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=bKz1LmaYrVI6u7eIoIACXHGmh745wh1+1pHcCwIvoI0T36Xp5+AEk9/KH1VgK6R8I s+jKEy0l4DrLX13vu1Nr/OYH03pQZqfbo7V7YXdv1Ud4VhMUfysQqJniwAOylt/JT9 hdbEBbQwgtrEkBUKD8HXtZxlVP7OmbM5gXZhYeba6EPfG5UXiLjq5sKardfvnw7Y9u OofQOUaSUoWl+h4r4MObqTDRCxFq7s6k2aZiQNgt7os5FirX2/2s0tPCLsSzoIyVkm ZSoyhck435XaSuO45tqlFPNL7bYNZtG0YK3uIQb+0M6D44ezsYmpf6byV1cRMrzFbs u4aAZ572udgSg== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id C2DE660E3F; Fri, 18 Sep 2026 13:32:43 +0000 (UTC) X-Original-To: intel-wired-lan@lists.osuosl.org Delivered-To: intel-wired-lan@lists.osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists1.osuosl.org (Postfix) with ESMTP id 2361B279 for ; Fri, 18 Sep 2026 13:32:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 218B740524 for ; Fri, 18 Sep 2026 13:32:42 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id YHL-7Ez8-9F2 for ; Fri, 18 Sep 2026 13:32:41 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.0 smtp2.osuosl.org 4E11940348 Authentication-Results: smtp2.osuosl.org; arc=none smtp.remote-ip=192.198.163.7 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1789738361; b=Fll4VLzai07dWDzFppOYnLB8n6cU18eyn5yLKXT4m0v11oQU0oRnyoyKq6s0Xsm+0AXl TC8uqkzBD8u1K8XYVkN7fZN4SeUdzjlVPPj7FDBUCBltRaMPwizdILvmFlWmm2WOMBd5a dMqDYjD/aYLp5vOOv6df3cIMaonEoBLB+kd7A8JqktiNZLSdE+OVoEfD0WKbmjPYnEbHD hM67z+4kmcOjUt+IrbSIHj/Gz1RwrTInqmzBoiPX1sSGOUYPotAdLGIro7brzMQL0CMbQ ATXrIvwiz9aQIfBJLozlO2NR4mjqGT63sAFhCTXgY7Cilbt8TLqS6yeQW5qwi8b9acA== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1789738361; h=Received-SPF:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=2amdIlBcUnmD+W8TT1ZYD1JibdQE72rUlEG8I1btosw=; b=WDdGblhyDri7BefpMH9IpQsIvIBNAD0LbZ8PhQBKD2SpNBPCKU9FwsQGijzrrkINURZK mMIs2jiuHBhZgfzJmAr9XFL/tv9oHJ5xht6zvt71cfXaLPe6zC0AcddH74d5ykElU7zs5 qlYtMOg0LadGMwznWIU4do/IF32GuvTeMZTkJXlbmFsVuXEq0+6vHlZA7vGnNX0OpJS4l r4X2CFoZEnpSbxDWlWQjdwc6tLYon12lrjVM2iW8wX/Mbwvj+gs2/ZmqRfWMpKlIkNNo/ BDiFF6R9z4YwPvN2no6U8wGPjkKZRVK6DnY7auu3JyZMiN7UmF/1gBDyax4FfjH4hDw== ARC-Authentication-Results: i=1; smtp2.osuosl.org; dmarc=pass header.from=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=F2JVOfsH; arc=none smtp.remote-ip=192.198.163.7 Received-SPF: None (mailfrom) identity=mailfrom; client-ip=192.198.163.7; helo=mgamail.intel.com; envelope-from=aleksandr.loktionov@intel.com; receiver= Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=F2JVOfsH Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by smtp2.osuosl.org (Postfix) with ESMTPS id 4E11940348 for ; Fri, 18 Sep 2026 13:32:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1789738361; x=1821274361; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BtwOBXqZ/1rbZ6xusRjG+PNwnS2FdwGYUBsaWILvJCc=; b=F2JVOfsHMvpvQeJ40ZPL1Jx5Enx1BOBxsXlIZawARO8ooBaud2Z0PlLv 7Vm/+R899lOk91eFAZ7mcecDucdJVd5+gwV0NZ5DYajbDb6jEhcofM/9D edywagGKs2B86tIDEf4h6CUzKkm7Ef7KYO8uezOvQyX2lkH/iCaK7oQqE aMqkIM5R6AS0WlNHdS0XhnfDCJzB2x0LUjJxgPqxFVEjoAjmGkWvlQK6n OCpjB6MVRyDL5ElxRXariDdt5/qnRmCe329sdAOI5Pe7YoVBZx6OHXccD jdpMB2Q6qWO8fHoQ3YRPfrGluaeh2vYLceKWD0Ym58Nrm/VGhsBpYBikb A==; X-CSE-ConnectionGUID: m+ICvcFMQbWFq++rJWhxOA== X-CSE-MsgGUID: Zi8aaQ8iSMCdOIhOWkqXaQ== X-IronPort-AV: E=McAfee;i="6800,10657,11908"; a="115776420" X-IronPort-AV: E=Sophos;i="6.27,109,1787036400"; d="scan'208";a="115776420" Received: from fmviesa013.fm.intel.com ([10.60.135.153]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2026 06:32:41 -0700 X-CSE-ConnectionGUID: FkIJlOAET6CCW+QR4Aw3YQ== X-CSE-MsgGUID: IuzPXyZUT5ywZmvuHW07tA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,109,1787036400"; d="scan'208";a="2835252" Received: from amlin-019-225.igk.intel.com ([10.102.19.225]) by fmviesa013.fm.intel.com with ESMTP; 18 Sep 2026 06:32:40 -0700 From: Aleksandr Loktionov To: intel-wired-lan@lists.osuosl.org, anthony.l.nguyen@intel.com, aleksandr.loktionov@intel.com Cc: netdev@vger.kernel.org, Lukasz Czapnik Subject: [PATCH iwl-net v3 3/3] ice: support RDMA on 4+-port E830 devices Date: Fri, 18 Sep 2026 15:32:34 +0200 Message-ID: <20260918133234.4169074-4-aleksandr.loktionov@intel.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260918133234.4169074-1-aleksandr.loktionov@intel.com> References: <20260918133234.4169074-1-aleksandr.loktionov@intel.com> MIME-Version: 1.0 X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-wired-lan-bounces@osuosl.org From: Lukasz Czapnik E810 and E82X devices do not support RDMA on configurations with more than 4 ports. This limitation does not apply to E830 devices, which have a different hardware design and support RDMA regardless of the port count. Narrow the RDMA capability disable condition to skip E830 devices. Move the 'RDMA functionality is not available' notice inside that same condition so it is only printed when RDMA is actually being disabled, instead of unconditionally whenever num_funcs > 4 -- otherwise E830 would log a spurious warning even though RDMA stays enabled. Fixes: ba1124f58afd ("ice: Add E830 device IDs, MAC type and registers") Signed-off-by: Lukasz Czapnik Signed-off-by: Aleksandr Loktionov Reviewed-by: Tomasz Lichwala Reviewed-by: Simon Horman --- drivers/net/ethernet/intel/ice/ice_common.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_common.c b/drivers/net/ethernet/intel/ice/ice_common.c index 0463310..1c4421f 100644 --- a/drivers/net/ethernet/intel/ice/ice_common.c +++ b/drivers/net/ethernet/intel/ice/ice_common.c @@ -2510,16 +2510,16 @@ ice_recalc_port_limited_caps(struct ice_hw *hw, struct ice_hw_common_caps *caps) caps->maxtc = 4; ice_debug(hw, ICE_DBG_INIT, "reducing maxtc to %d (based on #ports)\n", caps->maxtc); - if (caps->rdma) { + if (caps->rdma && hw->mac_type != ICE_MAC_E830) { ice_debug(hw, ICE_DBG_INIT, "forcing RDMA off\n"); caps->rdma = 0; - } - /* print message only when processing device capabilities - * during initialization. - */ - if (caps == &hw->dev_caps.common_cap) - dev_info(ice_hw_to_dev(hw), "RDMA functionality is not available with the current device configuration.\n"); + /* print message only when processing device + * capabilities during initialization. + */ + if (caps == &hw->dev_caps.common_cap) + dev_info(ice_hw_to_dev(hw), "RDMA functionality is not available with the current device configuration.\n"); + } } }