Commit 00a57e29 authored by Jacob Keller's avatar Jacob Keller Committed by Tony Nguyen

ice: remove unused definitions from ice_sriov.h

A few more macros exist in ice_sriov.h which are not used anywhere.
These can be safely removed. Note that ICE_VIRTCHNL_VF_CAP_L2 capability
is set but never checked anywhere in the driver. Thus it is also safe to
remove.
Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Tested-by: default avatarKonrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent a7e11710
...@@ -2012,7 +2012,6 @@ static int ice_create_vf_entries(struct ice_pf *pf, u16 num_vfs) ...@@ -2012,7 +2012,6 @@ static int ice_create_vf_entries(struct ice_pf *pf, u16 num_vfs)
vf->vf_sw_id = pf->first_sw; vf->vf_sw_id = pf->first_sw;
/* assign default capabilities */ /* assign default capabilities */
set_bit(ICE_VIRTCHNL_VF_CAP_L2, &vf->vf_caps);
vf->spoofchk = true; vf->spoofchk = true;
vf->num_vf_qs = pf->vfs.num_qps_per; vf->num_vf_qs = pf->vfs.num_qps_per;
ice_vc_set_default_allowlist(vf); ice_vc_set_default_allowlist(vf);
......
...@@ -13,9 +13,6 @@ ...@@ -13,9 +13,6 @@
*/ */
#define ICE_MAX_MACADDR_PER_VF 18 #define ICE_MAX_MACADDR_PER_VF 18
/* Malicious Driver Detection */
#define ICE_MDD_EVENTS_THRESHOLD 30
/* Static VF transaction/status register def */ /* Static VF transaction/status register def */
#define VF_DEVICE_STATUS 0xAA #define VF_DEVICE_STATUS 0xAA
#define VF_TRANS_PENDING_M 0x20 #define VF_TRANS_PENDING_M 0x20
...@@ -28,7 +25,6 @@ ...@@ -28,7 +25,6 @@
#define ICE_MAX_VF_COUNT 256 #define ICE_MAX_VF_COUNT 256
#define ICE_MIN_QS_PER_VF 1 #define ICE_MIN_QS_PER_VF 1
#define ICE_NONQ_VECS_VF 1 #define ICE_NONQ_VECS_VF 1
#define ICE_MAX_SCATTER_QS_PER_VF 16
#define ICE_MAX_RSS_QS_PER_VF 16 #define ICE_MAX_RSS_QS_PER_VF 16
#define ICE_NUM_VF_MSIX_MED 17 #define ICE_NUM_VF_MSIX_MED 17
#define ICE_NUM_VF_MSIX_SMALL 5 #define ICE_NUM_VF_MSIX_SMALL 5
...@@ -95,8 +91,7 @@ enum ice_vf_states { ...@@ -95,8 +91,7 @@ enum ice_vf_states {
/* VF capabilities */ /* VF capabilities */
enum ice_virtchnl_cap { enum ice_virtchnl_cap {
ICE_VIRTCHNL_VF_CAP_L2 = 0, ICE_VIRTCHNL_VF_CAP_PRIVILEGE = 0,
ICE_VIRTCHNL_VF_CAP_PRIVILEGE,
}; };
struct ice_time_mac { struct ice_time_mac {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment