[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ddce7e2b-ab4d-8eb3-9b56-acb192ae29a6@solarflare.com>
Date: Tue, 22 May 2018 14:29:28 +0100
From: Edward Cree <ecree@...arflare.com>
To: Tom Lendacky <thomas.lendacky@....com>,
Jakub Kicinski <kubakici@...pl>
CC: <netdev@...r.kernel.org>, David Miller <davem@...emloft.net>
Subject: Re: [PATCH net-next 08/12] amd-xgbe: Add ethtool show/set channels
support
On 22/05/18 14:24, Tom Lendacky wrote:
> The amd-xgbe driver is not designed to allocate separate IRQs for Rx and
> Tx. In general, there is one IRQ for a channel of which Tx and Rx are
> shared. You can have more Tx channels than Rx channels or vice-versa, but
> the min() of those numbers will be a combined Tx/Rx with the excess being
> Tx or Rx only: e.g. combined 0 tx 8 rx 10 results in 8 combined channels
> plus two Rx only channels.
If you cannot allocate the channels requested by the user, surely the correct
thing is not to fudge it into something similar, but rather to return an
error from the ethtool set_channels() op.
-Ed
Powered by blists - more mailing lists