[spp] [PATCH 4/7] spp_vf: fix deprecated use of rte_eth_dev_count
Yasufumi Ogawa
ogawa.yasufumi at lab.ntt.co.jp
Thu Jun 21 12:52:53 CEST 2018
On 2018/06/19 20:37, Kenta Shinohara wrote:
> This patch is same as previous one.
>
> Signed-off-by: Kenta Shinohara <shinohara.kenta at lab.ntt.co.jp>
Thanks!
Acked-by: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>
>
> ---
> src/vf/spp_vf.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/vf/spp_vf.c b/src/vf/spp_vf.c
> index fb45b83..32f25fd 100644
> --- a/src/vf/spp_vf.c
> +++ b/src/vf/spp_vf.c
> @@ -774,7 +774,7 @@ set_nic_interface(void)
> int nic_cnt = 0;
>
> /* NIC Setting */
> - g_iface_info.num_nic = rte_eth_dev_count();
> + g_iface_info.num_nic = rte_eth_dev_count_avail();
> if (g_iface_info.num_nic > RTE_MAX_ETHPORTS)
> g_iface_info.num_nic = RTE_MAX_ETHPORTS;
>
>
More information about the spp
mailing list