rdma: Rename rd_free_devmap to be rd_free
Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: David Ahern <dsahern@gmail.com>
This commit is contained in:
parent
7109f4b212
commit
5fc17280b1
|
|
@ -74,8 +74,7 @@ static void rd_cleanup(struct rd *rd)
|
||||||
{
|
{
|
||||||
if (rd->json_output)
|
if (rd->json_output)
|
||||||
jsonw_destroy(&rd->jw);
|
jsonw_destroy(&rd->jw);
|
||||||
free(rd->buff);
|
rd_free(rd);
|
||||||
rd_free_devmap(rd);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
|
|
|
||||||
|
|
@ -73,11 +73,11 @@ int cmd_dev(struct rd *rd);
|
||||||
int cmd_link(struct rd *rd);
|
int cmd_link(struct rd *rd);
|
||||||
int rd_exec_cmd(struct rd *rd, const struct rd_cmd *c, const char *str);
|
int rd_exec_cmd(struct rd *rd, const struct rd_cmd *c, const char *str);
|
||||||
int rd_exec_dev(struct rd *rd, int (*cb)(struct rd *rd));
|
int rd_exec_dev(struct rd *rd, int (*cb)(struct rd *rd));
|
||||||
|
void rd_free(struct rd *rd);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Device manipulation
|
* Device manipulation
|
||||||
*/
|
*/
|
||||||
void rd_free_devmap(struct rd *rd);
|
|
||||||
struct dev_map *dev_map_lookup(struct rd *rd, bool allow_port_index);
|
struct dev_map *dev_map_lookup(struct rd *rd, bool allow_port_index);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -144,10 +144,11 @@ int rd_dev_init_cb(const struct nlmsghdr *nlh, void *data)
|
||||||
return MNL_CB_OK;
|
return MNL_CB_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
void rd_free_devmap(struct rd *rd)
|
void rd_free(struct rd *rd)
|
||||||
{
|
{
|
||||||
if (!rd)
|
if (!rd)
|
||||||
return;
|
return;
|
||||||
|
free(rd->buff);
|
||||||
dev_map_cleanup(rd);
|
dev_map_cleanup(rd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue