Skip to content

Commit 9ac3fc2

Browse files
prasad-koyaanguy11
authored andcommitted
igc: set TP bit in 'supported' and 'advertising' fields of ethtool_link_ksettings
set TP bit in the 'supported' and 'advertising' fields. i225/226 parts only support twisted pair copper. Fixes: 8c5ad0d ("igc: Add ethtool support") Signed-off-by: Prasad Koya <prasad@arista.com> Acked-by: Sasha Neftin <sasha.neftin@intel.com> Tested-by: Naama Meir <naamax.meir@linux.intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
1 parent 175c241 commit 9ac3fc2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/net/ethernet/intel/igc/igc_ethtool.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1708,6 +1708,8 @@ static int igc_ethtool_get_link_ksettings(struct net_device *netdev,
17081708
/* twisted pair */
17091709
cmd->base.port = PORT_TP;
17101710
cmd->base.phy_address = hw->phy.addr;
1711+
ethtool_link_ksettings_add_link_mode(cmd, supported, TP);
1712+
ethtool_link_ksettings_add_link_mode(cmd, advertising, TP);
17111713

17121714
/* advertising link modes */
17131715
if (hw->phy.autoneg_advertised & ADVERTISE_10_HALF)

0 commit comments

Comments
 (0)