]> git.itanic.dy.fi Git - linux-stable/commit
net: ipa: kill IPA_TABLE_ENTRY_SIZE
authorAlex Elder <elder@linaro.org>
Sun, 28 Mar 2021 17:31:11 +0000 (12:31 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:10:34 +0000 (11:10 +0200)
commit8c1454d5493b8f7ae3f377e5146855223e70cf18
tree41e765baec5528c296dd6ece49c3fc43b10b1717
parent53b1715e283e91e0230ea217a612ee6790607b43
net: ipa: kill IPA_TABLE_ENTRY_SIZE

[ Upstream commit 4ea29143ebe6c453f5fddc80ffe4ed046f44aa3a ]

Entries in an IPA route or filter table are 64-bit little-endian
addresses, each of which refers to a routing or filtering rule.

The format of these table slots are fixed, but IPA_TABLE_ENTRY_SIZE
is used to define their size.  This symbol doesn't really add value,
and I think it unnecessarily obscures what a table entry *is*.

So get rid of IPA_TABLE_ENTRY_SIZE, and just use sizeof(__le64) in
its place throughout the code.

Update the comments in "ipa_table.c" to provide a little better
explanation of these table slots.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: cf412ec33325 ("net: ipa: properly limit modem routing table use")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ipa/ipa_cmd.c
drivers/net/ipa/ipa_qmi.c
drivers/net/ipa/ipa_table.c
drivers/net/ipa/ipa_table.h