mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
rocker: add name field into WorldOps ale let world specify its name
Also use this in world_name getter function. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
39e0c4f47d
commit
031143c8d5
3 changed files with 3 additions and 6 deletions
|
@ -98,10 +98,5 @@ enum rocker_world_type world_type(World *world)
|
|||
|
||||
const char *world_name(World *world)
|
||||
{
|
||||
switch (world->type) {
|
||||
case ROCKER_WORLD_TYPE_OF_DPA:
|
||||
return "OF_DPA";
|
||||
default:
|
||||
return "unknown";
|
||||
}
|
||||
return world->ops->name;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue