From: Thomas Huth <thuth@redhat.com>
To: dave@treblig.org, jiri@resnulli.us, jasowang@redhat.com,
qemu-devel@nongnu.org, QEMU Trivial <qemu-trivial@nongnu.org>
Subject: Re: [PATCH] hw/net/rocker: Remove unused rocker_fp_ports
Date: Wed, 2 Oct 2024 12:43:08 +0200 [thread overview]
Message-ID: <03a317f1-1868-4a45-96f6-5797478a22da@redhat.com> (raw)
In-Reply-To: <20240918231447.458796-1-dave@treblig.org>
On 19/09/2024 01.14, dave@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <dave@treblig.org>
>
> rocker_fp_ports hasn't been used since it was added back in 2015.
> Remove it.
>
> Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
> ---
> hw/net/rocker/rocker.c | 5 -----
> hw/net/rocker/rocker.h | 1 -
> 2 files changed, 6 deletions(-)
>
> diff --git a/hw/net/rocker/rocker.c b/hw/net/rocker/rocker.c
> index 1ab5852113..5e74acc969 100644
> --- a/hw/net/rocker/rocker.c
> +++ b/hw/net/rocker/rocker.c
> @@ -134,11 +134,6 @@ RockerPortList *qmp_query_rocker_ports(const char *name, Error **errp)
> return list;
> }
>
> -uint32_t rocker_fp_ports(Rocker *r)
> -{
> - return r->fp_ports;
> -}
> -
> static uint32_t rocker_get_pport_by_tx_ring(Rocker *r,
> DescRing *ring)
> {
> diff --git a/hw/net/rocker/rocker.h b/hw/net/rocker/rocker.h
> index f85354d9d1..6e0962f47a 100644
> --- a/hw/net/rocker/rocker.h
> +++ b/hw/net/rocker/rocker.h
> @@ -72,7 +72,6 @@ DECLARE_INSTANCE_CHECKER(Rocker, ROCKER,
> TYPE_ROCKER)
>
> Rocker *rocker_find(const char *name);
> -uint32_t rocker_fp_ports(Rocker *r);
> int rocker_event_link_changed(Rocker *r, uint32_t pport, bool link_up);
> int rocker_event_mac_vlan_seen(Rocker *r, uint32_t pport, uint8_t *addr,
> uint16_t vlan_id);
Reviewed-by: Thomas Huth <thuth@redhat.com>
next prev parent reply other threads:[~2024-10-02 10:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-18 23:14 [PATCH] hw/net/rocker: Remove unused rocker_fp_ports dave
2024-10-02 10:43 ` Thomas Huth [this message]
2024-10-09 8:32 ` Jason Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=03a317f1-1868-4a45-96f6-5797478a22da@redhat.com \
--to=thuth@redhat.com \
--cc=dave@treblig.org \
--cc=jasowang@redhat.com \
--cc=jiri@resnulli.us \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).