linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste_v1.c:855 dr_ste_v1_build_src_gvmi_qpn_tag() warn: inconsistent indenting
@ 2021-07-23 21:11 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-23 21:11 UTC (permalink / raw)
  To: Yevgeny Kliteynik; +Cc: kbuild-all, linux-kernel, Saeed Mahameed, Alex Vesker

[-- Attachment #1: Type: text/plain, Size: 2335 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1d597682d3e669ec7021aa33d088ed3d136a5149
commit: 10b69418641062b4dc7fabe3c6f2e12432ec6987 net/mlx5: DR, Add HW STEv1 match logic
date:   6 months ago
config: x86_64-randconfig-m001-20210723 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

smatch warnings:
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste_v1.c:855 dr_ste_v1_build_src_gvmi_qpn_tag() warn: inconsistent indenting

vim +855 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste_v1.c

   832	
   833	static int dr_ste_v1_build_src_gvmi_qpn_tag(struct mlx5dr_match_param *value,
   834						    struct mlx5dr_ste_build *sb,
   835						    u8 *tag)
   836	{
   837		struct mlx5dr_match_misc *misc = &value->misc;
   838		struct mlx5dr_cmd_vport_cap *vport_cap;
   839		struct mlx5dr_domain *dmn = sb->dmn;
   840		struct mlx5dr_cmd_caps *caps;
   841		u8 *bit_mask = sb->bit_mask;
   842	
   843		DR_STE_SET_TAG(src_gvmi_qp_v1, tag, source_qp, misc, source_sqn);
   844	
   845		if (sb->vhca_id_valid) {
   846			/* Find port GVMI based on the eswitch_owner_vhca_id */
   847			if (misc->source_eswitch_owner_vhca_id == dmn->info.caps.gvmi)
   848				caps = &dmn->info.caps;
   849			else if (dmn->peer_dmn && (misc->source_eswitch_owner_vhca_id ==
   850						   dmn->peer_dmn->info.caps.gvmi))
   851				caps = &dmn->peer_dmn->info.caps;
   852			else
   853				return -EINVAL;
   854	
 > 855			 misc->source_eswitch_owner_vhca_id = 0;
   856		} else {
   857			caps = &dmn->info.caps;
   858		}
   859	
   860		if (!MLX5_GET(ste_src_gvmi_qp_v1, bit_mask, source_gvmi))
   861			return 0;
   862	
   863		vport_cap = mlx5dr_get_vport_cap(caps, misc->source_port);
   864		if (!vport_cap) {
   865			mlx5dr_err(dmn, "Vport 0x%x is disabled or invalid\n",
   866				   misc->source_port);
   867			return -EINVAL;
   868		}
   869	
   870		if (vport_cap->vport_gvmi)
   871			MLX5_SET(ste_src_gvmi_qp_v1, tag, source_gvmi, vport_cap->vport_gvmi);
   872	
   873		misc->source_port = 0;
   874		return 0;
   875	}
   876	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39521 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-23 21:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-23 21:11 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste_v1.c:855 dr_ste_v1_build_src_gvmi_qpn_tag() warn: inconsistent indenting kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).