enic: Add SRIOV support
This patch adds support to enable SRIOV on enic devices. Enic SRIOV VF's are dynamic vnics and will use the same driver code as dynamic vnics. Signed-off-by: Roopa Prabhu <roprabhu@cisco.com> Signed-off-by: Sujith Sankar <ssujith@cisco.com> Signed-off-by: Christian Benvenuti <benve@cisco.com> Signed-off-by: David Wang <dwang2@cisco.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
7a269ffad7
commit
8749b427f2
@@ -32,7 +32,7 @@
|
||||
|
||||
#define DRV_NAME "enic"
|
||||
#define DRV_DESCRIPTION "Cisco VIC Ethernet NIC Driver"
|
||||
#define DRV_VERSION "2.1.1.24"
|
||||
#define DRV_VERSION "2.1.1.28"
|
||||
#define DRV_COPYRIGHT "Copyright 2008-2011 Cisco Systems, Inc"
|
||||
|
||||
#define ENIC_BARS_MAX 6
|
||||
@@ -49,6 +49,10 @@ struct enic_msix_entry {
|
||||
void *devid;
|
||||
};
|
||||
|
||||
/* priv_flags */
|
||||
#define ENIC_SRIOV_ENABLED (1 << 0)
|
||||
|
||||
/* enic port profile set flags */
|
||||
#define ENIC_PORT_REQUEST_APPLIED (1 << 0)
|
||||
#define ENIC_SET_REQUEST (1 << 1)
|
||||
#define ENIC_SET_NAME (1 << 2)
|
||||
@@ -83,11 +87,15 @@ struct enic {
|
||||
u8 mc_addr[ENIC_MULTICAST_PERFECT_FILTERS][ETH_ALEN];
|
||||
u8 uc_addr[ENIC_UNICAST_PERFECT_FILTERS][ETH_ALEN];
|
||||
unsigned int flags;
|
||||
unsigned int priv_flags;
|
||||
unsigned int mc_count;
|
||||
unsigned int uc_count;
|
||||
u32 port_mtu;
|
||||
u32 rx_coalesce_usecs;
|
||||
u32 tx_coalesce_usecs;
|
||||
#ifdef CONFIG_PCI_IOV
|
||||
u32 num_vfs;
|
||||
#endif
|
||||
struct enic_port_profile pp;
|
||||
|
||||
/* work queue cache line section */
|
||||
@@ -120,5 +128,6 @@ static inline struct device *enic_get_dev(struct enic *enic)
|
||||
}
|
||||
|
||||
void enic_reset_addr_lists(struct enic *enic);
|
||||
int enic_sriov_enabled(struct enic *enic);
|
||||
|
||||
#endif /* _ENIC_H_ */
|
||||
|
Reference in New Issue
Block a user