OSDN Git Service

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)
commitf6aba7b5199ad2a73a3deb6c042dee770650719c
tree72810c0dbe20c57b323020fec589bbee07b8f9d9
parent162fbc6f4519f9b083fbd96b60d908c78a9c87f6
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