nvme-tcp: Add TOS for tcp transport
authorIsrael Rukshin <israelr@mellanox.com>
Sun, 18 Aug 2019 09:08:54 +0000 (12:08 +0300)
committerSagi Grimberg <sagi@grimberg.me>
Thu, 29 Aug 2019 19:55:02 +0000 (12:55 -0700)
commitbb13985d5a55b2830095640a2e64145bcb34929b
treeb5df635a80bfbb6c4a6185f5bc362f6e2a4aeaf4
parent9924b0304ab278406aaee9184a1a2032b4778c65
nvme-tcp: Add TOS for tcp transport

TOS provide clients the ability to segregate traffic flows for
different type of data.
One of the TOS usage is bandwidth management which allows setting bandwidth
limits for QoS classes, e.g. 80% bandwidth to controllers at QoS class A
and 20% to controllers at QoS class B.

usage examples:
nvme connect --tos=0 --transport=tcp --traddr=10.0.1.1 --nqn=test-nvme

Signed-off-by: Israel Rukshin <israelr@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/tcp.c