aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_virtchnl.c
diff options
context:
space:
mode:
authorJan Glaza <[email protected]>2025-03-04 11:08:31 +0000
committerTony Nguyen <[email protected]>2025-03-18 16:38:16 +0000
commitdb5e8ea155fc1d89c87cb81f0e4a681a77b9b03f (patch)
tree28b4918c0ebcdeefc9792c8cb1e1105f58fbd72c /drivers/net/ethernet/intel/ice/ice_virtchnl.c
parentice: fix reservation of resources for RDMA when disabled (diff)
downloadkernel-db5e8ea155fc1d89c87cb81f0e4a681a77b9b03f.tar.gz
kernel-db5e8ea155fc1d89c87cb81f0e4a681a77b9b03f.zip
virtchnl: make proto and filter action count unsigned
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]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Jan Glaza <[email protected]> Signed-off-by: Martyna Szapar-Mudlaw <[email protected]> Tested-by: Rafal Romanowski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_virtchnl.c')
0 files changed, 0 insertions, 0 deletions