mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* IPA_STATUS_SIZE, commit b8dc7d0eea5a7709bb534f1b3ca70d2d7de0b42c
@ 2023-05-12 13:04 Bert Karwatzki
  2023-05-17 21:35 ` Alex Elder
  0 siblings, 1 reply; 4+ messages in thread
From: Bert Karwatzki @ 2023-05-12 13:04 UTC (permalink / raw)
  To: linux-kernel; +Cc: Alex Elder

commit b8dc7d0eea5a7709bb534f1b3ca70d2d7de0b42c
Author: Alex Elder <elder@linaro.org>
Date:   Wed Jan 25 14:45:39 2023 -0600

    net: ipa: stop using sizeof(status)
    
    The IPA packet status structure changes in IPA v5.0 in ways that
are
    difficult to represent cleanly.  As a small step toward redefining
    it as a parsed block of data, use a constant to define its size,
    rather than the size of the IPA status structure type.
    
    Signed-off-by: Alex Elder <elder@linaro.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>

introduced the IPA_STATUS_SIZE constant as a replacent for
sizeof(struct ipa_status). IPA_STATUS_SIZE is defined as
sizeof(__le32[4]), but sizeof(struct ipa_status) = sizeof(__le32[8])
and the newly introducded ipa_status_extract operates on 8 __le32
words, so I wondered if IPA_STATUS_SIZE is correct.

Bert Karwatzki

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-05-26 12:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-12 13:04 IPA_STATUS_SIZE, commit b8dc7d0eea5a7709bb534f1b3ca70d2d7de0b42c Bert Karwatzki
2023-05-17 21:35 ` Alex Elder
2023-05-18 22:12   ` Bert Karwatzki
2023-05-26 12:29     ` Alex Elder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®