> -----Original Message-----
> From: Intel-wired-lan <[email protected]> On Behalf Of
> Ahmed Zaki
> Sent: Monday, May 27, 2024 8:58 PM
> To: [email protected]
> Cc: [email protected]; Zaki, Ahmed <[email protected]>; Marcin
> Szycik <[email protected]>; Nguyen, Anthony L
> <[email protected]>; Keller, Jacob E <[email protected]>; Guo,
> Junfeng <[email protected]>
> Subject: [Intel-wired-lan] [PATCH iwl-next v2 07/13] ice: add UDP tunnels 
> support
> to the parser
> 
> From: Junfeng Guo <[email protected]>
> 
> Add support for the vxlan, geneve, ecpri UDP tunnels through the following 
> APIs:
> - ice_parser_vxlan_tunnel_set()
> - ice_parser_geneve_tunnel_set()
> - ice_parser_ecpri_tunnel_set()
> 
> Reviewed-by: Marcin Szycik <[email protected]>
> Signed-off-by: Qi Zhang <[email protected]>
> Signed-off-by: Junfeng Guo <[email protected]>
> Signed-off-by: Ahmed Zaki <[email protected]>
> ---
>  drivers/net/ethernet/intel/ice/ice_parser.c | 92 +++++++++++++++++++++
> drivers/net/ethernet/intel/ice/ice_parser.h | 13 +++
>  2 files changed, 105 insertions(+)
> 
> diff --git a/drivers/net/ethernet/intel/ice/ice_parser.c
> b/drivers/net/ethernet/intel/ice/ice_parser.c
> index c490bff94355..6a0d5f720af0 100644
> --- a/drivers/net/ethernet/intel/ice/ice_parser.c
> +++ b/drivers/net/ethernet/intel/ice/ice_parser.c
> @@ -1373,6 +1373,12 @@ static void ice_parse_lbl_item(struct ice_hw *hw, u16
> idx, void *item,
>               lbl_item->type = ICE_LBL_BST_TYPE_DVM;
>       else if (strstarts(lbl_item->label, ICE_LBL_BST_SVM))
>               lbl_item->type = ICE_LBL_BST_TYPE_SVM;
> +     else if (strstarts(lbl_item->label, ICE_LBL_TNL_VXLAN))
> +             lbl_item->type = ICE_LBL_BST_TYPE_VXLAN;
> +     else if (strstarts(lbl_item->label, ICE_LBL_TNL_GENEVE))
> +             lbl_item->type = ICE_LBL_BST_TYPE_GENEVE;
> +     else if (strstarts(lbl_item->label, ICE_LBL_TNL_UDP_ECPRI))
> +             lbl_item->type = ICE_LBL_BST_TYPE_UDP_ECPRI;
> 
>       if (hw->debug_mask & ICE_DBG_PARSER)
>               ice_lbl_dump(hw, lbl_item);
> @@ -2174,3 +2180,89 @@ void ice_parser_dvm_set(struct ice_parser *psr, bool
> on)


Tested-by: Rafal Romanowski <[email protected]>


Reply via email to