]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7e74abb11d91511ae4889a448b4746e76ec7eb24
treeb82730e9b5453e7527ca4bdb8d1f1884fc316d33
parentd8e2216cc8ac81b146e19e5deb261852cb02b794
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