aboutsummaryrefslogtreecommitdiff
path: root/hw/net/virtio-net.c
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2023-05-23 11:42:54 +0900
committerJason Wang <jasowang@redhat.com>2023-05-23 15:20:15 +0800
commitf3f9b726afba1f53663768603189e574f80b5907 (patch)
tree2456a6da87c01c6702a73385db16c2dbcca2bec5 /hw/net/virtio-net.c
parenta51db5802744b274ab40385dd9fe8354722fcc4d (diff)
downloadqemu-f3f9b726afba1f53663768603189e574f80b5907.zip
qemu-f3f9b726afba1f53663768603189e574f80b5907.tar.gz
qemu-f3f9b726afba1f53663768603189e574f80b5907.tar.bz2
e1000x: Fix BPRC and MPRC
Before this change, e1000 and the common code updated BPRC and MPRC depending on the matched filter, but e1000e and igb decided to update those counters by deriving the packet type independently. This inconsistency caused a multicast packet to be counted twice. Updating BPRC and MPRC depending on are fundamentally flawed anyway as a filter can be used for different types of packets. For example, it is possible to filter broadcast packets with MTA. Always determine what counters to update by inspecting the packets. Fixes: 3b27430177 ("e1000: Implementing various counters") Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Reviewed-by: Sriram Yagnaraman <sriram.yagnaraman@est.tech> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions