eal: use unsigned int in lcore API prototypes
Purely cosmetic change, use unsigned int instead of unsigned alone. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David Marchand <david.marchand@redhat.com>
This commit is contained in:
parent
cf407431df
commit
3a1bb50734
@ -137,7 +137,7 @@ rte_lcore_index(int lcore_id)
|
|||||||
* @return
|
* @return
|
||||||
* the ID of current lcoreid's physical socket
|
* the ID of current lcoreid's physical socket
|
||||||
*/
|
*/
|
||||||
unsigned rte_socket_id(void);
|
unsigned int rte_socket_id(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return number of physical sockets detected on the system.
|
* Return number of physical sockets detected on the system.
|
||||||
@ -177,8 +177,8 @@ rte_socket_id_by_idx(unsigned int idx);
|
|||||||
* @return
|
* @return
|
||||||
* the ID of lcoreid's physical socket
|
* the ID of lcoreid's physical socket
|
||||||
*/
|
*/
|
||||||
static inline unsigned
|
static inline unsigned int
|
||||||
rte_lcore_to_socket_id(unsigned lcore_id)
|
rte_lcore_to_socket_id(unsigned int lcore_id)
|
||||||
{
|
{
|
||||||
return lcore_config[lcore_id].socket_id;
|
return lcore_config[lcore_id].socket_id;
|
||||||
}
|
}
|
||||||
@ -193,7 +193,7 @@ rte_lcore_to_socket_id(unsigned lcore_id)
|
|||||||
* True if the given lcore is enabled; false otherwise.
|
* True if the given lcore is enabled; false otherwise.
|
||||||
*/
|
*/
|
||||||
static inline int
|
static inline int
|
||||||
rte_lcore_is_enabled(unsigned lcore_id)
|
rte_lcore_is_enabled(unsigned int lcore_id)
|
||||||
{
|
{
|
||||||
struct rte_config *cfg = rte_eal_get_configuration();
|
struct rte_config *cfg = rte_eal_get_configuration();
|
||||||
if (lcore_id >= RTE_MAX_LCORE)
|
if (lcore_id >= RTE_MAX_LCORE)
|
||||||
@ -214,8 +214,8 @@ rte_lcore_is_enabled(unsigned lcore_id)
|
|||||||
* @return
|
* @return
|
||||||
* The next lcore_id or RTE_MAX_LCORE if not found.
|
* The next lcore_id or RTE_MAX_LCORE if not found.
|
||||||
*/
|
*/
|
||||||
static inline unsigned
|
static inline unsigned int
|
||||||
rte_get_next_lcore(unsigned i, int skip_master, int wrap)
|
rte_get_next_lcore(unsigned int i, int skip_master, int wrap)
|
||||||
{
|
{
|
||||||
i++;
|
i++;
|
||||||
if (wrap)
|
if (wrap)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user