]> 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)
commitbea6605613b4827d7639f9e82bdd2636559b22ad
tree23a9e232943d8be2e488a67e406133ab2230d438
parentf9ffe01833e657bd51c19f9a759d1a043137426c
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