]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: drop packet if status has valid tag
authorAlex Elder <elder@linaro.org>
Tue, 26 Jan 2021 18:57:00 +0000 (12:57 -0600)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Jan 2021 04:23:26 +0000 (20:23 -0800)
commit4de868f37963fb92af8c22e4bad39af5bb935179
tree72810c0dbe20c57b323020fec589bbee07b8f9d9
parent9537e72db0fa576b26cbec3737253a67625ee51b
net: ipa: drop packet if status has valid tag

Introduce ipa_endpoint_status_tag(), which returns true if received
status indicates its tag field is valid.  The endpoint parameter is
not yet used.

Call this from ipa_status_drop_packet(), and drop the packet if the
status indicates the tag was valid.  Pass the endpoint pointer to
ipa_status_drop_packet(), and rename it ipa_endpoint_status_drop().
The endpoint will be used in the next patch.

Signed-off-by: Alex Elder <elder@linaro.org>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_endpoint.c