]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'sock-cookie-initializers'
authorDavid S. Miller <davem@davemloft.net>
Sat, 7 Jul 2018 01:58:50 +0000 (10:58 +0900)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Jul 2018 01:58:50 +0000 (10:58 +0900)
commitfbc2fa9b6517329550e50be6ddb6a0ad509f99ec
tree9ab9ed3c9a6a5018df2faec2dab0b896aacd3bca
parentf9498a019763166a4d4d288af3b1580c20d4b73c
parent96ef7fd42f830b6e885188a7d5293bc150253df8
Merge branch 'sock-cookie-initializers'

Willem de Bruijn says:

====================
sock cookie initializers

Recent UDP GSO and SO_TXTIME features added new fields to cookie
structs.

When adding a field, all sites where a struct is initialized have to
be updated, which is a lot of boilerplate. Alternatively, a field can
be initialized selectively, but this is fragile. I introduced a bug
in udp gso where an uninitialized field was read. See also fix commit
("b33e8f119540 ip: limit use of gso_size to udp").

Introduce initializers for structs ipcm(6)_cookie and sockc_cookie.

patch 1..3 do exactly this.
patch 4..5 make ipv4 and ipv6 handle cookies the same way and
           remove some boilerplate in doing so.
patch 6    removes the udp gso branch that needed the above fix
====================

Signed-off-by: David S. Miller <davem@davemloft.net>