Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 May 2019 10:55:15 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r347300 - head/sys/dev/mlx5/mlx5_en
Message-ID:  <201905081055.x48AtFcw057396@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Wed May  8 10:55:15 2019
New Revision: 347300
URL: https://svnweb.freebsd.org/changeset/base/347300

Log:
  Do not add IFM_10G_LR and IFM_40G_ER4 to supported media types by default in
  mlx5en(4).
  
  IFM_10G_LR and IFM_40G_ER4 media should be added only if the device
  has the needed capability bit set for it.
  
  Submitted by:	slavash@
  MFC after:	3 days
  Sponsored by:	Mellanox Technologies

Modified:
  head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c

Modified: head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
==============================================================================
--- head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c	Wed May  8 10:54:54 2019	(r347299)
+++ head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c	Wed May  8 10:55:15 2019	(r347300)
@@ -4232,17 +4232,6 @@ mlx5e_create_ifp(struct mlx5_core_dev *mdev)
 		}
 	}
 
-	/* Additional supported medias */
-	ifmedia_add(&priv->media, IFM_10G_LR | IFM_ETHER, 0, NULL);
-	ifmedia_add(&priv->media, IFM_10G_LR |
-	    IFM_ETHER | IFM_FDX |
-	    IFM_ETH_RXPAUSE | IFM_ETH_TXPAUSE, 0, NULL);
-
-	ifmedia_add(&priv->media, IFM_40G_ER4 | IFM_ETHER, 0, NULL);
-	ifmedia_add(&priv->media, IFM_40G_ER4 |
-	    IFM_ETHER | IFM_FDX |
-	    IFM_ETH_RXPAUSE | IFM_ETH_TXPAUSE, 0, NULL);
-
 	ifmedia_add(&priv->media, IFM_ETHER | IFM_AUTO, 0, NULL);
 	ifmedia_add(&priv->media, IFM_ETHER | IFM_AUTO | IFM_FDX |
 	    IFM_ETH_RXPAUSE | IFM_ETH_TXPAUSE, 0, NULL);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905081055.x48AtFcw057396>