Re: [PATCH net-next v2 05/10] lib: packing: duplicate pack() and unpack() implementations

From
Vladimir Oltean <vladimir.oltean@nxp.com>
Date
2024-10-03 15:12:04
Reply to
Jacob Keller, 2024-10-02
On Wed, Oct 02, 2024 at 02:51:54PM -0700, Jacob Keller wrote:
From: Vladimir Oltean <vladimir.oltean@nxp.com>

packing() is now used in some hot paths, and it would be good to get rid
of some ifs and buts that depend on "op", to speed things up a little bit.

With the main implementations now taking size_t endbit, we no longer
have to check for negative values. Update the local integer variables to
also be size_t to match.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
---
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Thread (21 messages) 21 messages, 3 authors, last reply 2024-10-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help