lib/socket: autodetect RSS using ETHTOOL_GRXRINGS
authorStefan Metzmacher <metze@samba.org>
Thu, 7 May 2020 09:06:03 +0000 (11:06 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 7 May 2020 14:44:40 +0000 (14:44 +0000)
commitd39636acea4fda840b23646b021e24559681b0b0
tree64d83dd5342391a3dcf8c7a05d1e6b150e795ab8
parent4ccb58160936d13a06c74ed1c28c855564b50f22
lib/socket: autodetect RSS using ETHTOOL_GRXRINGS

This is also used as part of 'ethtool -n rdma14' and
'ethtool -x rdma14'.

;#> ethtool -n rdma14
8 RX rings available
rxclass: Cannot get RX class rule count: Operation not supported
RX classification rule retrieval failed

;#> ethtool -x rdma14
RX flow hash indirection table for rdma14 with 8 RX ring(s):
    0:      0     1     2     3     4     5     6     7
    8:      0     1     2     3     4     5     6     7
RSS hash key:
Operation not supported
RSS hash function:
    toeplitz: on
    xor: off
    crc32: off

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/socket/interfaces.c