mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
ice: make const read-only array dflt_rules static
Don't populate the const read-only array dflt_rules on the stack at run time, instead make it static. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Tested-by: Rinitha S <sx.rinitha@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
parent
6cb10c063d
commit
fee4a79a12
|
|
@ -1605,7 +1605,7 @@ void ice_fdir_replay_fltrs(struct ice_pf *pf)
|
|||
*/
|
||||
int ice_fdir_create_dflt_rules(struct ice_pf *pf)
|
||||
{
|
||||
const enum ice_fltr_ptype dflt_rules[] = {
|
||||
static const enum ice_fltr_ptype dflt_rules[] = {
|
||||
ICE_FLTR_PTYPE_NONF_IPV4_TCP, ICE_FLTR_PTYPE_NONF_IPV4_UDP,
|
||||
ICE_FLTR_PTYPE_NONF_IPV6_TCP, ICE_FLTR_PTYPE_NONF_IPV6_UDP,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user