net: thunderx: Support to configure queue sizes from ethtool
authorSunil Goutham <sgoutham@cavium.com>
Wed, 25 Jan 2017 12:06:23 +0000 (17:36 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jan 2017 19:42:36 +0000 (14:42 -0500)
commitfff4ffdde175bfa4516394db95ae56153224664b
tree5827e30dd7835a04ff116d12faa51286c2de0b0a
parent3979ad7e82dfe3fb94a51c3915e64ec64afa45c3
net: thunderx: Support to configure queue sizes from ethtool

Adds support to set Rx/Tx queue sizes from ethtool. Fixes
an issue with retrieving queue size. Also sets SQ's CQ_LIMIT
based on configured Tx queue size such that HW doesn't process
SQEs when there is no sufficient space in CQ.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
drivers/net/ethernet/cavium/thunder/nicvf_queues.h