fm10k: Implement PF <-> SM mailbox operations

This patch adds support for the mailbox that connects the PF to the Switch
Management entity.  This mailbox will pass TLV formatted messages between
the two entities by using a pair of shared ring buffers.

The primary use of the mailbox is to configure L2 forwarding addresses,
VLANs, and general resource allocation from the switch.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
Alexander Duyck 2014-09-20 19:47:33 -04:00 committed by Jeff Kirsher
parent 6b1f201f1a
commit 1337e6b977
3 changed files with 1355 additions and 1 deletions

View File

@ -28,4 +28,4 @@
obj-$(CONFIG_FM10K) += fm10k.o
fm10k-objs := fm10k_main.o fm10k_pci.o \
fm10k_tlv.o
fm10k_mbx.o fm10k_tlv.o

File diff suppressed because it is too large Load Diff

View File

@ -237,4 +237,7 @@ struct fm10k_mbx_info {
u32 buffer[FM10K_MBX_BUFFER_SIZE];
};
s32 fm10k_sm_mbx_init(struct fm10k_hw *, struct fm10k_mbx_info *,
const struct fm10k_msg_data *);
#endif /* _FM10K_MBX_H_ */