From: <sameehj@amazon.com>
To: <davem@davemloft.net>, <netdev@vger.kernel.org>
Cc: Sameeh Jubran <sameehj@amazon.com>, <dwmw@amazon.com>,
<zorik@amazon.com>, <matua@amazon.com>, <saeedb@amazon.com>,
<msw@amazon.com>, <aliguori@amazon.com>, <nafea@amazon.com>,
<gtzalik@amazon.com>, <netanel@amazon.com>, <alisaidi@amazon.com>,
<benh@amazon.com>, <akiyano@amazon.com>
Subject: [PATCH V3 net-next 3/6] net: ena: ethtool: get_channels: use combined only
Date: Sun, 6 Oct 2019 15:33:25 +0300 [thread overview]
Message-ID: <20191006123328.24210-4-sameehj@amazon.com> (raw)
In-Reply-To: <20191006123328.24210-1-sameehj@amazon.com>
From: Sameeh Jubran <sameehj@amazon.com>
Since we use the same IRQ and NAPI to service RX and TX then we need to
use a combined channel instead of rx and tx channels.
Signed-off-by: Sameeh Jubran <sameehj@amazon.com>
---
drivers/net/ethernet/amazon/ena/ena_ethtool.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/drivers/net/ethernet/amazon/ena/ena_ethtool.c b/drivers/net/ethernet/amazon/ena/ena_ethtool.c
index 3ad661fd9..03b4ae7ba 100644
--- a/drivers/net/ethernet/amazon/ena/ena_ethtool.c
+++ b/drivers/net/ethernet/amazon/ena/ena_ethtool.c
@@ -734,14 +734,8 @@ static void ena_get_channels(struct net_device *netdev,
{
struct ena_adapter *adapter = netdev_priv(netdev);
- channels->max_rx = adapter->num_io_queues;
- channels->max_tx = adapter->num_io_queues;
- channels->max_other = 0;
- channels->max_combined = 0;
- channels->rx_count = adapter->num_io_queues;
- channels->tx_count = adapter->num_io_queues;
- channels->other_count = 0;
- channels->combined_count = 0;
+ channels->max_combined = adapter->num_io_queues;
+ channels->combined_count = adapter->num_io_queues;
}
static int ena_get_tunable(struct net_device *netdev,
--
2.17.1
next prev parent reply other threads:[~2019-10-06 12:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-06 12:33 [PATCH V3 net-next 0/6] sameehj
2019-10-06 12:33 ` [PATCH V3 net-next 1/6] net: ena: change num_queues to num_io_queues for clarity and consistency sameehj
2019-10-06 12:33 ` [PATCH V3 net-next 2/6] net: ena: multiple queue creation related cleanups sameehj
2019-10-06 12:33 ` sameehj [this message]
2019-10-06 12:33 ` [PATCH V3 net-next 4/6] net: ena: make ethtool -l show correct max number of queues sameehj
2019-10-06 12:33 ` [PATCH V3 net-next 5/6] net: ena: remove redundant print of " sameehj
2019-10-06 12:33 ` [PATCH V3 net-next 6/6] net: ena: ethtool: support set_channels callback sameehj
2019-10-07 13:30 ` [PATCH V3 net-next 0/6] David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191006123328.24210-4-sameehj@amazon.com \
--to=sameehj@amazon.com \
--cc=akiyano@amazon.com \
--cc=aliguori@amazon.com \
--cc=alisaidi@amazon.com \
--cc=benh@amazon.com \
--cc=davem@davemloft.net \
--cc=dwmw@amazon.com \
--cc=gtzalik@amazon.com \
--cc=matua@amazon.com \
--cc=msw@amazon.com \
--cc=nafea@amazon.com \
--cc=netanel@amazon.com \
--cc=netdev@vger.kernel.org \
--cc=saeedb@amazon.com \
--cc=zorik@amazon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.