git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kni: use netdev_alloc_skb
[dpdk.git]
/
drivers
/
net
/
ice
/
base
/
ice_flow.h
diff --git
a/drivers/net/ice/base/ice_flow.h
b/drivers/net/ice/base/ice_flow.h
index
bad925c
..
c6442dc
100644
(file)
--- a/
drivers/net/ice/base/ice_flow.h
+++ b/
drivers/net/ice/base/ice_flow.h
@@
-174,7
+174,7
@@
enum ice_flow_priority {
struct ice_flow_seg_xtrct {
u8 prot_id; /* Protocol ID of extracted header field */
struct ice_flow_seg_xtrct {
u8 prot_id; /* Protocol ID of extracted header field */
- u
8 off;
/* Starting offset of the field in header in bytes */
+ u
16 off;
/* Starting offset of the field in header in bytes */
u8 idx; /* Index of FV entry used */
u8 disp; /* Displacement of field in bits fr. FV entry's start */
};
u8 idx; /* Index of FV entry used */
u8 disp; /* Displacement of field in bits fr. FV entry's start */
};
@@
-225,17
+225,15
@@
struct ice_flow_entry {
struct LIST_ENTRY_TYPE l_entry;
u64 id;
struct LIST_ENTRY_TYPE l_entry;
u64 id;
- u16 vsi_handle;
- enum ice_flow_priority priority;
struct ice_flow_prof *prof;
struct ice_flow_prof *prof;
-
+ /* Action list */
+ struct ice_flow_action *acts;
/* Flow entry's content */
/* Flow entry's content */
- u16 entry_sz;
void *entry;
void *entry;
-
- /* Action list */
+ enum ice_flow_priority priority;
+ u16 vsi_handle;
+ u16 entry_sz;
u8 acts_cnt;
u8 acts_cnt;
- struct ice_flow_action *acts;
};
#define ICE_FLOW_ENTRY_HNDL(e) ((unsigned long)e)
};
#define ICE_FLOW_ENTRY_HNDL(e) ((unsigned long)e)
@@
-246,12
+244,13
@@
struct ice_flow_prof {
u64 id;
enum ice_flow_dir dir;
u64 id;
enum ice_flow_dir dir;
+ u8 segs_cnt;
+ u8 acts_cnt;
/* Keep track of flow entries associated with this flow profile */
struct ice_lock entries_lock;
struct LIST_HEAD_TYPE entries;
/* Keep track of flow entries associated with this flow profile */
struct ice_lock entries_lock;
struct LIST_HEAD_TYPE entries;
- u8 segs_cnt;
struct ice_flow_seg_info segs[ICE_FLOW_SEG_MAX];
/* software VSI handles referenced by this flow profile */
struct ice_flow_seg_info segs[ICE_FLOW_SEG_MAX];
/* software VSI handles referenced by this flow profile */
@@
-264,12
+263,13
@@
struct ice_flow_prof {
} cfg;
/* Default actions */
} cfg;
/* Default actions */
- u8 acts_cnt;
struct ice_flow_action *acts;
};
struct ice_rss_cfg {
struct LIST_ENTRY_TYPE l_entry;
struct ice_flow_action *acts;
};
struct ice_rss_cfg {
struct LIST_ENTRY_TYPE l_entry;
+ /* bitmap of VSIs added to the RSS entry */
+ ice_declare_bitmap(vsis, ICE_MAX_VSI);
u64 hashed_flds;
u32 packet_hdr;
};
u64 hashed_flds;
u32 packet_hdr;
};
@@
-338,7
+338,7
@@
ice_flow_set_fld_prefix(struct ice_flow_seg_info *seg, enum ice_flow_field fld,
void
ice_flow_add_fld_raw(struct ice_flow_seg_info *seg, u16 off, u8 len,
u16 val_loc, u16 mask_loc);
void
ice_flow_add_fld_raw(struct ice_flow_seg_info *seg, u16 off, u8 len,
u16 val_loc, u16 mask_loc);
-void ice_rem_
all_rss_vsi_ctx
(struct ice_hw *hw, u16 vsi_handle);
+void ice_rem_
vsi_rss_list
(struct ice_hw *hw, u16 vsi_handle);
enum ice_status ice_replay_rss_cfg(struct ice_hw *hw, u16 vsi_handle);
enum ice_status
ice_add_avf_rss_cfg(struct ice_hw *hw, u16 vsi_handle, u64 hashed_flds);
enum ice_status ice_replay_rss_cfg(struct ice_hw *hw, u16 vsi_handle);
enum ice_status
ice_add_avf_rss_cfg(struct ice_hw *hw, u16 vsi_handle, u64 hashed_flds);