From: Mike Christie <michaelc@cs.wisc.edu>
To: Joe Eykholt <jeykholt@cisco.com>
Cc: Rob Evers <revers@redhat.com>, Jing Huang <huangj@brocade.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH 3/6] bfa: remove os wrapper functions and macros
Date: Wed, 20 Oct 2010 18:50:58 -0500 [thread overview]
Message-ID: <4CBF8062.9010609@cs.wisc.edu> (raw)
In-Reply-To: <4CBF7569.90708@cisco.com>
On 10/20/2010 06:04 PM, Joe Eykholt wrote:
>>>> #ifndef __BIGENDIAN
>>>> -#define bfa_os_hton3b(_x) bfa_swap_3b(_x)
>>>> +#define bfa_os_hton3b(_x) bfa_swap_3b(_x)
>>>
>>> Should bfa_os_hton3b and related functionality be relocated
>>> appropriately and implemented in common form to the other common byte
>>> swapping code?
>>>
>>
>> Yes. I think intel was working on that for fcoe. Someone should dig up the patches and finish pushing.
>
> It's in<scsi/fc_frame.h> as hton24() / ntoh24(). It's written in
> an endian-independent way. I don't know of patches to move them to
> a better place.
iscsi and some other code has it too. Chris Leech was working on it in
this patchset "24-bit types: typedef and functions for accessing 3-byte
arrays as integers". I think this was the latest:
http://www.mail-archive.com/jfs-discussion@lists.sourceforge.net/msg01330.html
next prev parent reply other threads:[~2010-10-20 23:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-19 0:12 [PATCH 3/6] bfa: remove os wrapper functions and macros Jing Huang
2010-10-20 15:25 ` Rob Evers
2010-10-20 22:16 ` Mike Christie
2010-10-20 23:04 ` Joe Eykholt
2010-10-20 23:16 ` Jing Huang
2010-10-20 23:50 ` Mike Christie [this message]
2010-10-20 23:48 ` Jing Huang
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=4CBF8062.9010609@cs.wisc.edu \
--to=michaelc@cs.wisc.edu \
--cc=huangj@brocade.com \
--cc=jeykholt@cisco.com \
--cc=linux-scsi@vger.kernel.org \
--cc=revers@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.