RE: [PATCH] virtio-net: clarify guest offloads <> features mapping

Parav Pandit <[email protected]>
Newsgroups dev.linux.lists.virtio-comment
Message-ID <CY8PR12MB7195A1C9610E8DB145910AC6DC9FA@CY8PR12MB7195.namprd12.prod.outlook.com>
> From: Paolo Abeni <[email protected]>
> Sent: Tuesday, May 20, 2025 12:14 PM
> 
> On 5/19/25 5:12 PM, Parav Pandit wrote:
> >> From: Paolo Abeni <[email protected]>
> >> Sent: Monday, May 19, 2025 3:42 PM
> >>
> >> The guest offloads, as specified by 'Setting Offloads State,' use a
> >> 64-bit wide space, while some of the corresponding virtio net
> >> features are in the upper 64 bits of a 128-bit wide space.
> >>
> >> Clarify the relevant mapping as somewhat implied by the current text.
> >> Also rename the offload definitions to avoid referring to different
> >> numeric values with the same name in the features table and in the offload
> table.
> >>
> >> Signed-off-by: Paolo Abeni <[email protected]>
> >> ---
> >>  device-types/net/description.tex | 7 +++++--
> >>  1 file changed, 5 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/device-types/net/description.tex b/device-
> >> types/net/description.tex index 1b6b54d..8c501bc 100644
> >> --- a/device-types/net/description.tex
> >> +++ b/device-types/net/description.tex
> >> @@ -2186,8 +2186,8 @@ \subsubsection{Control
> >> Virtqueue}\label{sec:Device Types / Network Device / Devi
> >>  #define VIRTIO_NET_F_GUEST_TSO6       8
> >>  #define VIRTIO_NET_F_GUEST_ECN        9
> >>  #define VIRTIO_NET_F_GUEST_UFO        10
> >> -#define VIRTIO_NET_F_GUEST_UDP_TUNNEL_GSO  46 -#define
> >> VIRTIO_NET_F_GUEST_UDP_TUNNEL_GSO_CSUM 47
> >> +#define VIRTIO_NET_F_GUEST_UDP_TUNNEL_GSO_MAPPED  46 #define
> >> +VIRTIO_NET_F_GUEST_UDP_TUNNEL_GSO_CSUM_MAPPED 47
> > Since the offload command is defined only for the rx side, in the below 'Note'
> should it be only 65-66 map to 46-47?
> 
> Fine by me. I'll wait a bit before sending a v2 to conclude the ongoing
> discussion with Jason.
> 
Ok. thanks.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.