Commit d185efc1 authored by Ganesh Goudar's avatar Ganesh Goudar Committed by David S. Miller

cxgb4: increase max tx rate limit to 100 Gbps

T6 cards can support up to 100 G speeds. So, increase
max programmable tx rate limit to 100 Gbps.
Signed-off-by: default avatarGanesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 35951393
......@@ -2870,11 +2870,11 @@ static int cxgb_set_tx_maxrate(struct net_device *dev, int index, u32 rate)
/* Convert from Mbps to Kbps */
req_rate = rate << 10;
/* Max rate is 10 Gbps */
/* Max rate is 100 Gbps */
if (req_rate >= SCHED_MAX_RATE_KBPS) {
dev_err(adap->pdev_dev,
"Invalid rate %u Mbps, Max rate is %u Gbps\n",
rate, SCHED_MAX_RATE_KBPS);
"Invalid rate %u Mbps, Max rate is %u Mbps\n",
rate, SCHED_MAX_RATE_KBPS >> 10);
return -ERANGE;
}
......
......@@ -42,8 +42,8 @@
#define FW_SCHED_CLS_NONE 0xffffffff
/* Max rate that can be set to a scheduling class is 10 Gbps */
#define SCHED_MAX_RATE_KBPS 10000000U
/* Max rate that can be set to a scheduling class is 100 Gbps */
#define SCHED_MAX_RATE_KBPS 100000000U
enum {
SCHED_STATE_ACTIVE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment