diff mbox series

[PULL,15/18] net: remove unused compute_mcast_idx() function

Message ID 1513908937-16034-16-git-send-email-jasowang@redhat.com
State New
Headers show
Series [PULL,01/18] e1000, e1000e: Move per-packet TX offload flags out of context state | expand

Commit Message

Jason Wang Dec. 22, 2017, 2:15 a.m. UTC
From: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>

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 <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
 net/net.c | 5 -----
 1 file changed, 5 deletions(-)
diff mbox series

Patch

diff --git a/net/net.c b/net/net.c
index 4ecaf80..5bc0a34 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",