virtio-net: use the check_mergeable_len helper
authorBui Quang Minh <minhquangbui99@gmail.com>
Mon, 30 Jun 2025 14:42:12 +0000 (21:42 +0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 3 Jul 2025 08:56:55 +0000 (10:56 +0200)
commit7d4a119e45828e643baedea2d2ac736804bc85ee
tree0fbfc5015389c790985378be55574b37afdbcea6
parent4be2193b3393dca33504793fe7586fed547abb5d
virtio-net: use the check_mergeable_len helper

Replace the current repeated code to check received length in mergeable
mode with the new check_mergeable_len helper.

Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Link: https://patch.msgid.link/20250630144212.48471-4-minhquangbui99@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/virtio_net.c