rust-dpdk icon indicating copy to clipboard operation
rust-dpdk copied to clipboard

Return type of `setup`

Open leeopop opened this issue 5 years ago • 1 comments
trafficstars

현재 Result<Vec<(LCoreId, Vec<RxQ>, Vec<TxQ>)>, ErrorCode> 입니다.

다른 후보로서 모든 LCore 로 spread 할 function을 받고 실행까지 하는 API를 생각해보았습니다.

(setup(rx_affinity, tx_affinity, per_core_function) -> impl Future<Result<AllThreadEnded, ErrorCode>>)

leeopop avatar Jun 06 '20 15:06 leeopop

@jeehoonkang 우선은 처음 논의된 API형태 (core, rxqs, txqs)로 작성하였습니다만 제작하면서 위와 같은 대안이 떠올랐습니다.

leeopop avatar Jun 06 '20 15:06 leeopop