mlx4_core: Add network flow counters
ConnectX devices support a set of flow counters that can be attached to a set containing one or more QPs. Each such counter tracks receive and transmit packets and bytes of these QPs. This patch queries the device to check support for counters, handles initialization of the HCA to enable counters, and initializes a bitmap allocator to control counter allocations. Derived from patch by Eli Cohen <eli@mellanox.co.il>. Signed-off-by: Or Gerlitz <ogerlitz@mellanox.co.il> Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:
		
					parent
					
						
							
								98a13e487a
							
						
					
				
			
			
				commit
				
					
						f2a3f6a32c
					
				
			
		
					 6 changed files with 86 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -123,6 +123,9 @@ enum {
 | 
			
		|||
	/* debug commands */
 | 
			
		||||
	MLX4_CMD_QUERY_DEBUG_MSG = 0x2a,
 | 
			
		||||
	MLX4_CMD_SET_DEBUG_MSG	 = 0x2b,
 | 
			
		||||
 | 
			
		||||
	/* statistics commands */
 | 
			
		||||
	MLX4_CMD_QUERY_IF_STAT	 = 0X54,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
enum {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue