ramips: reduce napi_weight in the ethernet driver.
Currently dmsg a weight of 128 which is above the kernel limit of 64. Silence the warning. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
		 Rosen Penev
					Rosen Penev
				
			
				
					committed by
					
						 John Crispin
						John Crispin
					
				
			
			
				
	
			
			
			 John Crispin
						John Crispin
					
				
			
						parent
						
							1a5bf778fb
						
					
				
				
					commit
					dcdc2880b6
				
			| @@ -1536,7 +1536,7 @@ static int fe_probe(struct platform_device *pdev) | |||||||
| 	priv->rx_ring.rx_ring_size = NUM_DMA_DESC; | 	priv->rx_ring.rx_ring_size = NUM_DMA_DESC; | ||||||
| 	INIT_WORK(&priv->pending_work, fe_pending_work); | 	INIT_WORK(&priv->pending_work, fe_pending_work); | ||||||
|  |  | ||||||
| 	napi_weight = 32; | 	napi_weight = 16; | ||||||
| 	if (priv->flags & FE_FLAG_NAPI_WEIGHT) { | 	if (priv->flags & FE_FLAG_NAPI_WEIGHT) { | ||||||
| 		napi_weight *= 4; | 		napi_weight *= 4; | ||||||
| 		priv->tx_ring.tx_ring_size *= 4; | 		priv->tx_ring.tx_ring_size *= 4; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user