ice: make const read-only array dflt_rules static
Subsystems (4)
PATCH v2 1/1 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.
---
V2: Remove additional changes not related to this commit.
--- drivers/net/ethernet/intel/ice/ice_ethtool_fdir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_ethtool_fdir.c +1 -1
@@ -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 , };
Signature · 1 line
2.49.0
Quoted 9 lines
-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Colin Ian King
Sent: 17 March 2025 22:50
To: Nguyen, Anthony L <[email protected]>; Kitszel, Przemyslaw <[email protected]>; Andrew Lunn <[email protected]>; David S . Miller <[email protected]>; Dumazet, Eric <[email protected]>; Jakub Kicinski <[email protected]>; Paolo Abeni <[email protected]>; [email protected]; [email protected]
Cc: [email protected]; [email protected]
Subject: [Intel-wired-lan] [PATCH][next][V2] ice: make const read-only arraydflt_rulesstaticDon't populate the const read-only array
dflt_ruleson the stack at run time, instead make it static.
Quoted 8 lines
Signed-off-by Colin Ian King <[email protected]>---
V2: Remove additional changes not related to this commit.
---drivers/net/ethernet/intel/ice/ice_ethtool_fdir.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)