nfp: add support for per-PCI PF mailbox
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 22 May 2018 05:12:44 +0000 (22:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 May 2018 18:26:18 +0000 (14:26 -0400)
commit0c693323a1e4ba129c7ea4b9b2679eb10227a446
treeffd36a9123b974f48f73d5a140365e8f3d14df1e
parent8f6196f63c46982c095e485a9c73c683d9900a2e
nfp: add support for per-PCI PF mailbox

When working with devlink-related functionality for locking reasons
it's easier to create a new mailbox per-PCI PF device than try to
use one of the netdev/vNIC mailboxes.

Define new mailbox structure and resolve its symbol during probe.
For forward compatibility allow silent truncation of mailbox command
data.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_abi.h [new file with mode: 0644]
drivers/net/ethernet/netronome/nfp/nfp_main.c
drivers/net/ethernet/netronome/nfp/nfp_main.h