diff options
| author | Michael S. Tsirkin <mst@redhat.com> | 2025-10-31 09:05:51 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-11-13 23:37:47 +0300 |
| commit | 1f05ead877ff383e59c7952f4ab705fcb5eefd6e (patch) | |
| tree | 0a71a161576eb6f77ed13771edc9f27217753d5e /scripts/gdb/linux/utils.py | |
| parent | 3e9d89f2ecd3636bd4cbdfd0b2dfdaf58f9882e2 (diff) | |
| download | linux-1f05ead877ff383e59c7952f4ab705fcb5eefd6e.tar.xz | |
virtio_net: fix alignment for virtio_net_hdr_v1_hash
commit c3838262b824c71c145cd3668722e99a69bc9cd9 upstream.
Changing alignment of header would mean it's no longer safe to cast a
2 byte aligned pointer between formats. Use two 16 bit fields to make
it 2 byte aligned as previously.
This fixes the performance regression since
commit ("virtio_net: enable gso over UDP tunnel support.") as it uses
virtio_net_hdr_v1_hash_tunnel which embeds
virtio_net_hdr_v1_hash. Pktgen in guest + XDP_DROP on TAP + vhost_net
shows the TX PPS is recovered from 2.4Mpps to 4.45Mpps.
Fixes: 56a06bd40fab ("virtio_net: enable gso over UDP tunnel support.")
Cc: stable@vger.kernel.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Tested-by: Lei Yang <leiyang@redhat.com>
Link: https://patch.msgid.link/20251031060551.126-1-jasowang@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions
