OSDN Git Service

nfp: fix simple vNIC mailbox length
authorDirk van der Merwe <dirk.vandermerwe@netronome.com>
Thu, 7 Mar 2019 18:52:13 +0000 (10:52 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:31 +0000 (14:50 +0100)
commitdd123c299c304ef782205adbc27d96473cb67e12
treef6ca6e22feea8e5f2fcd1ff2d636d04f7fe78b2e
parent4d715fe508dd3672166bc5ce4e74dbe6a6f15075
nfp: fix simple vNIC mailbox length

[ Upstream commit eaab2d2d0fe4393b040dbf3922e18cd2ab7d6b85 ]

The simple vNIC mailbox length should be 12 decimal and not 0x12.
Using a decimal also makes it clear this is a length value and not
another field within the simple mailbox defines.

Found by code inspection, there are no known firmware configurations
where this would cause issues.

Fixes: 527d7d1b9949 ("nfp: read mailbox address from TLV caps")
Signed-off-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.h