]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: refactor function filter_rcv()
authorJon Maloy <jon.maloy@ericsson.com>
Fri, 13 Oct 2017 09:04:20 +0000 (11:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Oct 2017 15:46:00 +0000 (08:46 -0700)
commit17b536c14c071d051073bfcb675171529e053d8d
tree4dd4044eb9df39cd26904a6c328b41d989b5414d
parentdf9d67c1ba73bb0ddbe27e0c1a7b3a32015cb179
tipc: refactor function filter_rcv()

In the following commits we will need to handle multiple incoming and
rejected/returned buffers in the function socket.c::filter_rcv().
As a preparation for this, we generalize the function by handling
buffer queues instead of individual buffers. We also introduce a
help function tipc_skb_reject(), and rename filter_rcv() to
tipc_sk_filter_rcv() in line with other functions in socket.c.

Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/msg.c
net/tipc/msg.h
net/tipc/socket.c