aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_common.c
diff options
context:
space:
mode:
authorVladimir Oltean <[email protected]>2024-12-10 20:27:10 +0000
committerJakub Kicinski <[email protected]>2024-12-12 04:12:59 +0000
commitc4117091d029087abde76e6947d43dca8f1db20b (patch)
tree2f023638b28f29618d836a5f4561d32a63f34919 /drivers/net/ethernet/intel/ice/ice_common.c
parentisdn: Remove unused get_Bprotocol4id() (diff)
downloadkernel-c4117091d029087abde76e6947d43dca8f1db20b.tar.gz
kernel-c4117091d029087abde76e6947d43dca8f1db20b.zip
lib: packing: create __pack() and __unpack() variants without error checking
A future variant of the API, which works on arrays of packed_field structures, will make most of these checks redundant. The idea will be that we want to perform sanity checks at compile time, not once for every function call. Introduce new variants of pack() and unpack(), which elide the sanity checks, assuming that the input was pre-sanitized. Signed-off-by: Vladimir Oltean <[email protected]> Signed-off-by: Jacob Keller <[email protected]> Reviewed-by: Vladimir Oltean <[email protected]> Link: https://patch.msgid.link/20241210-packing-pack-fields-and-ice-implementation-v10-1-ee56a47479ac@intel.com Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_common.c')
0 files changed, 0 insertions, 0 deletions