]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Set backplane link modes correctly for ethtool
authorShravya KN <shravya.k-n@broadcom.com>
Fri, 22 Nov 2024 22:45:42 +0000 (14:45 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 26 Nov 2024 14:29:31 +0000 (15:29 +0100)
commit5007991670941c132fb3bc0484c009cf4bcea30f
treebe1f3ad02bd088faef6b2c43da7592376ae3635f
parent5311598f7f3293683cdc761df71ae3469327332c
bnxt_en: Set backplane link modes correctly for ethtool

Use the return value from bnxt_get_media() to determine the port and
link modes.  bnxt_get_media() returns the proper BNXT_MEDIA_KR when
the PHY is backplane.  This will correct the ethtool settings for
backplane devices.

Fixes: 5d4e1bf60664 ("bnxt_en: extend media types to supported and autoneg modes")
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Shravya KN <shravya.k-n@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c