net: ipa: zero unused portions of filter table memory
authorAlex Elder <elder@linaro.org>
Wed, 24 Nov 2021 20:25:06 +0000 (14:25 -0600)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Nov 2021 03:37:33 +0000 (19:37 -0800)
commitdc901505fd9820e2428dabb38f5c700d195ce2d3
treeb82730e9b5453e7527ca4bdb8d1f1884fc316d33
parent76b5fbcd6b47e5c96daf4ae58a74613f3e0c58a7
net: ipa: zero unused portions of filter table memory

Not all filter table entries are used.  Only certain endpoints
support filtering, and the table begins with a bitmap indicating
which endpoints use the "slots" that follow for filter rules.

Currently, unused filter table entries are not initialized.
Instead, zero-fill the entire unused portion of the filter table
memory regions, to make it more obvious that memory is unused (and
not subsequently modified).

This is not strictly necessary, but the result is reassuring when
looking at filter table memory.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_table.c