Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f174341 authored by Matthias Beyer's avatar Matthias Beyer Committed by Greg Kroah-Hartman
Browse files

Staging: bcm: Qos.c: Line length / Whitespace cleanup in PruneQueue()

parent a21a3fe4
Loading
Loading
Loading
Loading
+37 −13
Original line number Diff line number Diff line
@@ -439,7 +439,12 @@ static VOID PruneQueue(struct bcm_mini_adapter *Adapter, INT iIndex)
	struct net_device_stats *netstats;
	struct bcm_packet_info	*curr_pack_info = &Adapter->PackInfo[iIndex];

	BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, PRUNE_QUEUE, DBG_LVL_ALL, "=====> Index %d", iIndex);
	BCM_DEBUG_PRINT(Adapter,
			DBG_TYPE_TX,
			PRUNE_QUEUE,
			DBG_LVL_ALL,
			"=====> Index %d",
			iIndex);

	if (iIndex == HiPriority)
		return;
@@ -456,7 +461,11 @@ static VOID PruneQueue(struct bcm_mini_adapter *Adapter, INT iIndex)
	/* while((UINT)Adapter->PackInfo[iIndex].uiCurrentPacketsOnHost > */
	/* 	SF_MAX_ALLOWED_PACKETS_TO_BACKUP) { */

		BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, PRUNE_QUEUE, DBG_LVL_ALL, "uiCurrentBytesOnHost:%x uiMaxBucketSize :%x",
		BCM_DEBUG_PRINT(Adapter,
				DBG_TYPE_TX,
				PRUNE_QUEUE,
				DBG_LVL_ALL,
				"uiCurrentBytesOnHost:%x uiMaxBucketSize :%x",
				curr_pack_info->uiCurrentBytesOnHost,
				curr_pack_info->uiMaxBucketSize);

@@ -464,8 +473,11 @@ static VOID PruneQueue(struct bcm_mini_adapter *Adapter, INT iIndex)

		if (PacketToDrop == NULL)
			break;
		if ((curr_pack_info->uiCurrentPacketsOnHost < SF_MAX_ALLOWED_PACKETS_TO_BACKUP) &&
			((1000*(jiffies - *((B_UINT32 *)(PacketToDrop->cb)+SKB_CB_LATENCY_OFFSET))/HZ) <= curr_pack_info->uiMaxLatency))
		if ((curr_pack_info->uiCurrentPacketsOnHost <
					SF_MAX_ALLOWED_PACKETS_TO_BACKUP) &&
			((1000*(jiffies - *((B_UINT32 *)(PacketToDrop->cb) +
					    SKB_CB_LATENCY_OFFSET))/HZ) <=
				curr_pack_info->uiMaxLatency))
			break;

		if (PacketToDrop) {
@@ -488,7 +500,11 @@ static VOID PruneQueue(struct bcm_mini_adapter *Adapter, INT iIndex)

		}

		BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, PRUNE_QUEUE, DBG_LVL_ALL, "Dropped Bytes:%x Dropped Packets:%x",
		BCM_DEBUG_PRINT(Adapter,
				DBG_TYPE_TX,
				PRUNE_QUEUE,
				DBG_LVL_ALL,
				"Dropped Bytes:%x Dropped Packets:%x",
				curr_pack_info->uiDroppedCountBytes,
				curr_pack_info->uiDroppedCountPackets);

@@ -497,9 +513,17 @@ static VOID PruneQueue(struct bcm_mini_adapter *Adapter, INT iIndex)

	spin_unlock_bh(&curr_pack_info->SFQueueLock);

	BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, PRUNE_QUEUE, DBG_LVL_ALL, "TotalPacketCount:%x",
	BCM_DEBUG_PRINT(Adapter,
			DBG_TYPE_TX,
			PRUNE_QUEUE,
			DBG_LVL_ALL,
			"TotalPacketCount:%x",
			atomic_read(&Adapter->TotalPacketCount));
	BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, PRUNE_QUEUE, DBG_LVL_ALL, "<=====");
	BCM_DEBUG_PRINT(Adapter,
			DBG_TYPE_TX,
			PRUNE_QUEUE,
			DBG_LVL_ALL,
			"<=====");
}

VOID flush_all_queues(struct bcm_mini_adapter *Adapter)