Re: [dpdk-dev] [PATCH 2/4] vhost: avoid function call in data path

2018-02-20 Thread Maxime Coquelin
On 02/19/2018 09:48 PM, Maxime Coquelin wrote: On 02/14/2018 05:01 AM, Jianfeng Tan wrote: Previously, get_device() is a function call. It's OK for slow path configuration, but takes some cycles for data path. To avoid that, we turn this function to inline type. Cc: maxime.coque...@redhat.

Re: [dpdk-dev] [PATCH 2/4] vhost: avoid function call in data path

2018-02-19 Thread Maxime Coquelin
On 02/14/2018 05:01 AM, Jianfeng Tan wrote: Previously, get_device() is a function call. It's OK for slow path configuration, but takes some cycles for data path. To avoid that, we turn this function to inline type. Cc: maxime.coque...@redhat.com Cc: y...@fridaylinux.org Signed-off-by: Jianf