@@ -26,7 +26,7 @@ use io_uring::{
2626 types:: { Fd , SubmitArgs , Timespec } ,
2727} ;
2828pub ( crate ) use libc:: { sockaddr_storage, socklen_t} ;
29- #[ cfg( buf_ring ) ]
29+ #[ cfg( io_uring ) ]
3030use slab:: Slab ;
3131
3232use crate :: { AsyncifyPool , BufferPool , Entry , Key , ProactorBuilder , syscall} ;
@@ -84,7 +84,7 @@ pub(crate) struct Driver {
8484 notifier : Notifier ,
8585 pool : AsyncifyPool ,
8686 pool_completed : Arc < SegQueue < Entry > > ,
87- #[ cfg( buf_ring ) ]
87+ #[ cfg( io_uring ) ]
8888 buffer_group_ids : Slab < ( ) > ,
8989}
9090
@@ -119,7 +119,7 @@ impl Driver {
119119 notifier,
120120 pool : builder. create_or_get_thread_pool ( ) ,
121121 pool_completed : Arc :: new ( SegQueue :: new ( ) ) ,
122- #[ cfg( buf_ring ) ]
122+ #[ cfg( io_uring ) ]
123123 buffer_group_ids : Slab :: new ( ) ,
124124 } )
125125 }
@@ -298,7 +298,7 @@ impl Driver {
298298 self . notifier . handle ( )
299299 }
300300
301- #[ cfg( buf_ring ) ]
301+ #[ cfg( io_uring ) ]
302302 pub fn create_buffer_pool (
303303 & mut self ,
304304 buffer_len : u16 ,
@@ -333,7 +333,7 @@ impl Driver {
333333 }
334334 }
335335
336- #[ cfg( not( buf_ring ) ) ]
336+ #[ cfg( not( io_uring ) ) ]
337337 pub fn create_buffer_pool (
338338 & mut self ,
339339 buffer_len : u16 ,
@@ -345,7 +345,7 @@ impl Driver {
345345 /// # Safety
346346 ///
347347 /// caller must make sure release the buffer pool with correct driver
348- #[ cfg( buf_ring ) ]
348+ #[ cfg( io_uring ) ]
349349 pub unsafe fn release_buffer_pool ( & mut self , buffer_pool : BufferPool ) -> io:: Result < ( ) > {
350350 #[ cfg( fusion) ]
351351 let buffer_pool = buffer_pool. into_io_uring ( ) ;
@@ -360,7 +360,7 @@ impl Driver {
360360 /// # Safety
361361 ///
362362 /// caller must make sure release the buffer pool with correct driver
363- #[ cfg( not( buf_ring ) ) ]
363+ #[ cfg( not( io_uring ) ) ]
364364 pub unsafe fn release_buffer_pool ( & mut self , _: BufferPool ) -> io:: Result < ( ) > {
365365 Ok ( ( ) )
366366 }
0 commit comments