net/9p: distinguish zero-copy requests
authorChristian Schoenebeck <linux_oss@crudebyte.com>
Tue, 22 Nov 2022 19:20:22 +0000 (20:20 +0100)
committerDominique Martinet <asmadeus@codewreck.org>
Mon, 5 Dec 2022 22:30:55 +0000 (07:30 +0900)
commit8e4c2eee1e15c1206c26f6b28b05fe9711a427c6
tree1a31c7e069db25fc2cb009d2283365ef2992529b
parentf15e006b831384aaec4b4f13265c0dff88ef09dd
net/9p: distinguish zero-copy requests

Add boolean `zc` member to struct p9_fcall to distinguish zero-copy
messages (not using the linear `sdata` buffer for message payload) from
regular messages (which do copy message payload to `sdata` before being
further processed).

This new member is appended to end of structure to avoid inserting huge
padding in generated layout.

Link: https://lkml.kernel.org/r/8f2a5c12a446c3b544da64e0b1550e1fb2d6f972.1669144861.git.linux_oss@crudebyte.com
Signed-off-by: Christian Schoenebeck <linux_oss@crudebyte.com>
Tested-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
include/net/9p/9p.h
net/9p/client.c