On Thu, Jun 11, 2026 at 08:34:12PM +0800, Jiayuan Chen wrote:
> @@ -2794,6 +2835,8 @@ BPF_CALL_4(bpf_msg_push_data, struct sk_msg *, msg,
> u32, start,
> {
> struct scatterlist sge, nsge, nnsge, rsge = {0}, *psge;
> u32 new, i = 0, l = 0, space, copy = 0, offset = 0;
> + bool sge_copy = false, nsge_copy = false, nnsge_copy = false;
Reverse xmas tree style is preferred by netdev, see
Documentation/process/maintainer-netdev.rst
> BPF_CALL_4(bpf_msg_pop_data, struct sk_msg *, msg, u32, start,
> @@ -3027,8 +3098,10 @@ BPF_CALL_4(bpf_msg_pop_data, struct sk_msg *, msg,
> u32, start,
> */
> if (start != offset) {
> struct scatterlist *nsge, *sge = sk_msg_elem(msg, i);
> + u32 sge_idx = i;
> int a = start - offset;
> int b = sge->length - pop - a;
> + bool sge_copy = sk_msg_elem_is_copy(msg, sge_idx);
Ditto
Thanks,
Cong