RE: [PATCH net-next] tls: Add opt-in zerocopy mode of sendfile()
From: David Laight <hidden>
Date: 2022-05-04 09:49:22
From: David Laight <hidden>
Date: 2022-05-04 09:49:22
quoted
If you declare the union on the stack in the callers, and pass by value - is the compiler not going to be clever enough to still DDRT?Ah, OK, it should do the thing. I thought you wanted me to ditch the union altogether.
Some architectures always pass struct/union by address. Which is probably not what you had in mind. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)