diff options
author | Larysa Zaremba <larysa.zaremba@intel.com> | 2023-12-05 22:08:32 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-12-13 16:16:40 -0800 |
commit | 6b62a42149032db305dfd687d7118aa870b4a2f9 (patch) | |
tree | d7340b3f09163f7ac5dcb457e0465e14ff70fbb6 /drivers/net/ethernet/intel/ice/ice_main.c | |
parent | 3310aad20defb96eaf363ab2643e876a6275c72b (diff) |
ice: Make ptype internal to descriptor info processing
Currently, rx_ptype variable is used only as an argument
to ice_process_skb_fields() and is computed
just before the function call.
Therefore, there is no reason to pass this value as an argument.
Instead, remove this argument and compute the value directly inside
ice_process_skb_fields() function.
Also, separate its calculation into a short function, so the code
can later be reused in .xmo_() callbacks.
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Larysa Zaremba <larysa.zaremba@intel.com>
Link: https://lore.kernel.org/r/20231205210847.28460-4-larysa.zaremba@intel.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
0 files changed, 0 insertions, 0 deletions