]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2net: support asymmetric rx/tx queue counts
authorSathya Perla <sathya.perla@broadcom.com>
Wed, 22 Jun 2016 12:54:54 +0000 (08:54 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 11 Jul 2017 07:10:00 +0000 (00:10 -0700)
commit045495738356d9375b4a34e001b8edbed3b7459c
tree5ac33d19d109f91b9ae845106a7070fbc715d645
parent7abc664d380e764930270966a91fd19bcae87e3e
be2net: support asymmetric rx/tx queue counts

be2net so far supported creation of RX/TX queues only in pairs.
On configs where rx and tx queue counts are different, creation of only
the lesser number of queues has been supported.

This patch now allows a combination of RX/TX-only channels along with
combined channels. N TX-queues and M RX-queues can be created with the
following cmds:
ethtool -L ethX combined N rx M-N  (when N < M)
ethtool -L ethX combined M tx N-M (when M < N)

Setting both RX-only and TX-only channels is still not supported.
It is mandatory to create atleast one combined channel.

Orabug: 26403655

Signed-off-by: Sathya Perla <sathya.perla@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Suresh Reddy <suresh.reddy@broadcom.com>
Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
Reviewed-by: Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_ethtool.c
drivers/net/ethernet/emulex/benet/be_main.c