net/ice/base: enable FDIR queue region
Add fdir queue region support. Signed-off-by: Qi Zhang <qi.z.zhang@intel.com> Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com> Acked-by: Qiming Yang <qiming.yang@intel.com>
This commit is contained in:
parent
b2ad03452a
commit
34c6724765
@ -343,6 +343,9 @@ ice_fdir_get_prgm_desc(struct ice_hw *hw, struct ice_fdir_fltr *input,
|
||||
fdir_fltr_ctx.drop = ICE_FXD_FLTR_QW0_DROP_YES;
|
||||
fdir_fltr_ctx.qindex = 0;
|
||||
} else {
|
||||
if (input->dest_ctl ==
|
||||
ICE_FLTR_PRGM_DESC_DEST_DIRECT_PKT_QGROUP)
|
||||
fdir_fltr_ctx.toq = input->q_region;
|
||||
fdir_fltr_ctx.drop = ICE_FXD_FLTR_QW0_DROP_NO;
|
||||
fdir_fltr_ctx.qindex = input->q_index;
|
||||
}
|
||||
|
@ -167,6 +167,8 @@ struct ice_fdir_fltr {
|
||||
|
||||
/* flex byte filter data */
|
||||
__be16 flex_word;
|
||||
/* queue region size (=2^q_region) */
|
||||
u8 q_region;
|
||||
u16 flex_offset;
|
||||
u16 flex_fltr;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user