IB/cma: Honor traffic class from lower netdevice for RoCE
authorParav Pandit <parav@mellanox.com>
Tue, 15 Oct 2019 07:20:58 +0000 (10:20 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 22 Oct 2019 18:56:22 +0000 (15:56 -0300)
commitd3bd93967015d974bb95d47cc14edd5adbea814f
treeacaf4bb70ca0a57f2df886505a8a9d9442b9207c
parent4061ff7aa379fa770a82da0ed7ec4f9163034518
IB/cma: Honor traffic class from lower netdevice for RoCE

When a macvlan netdevice is used for RoCE, consider the tos->prio->tc
mapping as SL using its lower netdevice.

1. If the lower netdevice is a VLAN netdevice, consider the VLAN netdevice
   and it's parent netdevice for mapping
2. If the lower netdevice is not a VLAN netdevice, consider tc mapping
   directly from the lower netdevice

Link: https://lore.kernel.org/r/20191015072058.17347-1-leon@kernel.org
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cma.c