net/mlx5: fix missing packet type calculation