git: 772b37053bc5 - stable/15 - ixgbe: Remove unused function ixgbe_is_media_cage_present

From: Krzysztof Galazka <kgalazka_at_FreeBSD.org>
Date: Thu, 02 Oct 2025 17:15:30 UTC
The branch stable/15 has been updated by kgalazka:

URL: https://cgit.FreeBSD.org/src/commit/?id=772b37053bc583d52410e1432817e95bba60fa75

commit 772b37053bc583d52410e1432817e95bba60fa75
Author:     Yogesh Bhosale <Yogesh.Bhosale@intel.com>
AuthorDate: 2025-09-10 07:26:09 +0000
Commit:     Krzysztof Galazka <kgalazka@FreeBSD.org>
CommitDate: 2025-10-02 17:14:35 +0000

    ixgbe: Remove unused function ixgbe_is_media_cage_present
    
    Remove the unused function ixgbe_is_media_cage_present that
    generates a compiler warning.
    
    Signed-off-by: Yogesh Bhosale yogesh.bhosale@intel.com
    
    Reported by:    markj
    Differential Revision:  https://reviews.freebsd.org/D52467
    
    (cherry picked from commit 275f7d72ff6a71bbe46b4282a88f0ea9a24be22a)
---
 sys/dev/ixgbe/ixgbe_e610.c | 34 ----------------------------------
 1 file changed, 34 deletions(-)

diff --git a/sys/dev/ixgbe/ixgbe_e610.c b/sys/dev/ixgbe/ixgbe_e610.c
index 95c6dca416c6..18c4612446e0 100644
--- a/sys/dev/ixgbe/ixgbe_e610.c
+++ b/sys/dev/ixgbe/ixgbe_e610.c
@@ -1399,40 +1399,6 @@ s32 ixgbe_aci_set_link_restart_an(struct ixgbe_hw *hw, bool ena_link)
 	return ixgbe_aci_send_cmd(hw, &desc, NULL, 0);
 }
 
-/**
- * ixgbe_is_media_cage_present - check if media cage is present
- * @hw: pointer to the HW struct
- *
- * Identify presence of media cage using the ACI command (0x06E0).
- *
- * Return: true if media cage is present, else false. If no cage, then
- * media type is backplane or BASE-T.
- */
-static bool ixgbe_is_media_cage_present(struct ixgbe_hw *hw)
-{
-	struct ixgbe_aci_cmd_get_link_topo *cmd;
-	struct ixgbe_aci_desc desc;
-
-	cmd = &desc.params.get_link_topo;
-
-	ixgbe_fill_dflt_direct_cmd_desc(&desc, ixgbe_aci_opc_get_link_topo);
-
-	cmd->addr.topo_params.node_type_ctx =
-		(IXGBE_ACI_LINK_TOPO_NODE_CTX_PORT <<
-		 IXGBE_ACI_LINK_TOPO_NODE_CTX_S);
-
-	/* set node type */
-	cmd->addr.topo_params.node_type_ctx |=
-		(IXGBE_ACI_LINK_TOPO_NODE_TYPE_M &
-		 IXGBE_ACI_LINK_TOPO_NODE_TYPE_CAGE);
-
-	/* Node type cage can be used to determine if cage is present. If AQC
-	 * returns error (ENOENT), then no cage present. If no cage present then
-	 * connection type is backplane or BASE-T.
-	 */
-	return ixgbe_aci_get_netlist_node(hw, cmd, NULL, NULL);
-}
-
 /**
  * ixgbe_get_media_type_from_phy_type - Gets media type based on phy type
  * @hw: pointer to the HW struct