]> 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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Mar 2021 01:12:03 +0000 (18:12 -0700)
commit4ea29143ebe6c453f5fddc80ffe4ed046f44aa3a
treefc26c4ae4139e72f5fd5b3d05f69d28120ab6db5
parent19aaf72c0c7a26ab7ffc655a6d84da6a379f899b
net: ipa: kill IPA_TABLE_ENTRY_SIZE

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>
drivers/net/ipa/ipa_cmd.c
drivers/net/ipa/ipa_qmi.c
drivers/net/ipa/ipa_table.c
drivers/net/ipa/ipa_table.h