]> 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)
commit582b5252efac5756b26657986c0068ab574285bb
tree72810c0dbe20c57b323020fec589bbee07b8f9d9
parent023743a4b427eb414a2ee91b454f8a69690b9c54
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