Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1434794
| From | Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 0/4] net: ethernet: ti: cpsw: add multi-queue support |
| Date | 2016-06-30 21:10 +0200 |
| Message-ID | <rPPvA-4YM-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
This series is intended to allow cpsw driver to use its ability of h/w
shaper to send/receive data with up to 8 tx and rx queues. This series
doesn't contain interface to configure h/w shaper itself, it contains
only multi queue support part and ability to configure number of tx/rx
queues with ethtool. Default shaper mode - priority mode. The h/w
shaper configuration will be added with separate patch series.
This series doesn't affect on net throughput.
Tested on:
am572x-idk, 1Gbps link
am335-boneblack, 100Mbps link.
Based on:
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
A simple example for splitting traffic on queues:
#check how many queues are supported and active:
$ ethtool -l eth0
#increase number of active rx and tx queues,
#by default 1 rx and 1 tx queue
#can be set any combination of 0 < rx <= 8 and 0 < tx <= 8
$ ethtool -L eth0 rx 8 tx 8
#set multi-queue-aware queuing discipline
$ tc qdisc add dev eth0 root handle 1: multiq
#send packets with ip 172.22.39.12 to queue #5 which can be
#prioritized or throughput limited by h/w shaper.
$ tc filter add dev eth0 parent 1: protocol ip prio 1 u32 \
match ip dst 172.22.39.12 \
action skbedit queue_mapping 5
#get statistic for active channels:
ethtool -S eth0
Ivan Khoronzhuk (4):
net: ethernet: ti: davinci_cpdma: split descs num between all channels
net: ethernet: ti: cpsw: add multi queue support
net: ethernet: ti: davinci_cpdma: move cpdma channel struct macroses
to internals
net: ethernet: ti: cpsw: add ethtool channels support
drivers/net/ethernet/ti/cpsw.c | 533 +++++++++++++++++++++++++-------
drivers/net/ethernet/ti/davinci_cpdma.c | 79 ++++-
drivers/net/ethernet/ti/davinci_cpdma.h | 13 +-
drivers/net/ethernet/ti/davinci_emac.c | 8 +-
4 files changed, 505 insertions(+), 128 deletions(-)
--
1.9.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 0/4] net: ethernet: ti: cpsw: add multi-queue support Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> - 2016-06-30 21:10 +0200
[PATCH 2/4] net: ethernet: ti: cpsw: add multi queue support Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> - 2016-06-30 21:10 +0200
Re: [PATCH 2/4] net: ethernet: ti: cpsw: add multi queue support Grygorii Strashko <grygorii.strashko@ti.com> - 2016-07-08 15:20 +0200
[PATCH 4/4] net: ethernet: ti: cpsw: add ethtool channels support Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> - 2016-06-30 21:10 +0200
Re: [PATCH 4/4] net: ethernet: ti: cpsw: add ethtool channels support Grygorii Strashko <grygorii.strashko@ti.com> - 2016-07-08 15:40 +0200
[PATCH 1/4] net: ethernet: ti: davinci_cpdma: split descs num between all channels Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> - 2016-06-30 21:10 +0200
Re: [PATCH 1/4] net: ethernet: ti: davinci_cpdma: split descs num between all channels David Miller <davem@davemloft.net> - 2016-07-01 22:50 +0200
Re: [PATCH 1/4] net: ethernet: ti: davinci_cpdma: split descs num between all channels Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> - 2016-07-03 11:00 +0200
csiph-web