mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
net: move compute_mcast_idx() to net.h
Reduce duplicated codes. Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
afe0a59535
commit
7fc8d918b9
6 changed files with 26 additions and 98 deletions
3
net.h
3
net.h
|
@ -182,6 +182,9 @@ void qdev_set_nic_properties(DeviceState *dev, NICInfo *nd);
|
|||
|
||||
int net_handle_fd_param(Monitor *mon, const char *param);
|
||||
|
||||
#define POLYNOMIAL 0x04c11db6
|
||||
unsigned compute_mcast_idx(const uint8_t *ep);
|
||||
|
||||
#define vmstate_offset_macaddr(_state, _field) \
|
||||
vmstate_offset_array(_state, _field.a, uint8_t, \
|
||||
sizeof(typeof_field(_state, _field)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue