aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/bcm/Qos.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-29 11:22:10 -0400
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-29 23:45:01 -0400
commit92bc60580e55d18494a23ba8ae642a464ebfd7a6 (patch)
tree2a31b00fec8ac0d1c381e84078af33fd7d9f642b /drivers/staging/bcm/Qos.c
parent2b5e625882a7130c339e4ad2ac2b8f0422f11919 (diff)
beceem: get rid of OS dependent data structure
The only part of this structure still used was the network device stats, and in recent kernel these are available in network device itself. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Diffstat (limited to 'drivers/staging/bcm/Qos.c')
-rw-r--r--drivers/staging/bcm/Qos.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/staging/bcm/Qos.c b/drivers/staging/bcm/Qos.c
index 75b2b879633..a86a38c33f2 100644
--- a/drivers/staging/bcm/Qos.c
+++ b/drivers/staging/bcm/Qos.c
@@ -362,18 +362,18 @@ VOID PruneQueue(PMINI_ADAPTER Adapter,/**<Pointer to the driver control structur
362 ) 362 )
363{ 363{
364 struct sk_buff* PacketToDrop=NULL; 364 struct sk_buff* PacketToDrop=NULL;
365 struct net_device_stats* netstats=NULL; 365 struct net_device_stats *netstats;
366 366
367 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, PRUNE_QUEUE, DBG_LVL_ALL, "=====> Index %d",iIndex); 367 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, PRUNE_QUEUE, DBG_LVL_ALL, "=====> Index %d",iIndex);
368 368
369 if(iIndex == HiPriority) 369 if(iIndex == HiPriority)
370 return; 370 return;
371 371
372 if(!Adapter || (iIndex < 0) || (iIndex > HiPriority)) 372 if(!Adapter || (iIndex < 0) || (iIndex > HiPriority))
373 return; 373 return;
374 374
375 /* To Store the netdevice statistic */ 375 /* To Store the netdevice statistic */
376 netstats = &((PLINUX_DEP_DATA)Adapter->pvOsDepData)->netstats; 376 netstats = &Adapter->dev->stats;
377 377
378 spin_lock_bh(&Adapter->PackInfo[iIndex].SFQueueLock); 378 spin_lock_bh(&Adapter->PackInfo[iIndex].SFQueueLock);
379 379
@@ -431,11 +431,9 @@ VOID flush_all_queues(PMINI_ADAPTER Adapter)
431 INT iQIndex; 431 INT iQIndex;
432 UINT uiTotalPacketLength; 432 UINT uiTotalPacketLength;
433 struct sk_buff* PacketToDrop=NULL; 433 struct sk_buff* PacketToDrop=NULL;
434 struct net_device_stats* netstats=NULL; 434 struct net_device_stats* netstats=&Adapter->dev->stats;
435 435
436 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, DUMP_INFO, DBG_LVL_ALL, "=====>"); 436 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_OTHERS, DUMP_INFO, DBG_LVL_ALL, "=====>");
437 /* To Store the netdevice statistic */
438 netstats = &((PLINUX_DEP_DATA)Adapter->pvOsDepData)->netstats;
439 437
440// down(&Adapter->data_packet_queue_lock); 438// down(&Adapter->data_packet_queue_lock);
441 for(iQIndex=LowPriority; iQIndex<HiPriority; iQIndex++) 439 for(iQIndex=LowPriority; iQIndex<HiPriority; iQIndex++)