.. | .. |
---|
10 | 10 | |
---|
11 | 11 | #define I40E_VIRTCHNL_SUPPORTED_QTYPES 2 |
---|
12 | 12 | |
---|
13 | | -#define I40E_DEFAULT_NUM_MDD_EVENTS_ALLOWED 3 |
---|
14 | | -#define I40E_DEFAULT_NUM_INVALID_MSGS_ALLOWED 10 |
---|
15 | | - |
---|
16 | | -#define I40E_VLAN_PRIORITY_SHIFT 12 |
---|
| 13 | +#define I40E_VLAN_PRIORITY_SHIFT 13 |
---|
17 | 14 | #define I40E_VLAN_MASK 0xFFF |
---|
18 | | -#define I40E_PRIORITY_MASK 0x7000 |
---|
| 15 | +#define I40E_PRIORITY_MASK 0xE000 |
---|
| 16 | + |
---|
| 17 | +#define I40E_MAX_VF_PROMISC_FLAGS 3 |
---|
| 18 | + |
---|
| 19 | +#define I40E_VF_STATE_WAIT_COUNT 20 |
---|
| 20 | +#define I40E_VFR_WAIT_COUNT 100 |
---|
19 | 21 | |
---|
20 | 22 | /* Various queue ctrls */ |
---|
21 | 23 | enum i40e_queue_ctrl { |
---|
.. | .. |
---|
37 | 39 | I40E_VF_STATE_MC_PROMISC, |
---|
38 | 40 | I40E_VF_STATE_UC_PROMISC, |
---|
39 | 41 | I40E_VF_STATE_PRE_ENABLE, |
---|
| 42 | + I40E_VF_STATE_RESETTING |
---|
40 | 43 | }; |
---|
41 | 44 | |
---|
42 | 45 | /* VF capabilities */ |
---|
.. | .. |
---|
88 | 91 | u8 num_queue_pairs; /* num of qps assigned to VF vsis */ |
---|
89 | 92 | u8 num_req_queues; /* num of requested qps */ |
---|
90 | 93 | u64 num_mdd_events; /* num of mdd events detected */ |
---|
91 | | - /* num of continuous malformed or invalid msgs detected */ |
---|
92 | | - u64 num_invalid_msgs; |
---|
93 | | - u64 num_valid_msgs; /* num of valid msgs detected */ |
---|
94 | 94 | |
---|
95 | 95 | unsigned long vf_caps; /* vf's adv. capabilities */ |
---|
96 | 96 | unsigned long vf_states; /* vf's runtime states */ |
---|
.. | .. |
---|
98 | 98 | bool link_forced; |
---|
99 | 99 | bool link_up; /* only valid if VF link is forced */ |
---|
100 | 100 | bool spoofchk; |
---|
101 | | - u16 num_mac; |
---|
102 | 101 | u16 num_vlan; |
---|
103 | 102 | |
---|
104 | 103 | /* ADq related variables */ |
---|
.. | .. |
---|
136 | 135 | |
---|
137 | 136 | void i40e_vc_notify_link_state(struct i40e_pf *pf); |
---|
138 | 137 | void i40e_vc_notify_reset(struct i40e_pf *pf); |
---|
| 138 | +int i40e_get_vf_stats(struct net_device *netdev, int vf_id, |
---|
| 139 | + struct ifla_vf_stats *vf_stats); |
---|
139 | 140 | |
---|
140 | 141 | #endif /* _I40E_VIRTCHNL_PF_H_ */ |
---|