]> git.baikalelectronics.ru Git - kernel.git/commit
net: bpf: Use the protocol's set_rcvlowat behavior if there is one
authorGao Feng <gfree.wind@gmail.com>
Thu, 4 Aug 2022 15:04:21 +0000 (23:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Aug 2022 08:45:14 +0000 (09:45 +0100)
commit76e97eb6c5a45d4499ca9d45d89230a678bda6f7
tree267ec77064f655727c6504ce6c89c9e396d8d9f4
parentf921c33bcec5922db133b960b21a82f89afe67c9
net: bpf: Use the protocol's set_rcvlowat behavior if there is one

The commit 5c4e6e4923c1 ("tcp: fix SO_RCVLOWAT and RCVBUF autotuning")
add one new (struct proto_ops)->set_rcvlowat method so that a protocol
can override the default setsockopt(SO_RCVLOWAT) behavior.

The prior bpf codes don't check and invoke the protos's set_rcvlowat,
now correct it.

Signed-off-by: Gao Feng <gfree.wind@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/filter.c