Commit 0eff2ea
virtio-net: fix incorrect flags recording in big mode
The purpose of commit 703eec1 ("virtio_net: fixing XDP for fully
checksummed packets handling") is to record the flags in advance, as
their value may be overwritten in the XDP case. However, the flags
recorded under big mode are incorrect, because in big mode, the passed
buf does not point to the rx buffer, but rather to the page of the
submitted buffer. This commit fixes this issue.
For the small mode, the commit c11a49d ("virtio_net: Fix mismatched
buf address when unmapping for small packets") fixed it.
Tested-by: Alyssa Ross <hi@alyssa.is>
Fixes: 703eec1 ("virtio_net: fixing XDP for fully checksummed packets handling")
Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Link: https://patch.msgid.link/20251111090828.23186-1-xuanzhuo@linux.alibaba.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent fe82c4f commit 0eff2ea
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2631 | 2631 | | |
2632 | 2632 | | |
2633 | 2633 | | |
2634 | | - | |
| 2634 | + | |
| 2635 | + | |
2635 | 2636 | | |
2636 | 2637 | | |
2637 | 2638 | | |
2638 | 2639 | | |
2639 | 2640 | | |
2640 | 2641 | | |
2641 | | - | |
2642 | 2642 | | |
2643 | | - | |
| 2643 | + | |
| 2644 | + | |
2644 | 2645 | | |
2645 | 2646 | | |
2646 | | - | |
| 2647 | + | |
| 2648 | + | |
| 2649 | + | |
| 2650 | + | |
2647 | 2651 | | |
2648 | | - | |
| 2652 | + | |
| 2653 | + | |
2649 | 2654 | | |
| 2655 | + | |
2650 | 2656 | | |
2651 | 2657 | | |
2652 | 2658 | | |
| |||
0 commit comments