ixgbe: Add support for displaying the number of Tx/Rx channels
authorAlexander Duyck <alexander.h.duyck@intel.com>
Sat, 12 Jan 2013 06:33:52 +0000 (06:33 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 16 Feb 2013 06:47:51 +0000 (22:47 -0800)
commit5348c9dbf379dc5b70e3a6a4f2f79c2c43720b37
tree4d0a0b045ef00feb235a935608dfd74237523b2d
parentcca73c59c414f15d02fac69c947a9efc15bca271
ixgbe: Add support for displaying the number of Tx/Rx channels

This patch adds support for the ethtool get_channels operation.

Since the ixgbe driver has to support DCB as well as the other modes the
assumption I made here is that the number of channels in DCB modes refers
to the number of queues per traffic class, not the number of queues total.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Reviewed-by: John Fastabend <john.r.fastabend@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c