Skip to content

Commit 825b18a

Browse files
Jakub Kicinskidavem330
authored andcommitted
nfp: fix copy paste in names and messages regarding vNICs
Data and control vNICs currently use the same area name and error message. This could lead to confusion. Make sure the error message says "ctrl" in case of control and the data area is called "nfp.bar0". Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 899a37a commit 825b18a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/netronome/nfp/nfp_net_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ nfp_net_pf_app_init(struct nfp_pf *pf, u8 __iomem *qc_bar, unsigned int stride)
388388
NFP_PF_CSR_SLICE_SIZE,
389389
&pf->ctrl_vnic_bar);
390390
if (IS_ERR(ctrl_bar)) {
391-
nfp_err(pf->cpp, "Failed to find data vNIC memory symbol\n");
391+
nfp_err(pf->cpp, "Failed to find ctrl vNIC memory symbol\n");
392392
err = PTR_ERR(ctrl_bar);
393393
goto err_app_clean;
394394
}
@@ -504,7 +504,7 @@ static int nfp_net_pci_map_mem(struct nfp_pf *pf)
504504
int err;
505505

506506
min_size = pf->max_data_vnics * NFP_PF_CSR_SLICE_SIZE;
507-
mem = nfp_net_pf_map_rtsym(pf, "net.ctrl", "_pf%d_net_bar0",
507+
mem = nfp_net_pf_map_rtsym(pf, "net.bar0", "_pf%d_net_bar0",
508508
min_size, &pf->data_vnic_bar);
509509
if (IS_ERR(mem)) {
510510
nfp_err(pf->cpp, "Failed to find data vNIC memory symbol\n");

0 commit comments

Comments
 (0)