How to configure tos in RSS rule using ethtool

Hi, I am trying to steer ingress traffic according to tos value using ethtool but I got the following error. If anyone has any ideas, could you please share with me? Thanks!

sudo ethtool --config-ntuple ens1f1np1 flow-type udp4 tos 0 action 2
rmgr: Cannot insert RX class rule: Invalid argument

other info:
OS: Ubuntu 22.04.1 LTS
Kernel: 5.16.0-051600rc5-generic
NIC: Two Dual-port Mellanox ConnectX-4 25 GB NIC (PCIe v3.0, 8 lanes
driver: mlx5_core
version: 5.16.0-051600rc5-generic
firmware-version: 14.18.2030 (HP_2420110034)
bus-info: 0000:03:00.1
supports-statistics: yes
supports-test: yes
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: yes