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:
parent
6b1f201f1a
commit
1337e6b977
@ -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
|
||||
|
1351
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
Normal file
1351
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -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_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user