[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120928.031027.963540575540777486.davem@davemloft.net>
Date: Fri, 28 Sep 2012 03:10:27 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: Sathya.Perla@...lex.Com
Cc: netdev@...r.kernel.org
Subject: Re: [net-next PATCH 4/5] be2net: get rid of AMAP_SET/GET macros in
TX path
From: "Perla, Sathya" <Sathya.Perla@...lex.Com>
Date: Fri, 28 Sep 2012 07:05:27 +0000
>>-----Original Message-----
>>From: David Miller [mailto:davem@...emloft.net]
>>
>>> endianness is handled even in this patch. The call to wrb_fill_hdr()
>>> is followed by be_dws_cpu_to_le() to handle this.
>>
>>That swap_dws() thing is the most inefficient thing I've ever seen.
>>
>>Instead of being able to benefit from compile time optimizations
>>such as byte swaps of constants, you do everything hidden from the
>>compiler so nothing gets optimized.
>
> I'd like to clarify that swap_dws() was being used/needed even in
> the old code.
I fully understand this.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists