As discussed in http://lore.kernel.org/all/20250919013450.111424-1-xuanz...@linux.alibaba.com Commit #1 Move the flags into the existing if condition; the issue is that it introduces a small amount of code duplication.
Commit #2 is new. Xuan Zhuo (2): virtio-net: fix incorrect flags recording in big mode virtio-net: correct hdr_len handling for VIRTIO_NET_F_GUEST_HDRLEN drivers/net/virtio_net.c | 16 +++++++++++----- include/linux/virtio_net.h | 19 ++++++++++++------- 2 files changed, 23 insertions(+), 12 deletions(-) -- 2.32.0.3.g01195cf9f