On Wed, 28 Feb 2024 20:04:55 +1100
David Gibson
On Wed, Feb 28, 2024 at 07:24:10AM +0100, Stefano Brivio wrote:
On Wed, 28 Feb 2024 11:44:28 +1100 David Gibson
wrote: On Tue, Feb 27, 2024 at 03:25:51PM +0100, Stefano Brivio wrote:
On Thu, 22 Feb 2024 16:55:59 +1100 David Gibson
wrote: [...]
+ + if (skip)
Curly brackets here for consistency (undecided about readability to be honest).
Uh.. consistency with what? We don't typically brace single line clauses in passt.
+ rc = write(fd, (char *)iov[i].iov_base + skip, + iov[i].iov_len - skip);
These are two lines though. I've been trying to keep this consistent with the Linux kernel's net/ and drivers/net/ style, where curly braces are used for multiple lines, even if it's a single statement.
Ah, fair enough. It never occurred to me to consider physical lines rather than logical lines.
Adjust and merge if you want, otherwise I'll respin with this change tomorrow.
Sure, let me adjust this on merge. I'm still reviewing the rest. -- Stefano