netfilter: nfnetlink: Handle ACK flags for batch messages
authorDonald Hunter <donald.hunter@gmail.com>
Thu, 18 Apr 2024 10:47:37 +0000 (11:47 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 23 Apr 2024 00:20:42 +0000 (17:20 -0700)
commitbf2ac490d28c21a349e9eef81edc45320fca4a3c
tree09702751cd4aafe13792b87adc32bcd4217ad755
parentba8be00f68f5c70eb1df2193251a579923bd9501
netfilter: nfnetlink: Handle ACK flags for batch messages

The NLM_F_ACK flag is ignored for nfnetlink batch begin and end
messages. This is a problem for ynl which wants to receive an ack for
every message it sends, not just the commands in between the begin/end
messages.

Add processing for ACKs for begin/end messages and provide responses
when requested.

I have checked that iproute2, pyroute2 and systemd are unaffected by
this change since none of them use NLM_F_ACK for batch begin/end.

Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20240418104737.77914-5-donald.hunter@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/netfilter/nfnetlink.c