On Tue, Feb 25, 2025 at 10:08:45AM +0100, Martyna Szapar-Mudlaw wrote: > From: Jan Glaza <[email protected]> > > The count field in virtchnl_proto_hdrs and virtchnl_filter_action_set > should never be negative while still being valid. Changing it from > int to u32 ensures proper handling of values in virtchnl messages in > driverrs and prevents unintended behavior. > In its current signed form, a negative count does not trigger > an error in ice driver but instead results in it being treated as 0. > This can lead to unexpected outcomes when processing messages. > By using u32, any invalid values will correctly trigger -EINVAL, > making error detection more robust. > > Fixes: 1f7ea1cd6a374 ("ice: Enable FDIR Configure for AVF") > Reviewed-by: Jedrzej Jagielski <[email protected]> > Signed-off-by: Jan Glaza <[email protected]> > Signed-off-by: Martyna Szapar-Mudlaw <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
