]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xdrgen: XDR width for union types
authorChuck Lever <chuck.lever@oracle.com>
Thu, 3 Oct 2024 18:54:44 +0000 (14:54 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 11 Nov 2024 18:42:05 +0000 (13:42 -0500)
commitce5a75d9939fab904d27b403011eddd2b173b495
tree2fef070da3093c332e87b9730a9aca0053334a7b
parent447dc1efebac1484d5903ba34655289e7725df6d
xdrgen: XDR width for union types

Not yet complete.

The tool doesn't do any math yet. Thus, even though the maximum XDR
width of a union is the width of the union enumerator plus the width
of its largest arm, we're using the sum of all the elements of the
union for the moment.

This means that buffer size requirements are overestimated, and that
the generated maxsize macro cannot yet be used for determining data
element alignment in the XDR buffer.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
tools/net/sunrpc/xdrgen/xdr_ast.py