RXFH manual configuration

3 messages, 2 authors, 2017-06-23 · open the first message on its own page

RXFH manual configuration

From: Tariq Toukan <hidden>
Date: 2017-06-18 08:32:18

Hi Jacob,

I am looking at your patch:
d4ab4286276f ethtool: correctly ensure {GS}CHANNELS doesn't conflict ...

I wonder - if I want to configure the number of channels (ethtool -L), without being aware to the history of indirection table (manually set or not), how can I know what is the expected behavior?
I should be able, from userspace, to query the value of netif_is_rxfh_configured() in order to decide whether the outcome of an ethtool -L command is correct or not.

Do you know if this indication exists?

Thanks,
Tariq

RE: RXFH manual configuration

From: "Keller, Jacob E" <jacob.e.keller@intel.com>
Date: 2017-06-23 16:59:29

-----Original Message-----
From: Tariq Toukan [mailto:tariqt@mellanox.com]
Sent: Sunday, June 18, 2017 1:32 AM
To: Keller, Jacob E <jacob.e.keller@intel.com>
Cc: Linux Kernel Network Developers <redacted>; Saeed
Mahameed [off-list ref]; Eran Ben Elisha
[off-list ref]
Subject: RXFH manual configuration

Hi Jacob,

I am looking at your patch:
d4ab4286276f ethtool: correctly ensure {GS}CHANNELS doesn't conflict ...

I wonder - if I want to configure the number of channels (ethtool -L),
without being aware to the history of indirection table (manually set or
not), how can I know what is the expected behavior?
I should be able, from userspace, to query the value of
netif_is_rxfh_configured() in order to decide whether the outcome of an
ethtool -L command is correct or not.

Do you know if this indication exists?

Thanks,
Tariq
Hi,

I believe you can check the flags value, from /sys/class/net/<device>/flags, though you'll have to manually parse that. I don't think iproute2 suite shows this flag, but i suspect it could be modified to do so. Specifically you check for IFF_RXFH_CONFIGURED

Thanks,
Jake

RE: RXFH manual configuration

From: "Keller, Jacob E" <jacob.e.keller@intel.com>
Date: 2017-06-23 17:03:38

-----Original Message-----
From: Tariq Toukan [mailto:tariqt@mellanox.com]
Sent: Sunday, June 18, 2017 1:32 AM
To: Keller, Jacob E <jacob.e.keller@intel.com>
Cc: Linux Kernel Network Developers <redacted>; Saeed
Mahameed [off-list ref]; Eran Ben Elisha
[off-list ref]
Subject: RXFH manual configuration

Hi Jacob,

I am looking at your patch:
d4ab4286276f ethtool: correctly ensure {GS}CHANNELS doesn't conflict ...

I wonder - if I want to configure the number of channels (ethtool -L),
without being aware to the history of indirection table (manually set or
not), how can I know what is the expected behavior?
I should be able, from userspace, to query the value of
netif_is_rxfh_configured() in order to decide whether the outcome of an
ethtool -L command is correct or not.

Do you know if this indication exists?

Thanks,
Tariq
I mis-spoke earlier, this is set in priv_flags and is thus not shared with userspace. I'm not sure if there is any current way to tell the status.

Thanks,
Jake
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help