diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-06-06 00:11:33 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-07 00:13:39 +0300 |
commit | a68634893fca765f4914ca32c142028891be6935 (patch) | |
tree | 0100a7780d1498e3fda664fa79f9f8afa22ec8f0 /drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.c | |
parent | 3ed77bf76624ea0892c95d7818d9b85f3cd1b472 (diff) | |
download | linux-a68634893fca765f4914ca32c142028891be6935.tar.xz |
nfp: parse the mailbox cmsg TLV
Parse the mailbox TLV. When control message queue is not available
we can fall back to passing the control messages via the vNIC
mailbox.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.c')
-rw-r--r-- | drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.c b/drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.c index 6d5213b5bcb0..6c207c5e9265 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.c +++ b/drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.c @@ -99,6 +99,10 @@ int nfp_net_tlv_caps_parse(struct device *dev, u8 __iomem *ctrl_mem, caps->repr_cap = readl(data); break; + case NFP_NET_CFG_TLV_TYPE_MBOX_CMSG_TYPES: + if (length >= 4) + caps->mbox_cmsg_types = readl(data); + break; default: if (!FIELD_GET(NFP_NET_CFG_TLV_HEADER_REQUIRED, hdr)) break; |