From d9caeb09b107e91122d10ba4a08a4af2b59c69cf Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Fri, 15 Dec 2017 18:41:55 +0000 Subject: [PATCH] net: remove unused compute_mcast_idx() function Now that all of the callers have been converted to compute the multicast index inline using new net CRC functions, this function can now be dropped. Signed-off-by: Mark Cave-Ayland Signed-off-by: Jason Wang --- net/net.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/net/net.c b/net/net.c index 4ecaf80bd1..5bc0a343ae 100644 --- a/net/net.c +++ b/net/net.c @@ -1625,11 +1625,6 @@ uint32_t net_crc32_le(const uint8_t *p, int len) return crc; } -unsigned compute_mcast_idx(const uint8_t *ep) -{ - return net_crc32(ep, ETH_ALEN) >> 26; -} - QemuOptsList qemu_netdev_opts = { .name = "netdev", .implied_opt_name = "type",