sch_tbf: add TBF_BURST/TBF_PBURST attribute
When we set burst to 1514 with low rate in userspace, the kernel get a value of burst that less than 1514, which doesn't work. Because it may make some loss when transform burst to buffer in userspace. This makes burst lose some bytes, when the kernel transform the buffer back to burst. This patch adds two new attributes to support sending burst/mtu to kernel directly to avoid the loss. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
		
					parent
					
						
							
								4e2d52bfb2
							
						
					
				
			
			
				commit
				
					
						2e04ad424b
					
				
			
		
					 2 changed files with 26 additions and 5 deletions
				
			
		|  | @ -173,6 +173,8 @@ enum { | |||
| 	TCA_TBF_PTAB, | ||||
| 	TCA_TBF_RATE64, | ||||
| 	TCA_TBF_PRATE64, | ||||
| 	TCA_TBF_BURST, | ||||
| 	TCA_TBF_PBURST, | ||||
| 	__TCA_TBF_MAX, | ||||
| }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yang Yingliang
				Yang Yingliang