net: ethtool support to configure number of channels
authoramit salecha <amit.salecha@qlogic.com>
Thu, 7 Apr 2011 01:58:42 +0000 (01:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2011 18:31:04 +0000 (11:31 -0700)
commit8b5933c380fc66a6311739f9b36a812383f82141
tree0552732a62a704756069e34cb945ee191a733332
parent6139e75f4a413bdc8f366fc11e437347be8abc59
net: ethtool support to configure number of channels

Ethtool support to configure RX, TX and other channels. combined field
in struct ethtool_channels to reflect set of channel (RX, TX or other).
Other channel can be link interrupts, SR-IOV coordination etc.

ETHTOOL_GCHANNELS will report max and current number of RX channels,
max and current number of TX channels, max and current number of other channel
or max and current number of combined channel.

Number of channel can be modify upto max number of channel through
ETHTOOL_SCHANNELS command.

Ben Hutchings:
o define 'combined' and 'other' types.  Most multiqueue drivers pair up RX and TX
  queues so that most channels combine RX and TX work.
o Please could you use a kernel-doc comment to describe the structure.

Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Reviewed-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ethtool.h
net/core/ethtool.c