]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Mar 2019 19:00:21 +0000 (11:00 -0800)
commit2cb3388a8c4fd477b761428d9a4b4b8545a98377
tree58bfaa15fda1247121e6b42645471b9fe6346098
parent452ce2b461887509ca5e60694378b073ed4a85e7
nfp: fix simple vNIC mailbox length

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: 9e9ca6c4237e ("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>
drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.h