aboutsummaryrefslogtreecommitdiff
path: root/hw/net/rocker/rocker_fp.h
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2020-11-12 19:13:35 -0600
committerMarkus Armbruster <armbru@redhat.com>2020-12-19 10:14:52 +0100
commitfe4d7e338faf7809024017e373b15dd8ac82094d (patch)
tree5885c2111d56d59d6ed0f2268dae1c188d7aa5db /hw/net/rocker/rocker_fp.h
parenta05f8ecd88f15273d033b6f044b850a8af84a5b8 (diff)
rocker: Revamp fp_port_get_info
Instead of modifying the value member of a list element passed as a parameter, and open-coding the manipulation of that list, it's nicer to just return a freshly allocated value to be prepended to a list using QAPI_LIST_PREPEND. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <20201113011340.463563-3-eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'hw/net/rocker/rocker_fp.h')
-rw-r--r--hw/net/rocker/rocker_fp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/rocker/rocker_fp.h b/hw/net/rocker/rocker_fp.h
index dbe1dd329a..7ff57aac01 100644
--- a/hw/net/rocker/rocker_fp.h
+++ b/hw/net/rocker/rocker_fp.h
@@ -28,7 +28,7 @@ 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_info(FpPort *port, RockerPortList *info);
+RockerPort *fp_port_get_info(FpPort *port);
void fp_port_get_macaddr(FpPort *port, MACAddr *macaddr);
void fp_port_set_macaddr(FpPort *port, MACAddr *macaddr);
uint8_t fp_port_get_learning(FpPort *port);