svn commit: r282833 - stable/10/sys/dev/ixgbe

Marcelo Araujo araujo at FreeBSD.org
Wed May 13 08:58:07 UTC 2015


Author: araujo (ports committer)
Date: Wed May 13 08:58:06 2015
New Revision: 282833
URL: https://svnweb.freebsd.org/changeset/base/282833

Log:
  Convert space to tabs in the bits that I changed in my last commit.
  No functional change.
  
  Reported by:	jmallet@

Modified:
  stable/10/sys/dev/ixgbe/ixgbe.c

Modified: stable/10/sys/dev/ixgbe/ixgbe.c
==============================================================================
--- stable/10/sys/dev/ixgbe/ixgbe.c	Wed May 13 08:04:50 2015	(r282832)
+++ stable/10/sys/dev/ixgbe/ixgbe.c	Wed May 13 08:58:06 2015	(r282833)
@@ -1673,7 +1673,7 @@ static void
 ixgbe_media_status(struct ifnet * ifp, struct ifmediareq * ifmr)
 {
 	struct adapter *adapter = ifp->if_softc;
-       struct ixgbe_hw *hw = &adapter->hw;
+	struct ixgbe_hw *hw = &adapter->hw;
 
 	INIT_DEBUGOUT("ixgbe_media_status: begin");
 	IXGBE_CORE_LOCK(adapter);
@@ -1689,28 +1689,28 @@ ixgbe_media_status(struct ifnet * ifp, s
 
 	ifmr->ifm_status |= IFM_ACTIVE;
 
-       /*
-        * Not all NIC are 1000baseSX as an example X540T.
-        * We must set properly the media based on NIC model.
-        */
-       switch (hw->device_id) {
-              case IXGBE_DEV_ID_X540T:
-      			if (adapter->link_speed == IXGBE_LINK_SPEED_100_FULL)
-                            	ifmr->ifm_active |= IFM_100_TX | IFM_FDX;
-                     	else if (adapter->link_speed == IXGBE_LINK_SPEED_1GB_FULL)
-                            	ifmr->ifm_active |= IFM_1000_T | IFM_FDX;
-                     	else if (adapter->link_speed == IXGBE_LINK_SPEED_10GB_FULL)
-                            	ifmr->ifm_active |= adapter->optics | IFM_FDX;
-                     	break;
-              default:
-                     	if (adapter->link_speed == IXGBE_LINK_SPEED_100_FULL)
-                            	ifmr->ifm_active |= IFM_100_TX | IFM_FDX;
-                     	else if (adapter->link_speed == IXGBE_LINK_SPEED_1GB_FULL)
-                            	ifmr->ifm_active |= IFM_1000_SX | IFM_FDX;
-                     	else if (adapter->link_speed == IXGBE_LINK_SPEED_10GB_FULL)
-                            	ifmr->ifm_active |= adapter->optics | IFM_FDX;
-                     	break;
-       }
+	/*
+	 * Not all NIC are 1000baseSX as an example X540T.
+	 * We must set properly the media based on NIC model.
+	 */
+	switch (hw->device_id) {
+	case IXGBE_DEV_ID_X540T:
+		if (adapter->link_speed == IXGBE_LINK_SPEED_100_FULL)
+			ifmr->ifm_active |= IFM_100_TX | IFM_FDX;
+		else if (adapter->link_speed == IXGBE_LINK_SPEED_1GB_FULL)
+			ifmr->ifm_active |= IFM_1000_T | IFM_FDX;
+		else if (adapter->link_speed == IXGBE_LINK_SPEED_10GB_FULL)
+			ifmr->ifm_active |= adapter->optics | IFM_FDX;
+		break;
+	default:
+		if (adapter->link_speed == IXGBE_LINK_SPEED_100_FULL)
+			ifmr->ifm_active |= IFM_100_TX | IFM_FDX;
+		else if (adapter->link_speed == IXGBE_LINK_SPEED_1GB_FULL)
+			ifmr->ifm_active |= IFM_1000_SX | IFM_FDX;
+		else if (adapter->link_speed == IXGBE_LINK_SPEED_10GB_FULL)
+			ifmr->ifm_active |= adapter->optics | IFM_FDX;
+		break;
+	}
 
 	IXGBE_CORE_UNLOCK(adapter);
 


More information about the svn-src-all mailing list