ethtool: add support for RSS input transformation

Add support for RSS input transformation [1]. Currently, only symmetric-xor
is supported. The user can set the RSS input transformation via:

    # ethtool -X <dev> xfrm symmetric-xor

and sets it off (default) by:

    # ethtool -X <dev> xfrm none

The status of the transformation is reported by a new section at the end
of "ethtool -x":

    # ethtool -x <dev>
      RSS hash function:
          toeplitz: on
          xor: off
          crc32: off
      RSS input transformation:
          symmetric-xor: on

Reviewed-by: Aleksandr Loktionov <>
Reviewed-by: Michal Swiatkowski <>
Signed-off-by: Ahmed Zaki <>
Acked-by: Jakub Kicinski <>
3 files changed