]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc5acaf49c66fc9a47f0084afad92153b5455d4a8
tree5827e30dd7835a04ff116d12faa51286c2de0b0a
parentf10b2a6dbfab8aa8cdbfb9c9dc5eed3f8ce39db9
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