mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bert Karwatzki <spasswolf@web.de>
To: linux-kernel@vger.kernel.org
Cc: Alex Elder <elder@linaro.org>
Subject: IPA_STATUS_SIZE, commit b8dc7d0eea5a7709bb534f1b3ca70d2d7de0b42c
Date: Fri, 12 May 2023 15:04:00 +0200	[thread overview]
Message-ID: <8a1beef0bc605756f8a45acf86f6bb58c188ae21.camel@web.de> (raw)

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

             reply	other threads:[~2023-05-12 13:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-12 13:04 Bert Karwatzki [this message]
2023-05-17 21:35 ` Alex Elder
2023-05-18 22:12   ` Bert Karwatzki
2023-05-26 12:29     ` Alex Elder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8a1beef0bc605756f8a45acf86f6bb58c188ae21.camel@web.de \
    --to=spasswolf@web.de \
    --cc=elder@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®