netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Geetha sowjanya <gakula@marvell.com>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, kuba@kernel.org,
	davem@davemloft.net, pabeni@redhat.com, edumazet@google.com,
	sgoutham@marvell.com, gakula@marvell.com, sbhatta@marvell.com,
	hkelam@marvell.com
Subject: Re: [net-next PATCH v2 5/9] octeontx2-af: Add packet path between representor and VF
Date: Wed, 24 Apr 2024 00:13:39 +0800	[thread overview]
Message-ID: <202404240058.p4HzPiSt-lkp@intel.com> (raw)
In-Reply-To: <20240422095401.14245-6-gakula@marvell.com>

Hi Geetha,

kernel test robot noticed the following build warnings:

[auto build test WARNING on next-20240422]
[also build test WARNING on v6.9-rc5]
[cannot apply to net-next/main linus/master horms-ipvs/master v6.9-rc5 v6.9-rc4 v6.9-rc3]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Geetha-sowjanya/octeontx2-pf-Refactoring-RVU-driver/20240422-175819
base:   next-20240422
patch link:    https://lore.kernel.org/r/20240422095401.14245-6-gakula%40marvell.com
patch subject: [net-next PATCH v2 5/9] octeontx2-af: Add packet path between representor and VF
config: alpha-randconfig-r122-20240423 (https://download.01.org/0day-ci/archive/20240424/202404240058.p4HzPiSt-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20240424/202404240058.p4HzPiSt-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202404240058.p4HzPiSt-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c:39:38: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c:39:38: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c:39:38: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c:39:38: sparse: sparse: cast to restricted __be16
>> drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c:95:31: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __be16 [assigned] [usertype] vlan_etype @@     got int @@
   drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c:95:31: sparse:     expected restricted __be16 [assigned] [usertype] vlan_etype
   drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c:95:31: sparse:     got int
   drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c:96:29: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __be16 [assigned] [usertype] vlan_etype @@     got int @@
   drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c:96:29: sparse:     expected restricted __be16 [assigned] [usertype] vlan_etype
   drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c:96:29: sparse:     got int
>> drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c:97:29: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __be16 [assigned] [usertype] vlan_tci @@     got unsigned short [assigned] [usertype] vlan_tci @@
   drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c:97:29: sparse:     expected restricted __be16 [assigned] [usertype] vlan_tci
   drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c:97:29: sparse:     got unsigned short [assigned] [usertype] vlan_tci
>> drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c:98:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __be16 [assigned] [usertype] vlan_tci @@     got int @@
   drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c:98:27: sparse:     expected restricted __be16 [assigned] [usertype] vlan_tci
   drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c:98:27: sparse:     got int

vim +39 drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c

    25	
    26	static int rvu_rep_tx_vlan_cfg(struct rvu *rvu,  u16 pcifunc,
    27				       u16 vlan_tci, int *vidx)
    28	{
    29		struct nix_vtag_config_rsp rsp = {};
    30		struct nix_vtag_config req = {};
    31		u64 etype = ETH_P_8021Q;
    32		int err;
    33	
    34		/* Insert vlan tag */
    35		req.hdr.pcifunc = pcifunc;
    36		req.vtag_size = VTAGSIZE_T4;
    37		req.cfg_type = 0; /* tx vlan cfg */
    38		req.tx.cfg_vtag0 = true;
  > 39		req.tx.vtag0 = etype << 48 | ntohs(vlan_tci);
    40	
    41		err = rvu_mbox_handler_nix_vtag_cfg(rvu, &req, &rsp);
    42		if (err) {
    43			dev_err(rvu->dev, "Tx vlan config failed\n");
    44			return err;
    45		}
    46		*vidx = rsp.vtag0_idx;
    47		return 0;
    48	}
    49	
    50	static int rvu_rep_rx_vlan_cfg(struct rvu *rvu, u16 pcifunc)
    51	{
    52		struct nix_vtag_config req = {};
    53		struct nix_vtag_config_rsp rsp;
    54	
    55		/* config strip, capture and size */
    56		req.hdr.pcifunc = pcifunc;
    57		req.vtag_size = VTAGSIZE_T4;
    58		req.cfg_type = 1; /* rx vlan cfg */
    59		req.rx.vtag_type = NIX_AF_LFX_RX_VTAG_TYPE0;
    60		req.rx.strip_vtag = true;
    61		req.rx.capture_vtag = false;
    62	
    63		return rvu_mbox_handler_nix_vtag_cfg(rvu, &req, &rsp);
    64	}
    65	
    66	static int rvu_rep_install_rx_rule(struct rvu *rvu, u16 pcifunc,
    67					   u16 entry, bool rte)
    68	{
    69		struct npc_install_flow_req req = {};
    70		struct npc_install_flow_rsp rsp = {};
    71		struct rvu_pfvf *pfvf;
    72		u16 vlan_tci, rep_id;
    73	
    74		pfvf = rvu_get_pfvf(rvu, pcifunc);
    75	
    76		/* To stree the traffic from Representee to Representor */
    77		rep_id = (u16)rvu_rep_get_vlan_id(rvu, pcifunc);
    78		if (rte) {
    79			vlan_tci = rep_id | 0x1ull << 8;
    80			req.vf = rvu->rep_pcifunc;
    81			req.op = NIX_RX_ACTIONOP_UCAST;
    82			req.index = rep_id;
    83		} else {
    84			vlan_tci = rep_id;
    85			req.vf = pcifunc;
    86			req.op = NIX_RX_ACTION_DEFAULT;
    87		}
    88	
    89		rvu_rep_rx_vlan_cfg(rvu, req.vf);
    90		req.entry = entry;
    91		req.hdr.pcifunc = 0; /* AF is requester */
    92		req.features = BIT_ULL(NPC_OUTER_VID) | BIT_ULL(NPC_VLAN_ETYPE_CTAG);
    93		req.vtag0_valid = true;
    94		req.vtag0_type = NIX_AF_LFX_RX_VTAG_TYPE0;
  > 95		req.packet.vlan_etype = ETH_P_8021Q;
    96		req.mask.vlan_etype = ETH_P_8021Q;
  > 97		req.packet.vlan_tci = vlan_tci;
  > 98		req.mask.vlan_tci = 0xffff;
    99	
   100		req.channel = RVU_SWITCH_LBK_CHAN;
   101		req.chan_mask = 0xffff;
   102		req.intf = pfvf->nix_rx_intf;
   103	
   104		return rvu_mbox_handler_npc_install_flow(rvu, &req, &rsp);
   105	}
   106	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2024-04-23 16:14 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-22  9:53 [net-next PATCH v2 0/9] Introduce RVU representors Geetha sowjanya
2024-04-22  9:53 ` [net-next PATCH v2 1/9] octeontx2-pf: Refactoring RVU driver Geetha sowjanya
2024-04-22  9:53 ` [net-next PATCH v2 2/9] octeontx2-pf: RVU representor driver Geetha sowjanya
2024-04-22 16:58   ` Jiri Pirko
2024-04-23 15:23     ` [EXTERNAL] " Geethasowjanya Akula
2024-04-22  9:53 ` [net-next PATCH v2 3/9] octeontx2-pf: Create representor netdev Geetha sowjanya
2024-04-22 17:03   ` Jiri Pirko
2024-04-23 15:26     ` [EXTERNAL] " Geethasowjanya Akula
2024-04-22  9:53 ` [net-next PATCH v2 4/9] octeontx2-pf: Add basic net_device_ops Geetha sowjanya
2024-04-22  9:53 ` [net-next PATCH v2 5/9] octeontx2-af: Add packet path between representor and VF Geetha sowjanya
2024-04-23 13:09   ` Jiri Pirko
2024-04-25  6:01     ` Sunil Kovvuri Goutham
2024-04-25  6:59       ` Jiri Pirko
2024-04-23 16:13   ` kernel test robot [this message]
2024-04-22  9:53 ` [net-next PATCH v2 6/9] octeontx2-pf: Get VF stats via representor Geetha sowjanya
2024-04-22  9:53 ` [net-next PATCH v2 7/9] octeontx2-pf: Add support to sync link state between representor and VFs Geetha sowjanya
2024-04-23 13:06   ` Jiri Pirko
2024-04-23 16:09     ` [EXTERNAL] " Geethasowjanya Akula
2024-04-24 14:41       ` Jiri Pirko
2024-04-25  5:11         ` Geethasowjanya Akula
2024-04-22  9:54 ` [net-next PATCH v2 8/9] octeontx2-pf: Configure VF mtu via representor Geetha sowjanya
2024-04-22  9:54 ` [net-next PATCH v2 9/9] octeontx2-pf: Add representors for sdp MAC Geetha sowjanya
2024-04-23 13:04   ` Jiri Pirko
2024-04-25  6:09     ` Sunil Kovvuri Goutham
2024-04-25  7:01       ` Jiri Pirko
2024-04-23 13:03 ` [net-next PATCH v2 0/9] Introduce RVU representors Jiri Pirko
2024-04-23 15:39   ` [EXTERNAL] " Geethasowjanya Akula
2024-04-24 14:42     ` Jiri Pirko
2024-04-25  5:09       ` Geethasowjanya Akula
2024-04-25  7:00         ` Jiri Pirko
2024-04-28 10:49           ` Geethasowjanya Akula
2024-04-23 13:10 ` Jiri Pirko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202404240058.p4HzPiSt-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=gakula@marvell.com \
    --cc=hkelam@marvell.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pabeni@redhat.com \
    --cc=sbhatta@marvell.com \
    --cc=sgoutham@marvell.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).