diff options
author | Amir Vadai <amirv@mellanox.com> | 2012-04-04 17:33:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-05 05:08:04 -0400 |
commit | 366cddb4028858079a9a8145bd713c13a9edb3dc (patch) | |
tree | 1b6663c2ba6fa9dda6657d090be856d953e4a9e8 /drivers/infiniband | |
parent | d4a968658ce7417d78638387343b6197839111af (diff) |
IB/rdma_cm: TOS <=> UP mapping for IBoE
Both tagged traffic and untagged traffic use tc tool mapping.
Treat RDMA TOS same as IP TOS when mapping to SL
Signed-off-by: Amir Vadai <amirv@mellanox.com>
CC: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/core/cma.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index e3e470fecaa9..59fbd704a1ec 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c | |||
@@ -42,6 +42,7 @@ | |||
42 | #include <linux/inetdevice.h> | 42 | #include <linux/inetdevice.h> |
43 | #include <linux/slab.h> | 43 | #include <linux/slab.h> |
44 | #include <linux/module.h> | 44 | #include <linux/module.h> |
45 | #include <net/route.h> | ||
45 | 46 | ||
46 | #include <net/tcp.h> | 47 | #include <net/tcp.h> |
47 | #include <net/ipv6.h> | 48 | #include <net/ipv6.h> |
@@ -1826,7 +1827,10 @@ static int cma_resolve_iboe_route(struct rdma_id_private *id_priv) | |||
1826 | route->path_rec->reversible = 1; | 1827 | route->path_rec->reversible = 1; |
1827 | route->path_rec->pkey = cpu_to_be16(0xffff); | 1828 | route->path_rec->pkey = cpu_to_be16(0xffff); |
1828 | route->path_rec->mtu_selector = IB_SA_EQ; | 1829 | route->path_rec->mtu_selector = IB_SA_EQ; |
1829 | route->path_rec->sl = id_priv->tos >> 5; | 1830 | route->path_rec->sl = netdev_get_prio_tc_map( |
1831 | ndev->priv_flags & IFF_802_1Q_VLAN ? | ||
1832 | vlan_dev_real_dev(ndev) : ndev, | ||
1833 | rt_tos2priority(id_priv->tos)); | ||
1830 | 1834 | ||
1831 | route->path_rec->mtu = iboe_get_mtu(ndev->mtu); | 1835 | route->path_rec->mtu = iboe_get_mtu(ndev->mtu); |
1832 | route->path_rec->rate_selector = IB_SA_EQ; | 1836 | route->path_rec->rate_selector = IB_SA_EQ; |