From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1CED9C00A89 for ; Mon, 2 Nov 2020 17:55:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C031821D91 for ; Mon, 2 Nov 2020 17:55:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604339701; bh=8/mUrAxnZZrM1RFaXGsbb/nCz+p4v9A2HQqXXh5kCvc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-ID:From; b=w7FGexnYUuVMvBa+mvf7QPTF7bQhuu6ceoyktQAipyNWiGDKvrJC7XKVI1I+5yekJ 2B5W0ToEX4JtGGGelrAfWEkSojZYMngUqXKWhdzxib+u3KHYLpLBwoIN5F+1wKwe/G wNB+BpA6hTXHLQnJQsUyD/BU8/9XRvVvLOcwMnyc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726321AbgKBRzA (ORCPT ); Mon, 2 Nov 2020 12:55:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:37158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725817AbgKBRzA (ORCPT ); Mon, 2 Nov 2020 12:55:00 -0500 Received: from kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net (unknown [163.114.132.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2824221D91; Mon, 2 Nov 2020 17:54:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604339699; bh=8/mUrAxnZZrM1RFaXGsbb/nCz+p4v9A2HQqXXh5kCvc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=kIcYCVy4ADziEoDl32si94cKoiihbeDvIFkg1X2O1UyiRXcj1mZ3uQsKt58dg5Ypr cukYTY9HbZhq4NAmX4tFEG4Ra5cdaHpU9ZRAw7uHtqFO2StHpbkaN6h7tl0f4ZeajE 58M/lY+CLlp6Nu9u1nlS/1ksxdwq9AaM2ix/cGoo= Date: Mon, 2 Nov 2020 09:54:58 -0800 From: Jakub Kicinski To: Naveen Mamindlapalli Cc: , , , , , , , , , Tomasz Duszynski Subject: Re: [PATCH net-next 10/13] octeontx2-pf: Add support for SR-IOV management functions Message-ID: <20201102095458.024ab1e9@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> In-Reply-To: <20201102061122.8915-11-naveenm@marvell.com> References: <20201102061122.8915-1-naveenm@marvell.com> <20201102061122.8915-11-naveenm@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2 Nov 2020 11:41:19 +0530 Naveen Mamindlapalli wrote: > This patch adds support for ndo_set_vf_mac, ndo_set_vf_vlan > and ndo_get_vf_config handlers. The traffic redirection > based on the VF mac address or vlan id is done by installing > MCAM rules. Reserved RX_VTAG_TYPE7 in each NIXLF for VF VLAN > which strips the VLAN tag from ingress VLAN traffic. The NIX PF > allocates two MCAM entries for VF VLAN feature, one used for > ingress VTAG strip and another entry for egress VTAG insertion. >=20 > This patch also updates the MAC address in PF installed VF VLAN > rule upon receiving nix_lf_start_rx mbox request for VF since > Administrative Function driver will assign a valid MAC addr > in nix_lf_start_rx function. >=20 > Signed-off-by: Naveen Mamindlapalli > Co-developed-by: Tomasz Duszynski > Signed-off-by: Tomasz Duszynski > Signed-off-by: Sunil Goutham > Signed-off-by: Hariprasad Kelam drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:2097:31: warning: cast= to restricted __be16 drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:2097:31: warning: cast= to restricted __be16 drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:2097:31: warning: cast= to restricted __be16 drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:2097:31: warning: cast= to restricted __be16 drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:2158:55: warning: inco= rrect type in argument 5 (different base types) drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:2158:55: expected u= nsigned short [usertype] proto drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:2158:55: got restri= cted __be16 [usertype] proto 203a211,214 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c: In function =E2=80= =98npc_update_dmac_value=E2=80=99: drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c:1236:24: warning: im= plicit conversion from =E2=80=98enum header_fields=E2=80=99 to =E2=80=98enu= m key_fields=E2=80=99 [-Wenum-conversion] 1236 | npc_update_entry(rvu, NPC_DMAC, entry, | ^~~~~~~~