aboutsummaryrefslogtreecommitdiff
path: root/hw/net/rocker/rocker_fp.h
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2015-06-10 18:21:18 -0700
committerStefan Hajnoczi <stefanha@redhat.com>2015-06-12 13:26:27 +0100
commit773495364ffbfc6a4d1e13e24e932f96409ba1d3 (patch)
tree87c67a778bea10f7a70a232d28dc45bbabbcec87 /hw/net/rocker/rocker_fp.h
parentf4d248bdc33167ab9e91b1470ef47a61dffd0b38 (diff)
rocker: Add support for phys name
Add ROCKER_TLV_CMD_PORT_SETTINGS_PHYS_NAME to port settings. This attribute exports the port name to the guest OS allowing it to name interfaces with sensible defaults. Mostly done by Scott for phys_id support; adapted to phys_name by David. Signed-off-by: Scott Feldman <sfeldma@gmail.com> Signed-off-by: David Ahern <dsahern@gmail.com> Message-id: 1433985681-56138-2-git-send-email-sfeldma@gmail.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/net/rocker/rocker_fp.h')
-rw-r--r--hw/net/rocker/rocker_fp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/net/rocker/rocker_fp.h b/hw/net/rocker/rocker_fp.h
index a5f28f120d..92a6861aec 100644
--- a/hw/net/rocker/rocker_fp.h
+++ b/hw/net/rocker/rocker_fp.h
@@ -26,6 +26,7 @@ typedef struct fp_port FpPort;
int fp_port_eg(FpPort *port, const struct iovec *iov, int iovcnt);
+char *fp_port_get_name(FpPort *port);
bool fp_port_get_link_up(FpPort *port);
void fp_port_get_macaddr(FpPort *port, MACAddr *macaddr);
void fp_port_set_macaddr(FpPort *port, MACAddr *macaddr);