> -----Original Message----- > From: dev <dev-boun...@dpdk.org> On Behalf Of Min Hu (Connor) > > + if (lcore_id >= RTE_MAX_LCORE) { > + RTE_LOG(ERR, GUEST_CHANNEL, "Channel(%u) is out of range > 0...%d\n", > + lcore_id, RTE_MAX_LCORE-1); > + return -1; > + } > + This looks good. > fds.fd = global_fds[lcore_id]; > fds.events = POLLIN; > <snip> > if (global_fds[lcore_id] < 0) { > RTE_LOG(ERR, GUEST_CHANNEL, "Channel is not > connected\n"); Another suggestion if you would like to improve the code, is below, You can move "global_fds[lcore_id]" check to immediate after the line "fds.fd = global_fds[lcore_id]; " Reviewed-by: Reshma Pattan <reshma.pat...@intel.com>
- [dpdk-dev] [PATCH] lib/librte_power: fix using variables b... Min Hu (Connor)
- Re: [dpdk-dev] [PATCH] lib/librte_power: fix using va... Pattan, Reshma
- Re: [dpdk-dev] [PATCH] lib/librte_power: fix usin... Min Hu (Connor)
- Re: [dpdk-dev] [PATCH] lib/librte_power: fix ... Thomas Monjalon
- Re: [dpdk-dev] [PATCH] lib/librte_power: fix ... Pattan, Reshma
- [dpdk-dev] [PATCH v2] lib/librte_power: fix using var... Min Hu (Connor)
- Re: [dpdk-dev] [PATCH v2] lib/librte_power: fix u... David Hunt
- Re: [dpdk-dev] [PATCH v2] lib/librte_power: f... Min Hu (Connor)
- Re: [dpdk-dev] [PATCH v2] lib/librte_powe... David Hunt
- Re: [dpdk-dev] [PATCH v2] lib/librte_power: f... Thomas Monjalon