mirror of https://github.com/xqemu/xqemu.git
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 <mark.cave-ayland@ilande.co.uk> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
e7a58fc71c
commit
d9caeb09b1
|
@ -1625,11 +1625,6 @@ uint32_t net_crc32_le(const uint8_t *p, int len)
|
||||||
return crc;
|
return crc;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned compute_mcast_idx(const uint8_t *ep)
|
|
||||||
{
|
|
||||||
return net_crc32(ep, ETH_ALEN) >> 26;
|
|
||||||
}
|
|
||||||
|
|
||||||
QemuOptsList qemu_netdev_opts = {
|
QemuOptsList qemu_netdev_opts = {
|
||||||
.name = "netdev",
|
.name = "netdev",
|
||||||
.implied_opt_name = "type",
|
.implied_opt_name = "type",
|
||||||
|
|
Loading…
Reference in New Issue