nfp: fix TLV offset calculation
authorEdwin Peer <edwin.peer@netronome.com>
Fri, 2 Feb 2018 03:41:43 +0000 (19:41 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Feb 2018 00:08:20 +0000 (19:08 -0500)
commit1d8ef0c07664dc48f2ff19a90b62dd3f6f425547
tree08c03e996a2b984f90e358f54fd7bf30c75de89a
parent743ffffefac1c670c6618742c923f6275d819604
nfp: fix TLV offset calculation

The data pointer in the config space TLV parser already includes
NFP_NET_CFG_TLV_BASE, it should not be added again. Incorrect
offset values were only used in printed user output, rendering
the bug merely cosmetic.

Fixes: 73a0329b057e ("nfp: add TLV capabilities to the BAR")
Signed-off-by: Edwin Peer <edwin.peer@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.c