net/nfp: fix internal port addressing
authorHeinrich Kuhn <heinrich.kuhn@netronome.com>
Fri, 14 May 2021 09:19:34 +0000 (11:19 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 14 May 2021 11:52:32 +0000 (13:52 +0200)
commita1756feeecd740d2beddfc0da92b5df6a9d0b06b
tree48ac20c152944b150fa9423ec7ebfc5d5865006c
parenta395143ac9821b5b07ebe387897074d946d86906
net/nfp: fix internal port addressing

Depending on the breakout mode of the physical ports the internal NFP
port number might differ from the actual physical port number. Prior to
this patch the physical port number was used when making configuration
changes to the physical ports (enable, admin up etc). After this change
the internal port number is now correctly used for configuration
changes.

Fixes: 5e15e799d697 ("net/nfp: create separate entity for PF device")
Cc: stable@dpdk.org
Signed-off-by: Heinrich Kuhn <heinrich.kuhn@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
drivers/net/nfp/nfp_net.c
drivers/net/nfp/nfp_net_pmd.h