]> 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)
commit2b336b1a1739e8a3e43645ebcb8f7422106f3b98
treeb82730e9b5453e7527ca4bdb8d1f1884fc316d33
parent969ba1f9c87067099e12928f952845218b6afa46
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