[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [PATCH v2 2/2] virtio-net: Clarify the size of the struct virtio_net_hdr for tx
> From: Xuan Zhuo <xuanzhuo@linux.alibaba.com> > Sent: Tuesday, January 16, 2024 9:05 AM > > On Mon, 15 Jan 2024 11:31:41 +0200, Parav Pandit <parav@nvidia.com> > wrote: > > The feature VIRTIO_NET_F_HASH_REPORT only applies to the receive side. > > However, when VIRTIO_NET_F_HASH_REPORT feature was introduced, it > was > > not clarified that the size of the struct virtio_net_hdr on the packet > > transmission also uses higher size when VIRTIO_NET_F_HASH_REPORT is > > negotiated. > > > > Explicitly clarify this. > > > > Fixes: https://github.com/oasis-tcs/virtio-spec/issues/183 > > Signed-off-by: Parav Pandit <parav@nvidia.com> > > > > --- > > changelog: > > v0->v1: > > - addressed comments from Xuan to rewrite tx normative > > --- > > device-types/net/description.tex | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/device-types/net/description.tex > > b/device-types/net/description.tex > > index 53a56ee..e2de016 100644 > > --- a/device-types/net/description.tex > > +++ b/device-types/net/description.tex > > @@ -528,6 +528,9 @@ \subsubsection{Packet > > Transmission}\label{sec:Device Types / Network Device / De > > > > \drivernormative{\paragraph}{Packet Transmission}{Device Types / > > Network Device / Device Operation / Packet Transmission} > > > > +The driver MUST use the same size of the field \field{struct > > +virtio_net_hdr} for transmit and receive packet buffers. > > s/field/structure/ ? > Ok. will change in v3. > Thanks. > > > > + > > The driver MUST set \field{num_buffers} to zero. > > > > If VIRTIO_NET_F_CSUM is not negotiated, the driver MUST set > > -- > > 2.34.1 > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]