Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3480453pxx; Mon, 2 Nov 2020 09:59:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvRjB6aqKvpvBSVYpQ3+IY+uDqhb45zMNreVW7KS9dpPLcwHveMAORivCYL3X59fkshwYn X-Received: by 2002:a17:906:d285:: with SMTP id ay5mr16234248ejb.84.1604339954683; Mon, 02 Nov 2020 09:59:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604339954; cv=none; d=google.com; s=arc-20160816; b=o1A/fF8eKOsAGAyKn8UGmYheDBUAhqydYvC2c2FrvAU4ZSHefz8EW+ixWTvL27M1yy w3o/wTPi3cFYFrXWL39frLzkaCDBO1fsIElz0UCn9+3SuNn3OC2SRDQGpLOyI7fPmOoA DaXzfrCyZ3xlnpdBveftj5hu0tgWLXMOOHHebM4bmetzQ80J8JMa8UarTqlBMpBeJCJ6 ko/z0n36K5ZuCtorgjEPHkjS1+I74fIoIu/lXziSLPRgDPyhXKo8CnAM5zre6VSSNKzn WOcL1NEIU9pe/Re7cqfdihxmwj5uasnEgTQ3xTVcf8oT721Cl+RsIz/G9yD+STOygL7j +Clw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=+2H5oxxj6Hl5fwUuEMyCkPPIONFpEFZInZdwDvd9aqw=; b=Z94w4nR4yoC5LLaWSkUOKyOPaZwFM3uIempxguiRrFa/kohLuTXjC0lp3jkRzNpoZU BW61UcdIgw3cRRq1jBuEh2F2y/1tLSdZ3+nRFb/0IEXCsagU4S/Z1hkitrttevg8UKoB s7771lPTHBnZJjlVhLI4cvk//REaWQTo504fW57GsQ+YsqVP7gOhWCqMhj7wmFX8p8El rLpHpjNmNPWSHWeNQBX0tahGiYrYf/zHmxIQyPk7VQHTJLoKuF2P6OMASWpIUBy2x6yk WuW2QVrlY/BQtdTt7p8i8gllEjkaHjgDMtV0onWKQIJmhsE2r+5qO5eh/t33K5LdXHc7 FFeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kIcYCVy4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb13si10888276edb.242.2020.11.02.09.58.51; Mon, 02 Nov 2020 09:59:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kIcYCVy4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726206AbgKBRzA (ORCPT + 99 others); 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, | ^~~~~~~~