On 04.08.2021 15:57, Stefano Garzarella wrote:
Caution: This is an external email. Be cautious while opening links or attachments.
Hi Arseny,
On Mon, Jul 26, 2021 at 07:31:33PM +0300, Arseny Krasnov wrote:
This patchset implements support of MSG_EOR bit for SEQPACKETOkay, so the implementation we merged is wrong right?
AF_VSOCK sockets over virtio transport.
Idea is to distinguish concepts of 'messages' and 'records'.
Message is result of sending calls: 'write()', 'send()', 'sendmsg()'
etc. It has fixed maximum length, and it bounds are visible using
return from receive calls: 'read()', 'recv()', 'recvmsg()' etc.
Current implementation based on message definition above.
Should we disable the feature bit in stable kernels that contain it? Or
maybe we can backport the fixes...
Hi,
No, this is correct and it is message boundary based. Idea of this
patchset is to add extra boundaries marker which i think could be
useful when we want to send data in seqpacket mode which length
is bigger than maximum message length(this is limited by transport).
Of course we can fragment big piece of data too small messages, but this
requires to carry fragmentation info in data protocol. So In this case
when we want to maintain boundaries receiver calls recvmsg() until MSG_EOR found.
But when receiver knows, that data is fit in maximum datagram length,
it doesn't care about checking MSG_EOR just calling recv() or read()(e.g.
message based mode).