]> git.baikalelectronics.ru Git - kernel.git/commit
net: qrtr: Use sk_buff->cb in receive path
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 11 Oct 2017 06:45:22 +0000 (23:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Oct 2017 22:28:38 +0000 (15:28 -0700)
commitf30164d68345ed66a1f04fca63e3e397a1f0363b
tree23a9e232943d8be2e488a67e406133ab2230d438
parentc45c76d935cceb11847f9bfadfc346c47f0a242f
net: qrtr: Use sk_buff->cb in receive path

Rather than parsing the header of incoming messages throughout the
implementation do it once when we retrieve the message and store the
relevant information in the "cb" member of the sk_buff.

This allows us to, in a later commit, decode version 2 messages into
this same structure.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/qrtr/qrtr.c