RDMA/irdma: Set VLAN in UD work completion correctly
authorMustafa Ismail <mustafa.ismail@intel.com>
Tue, 19 Oct 2021 15:16:53 +0000 (10:16 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 19 Oct 2021 23:22:01 +0000 (20:22 -0300)
commitcc07b73ef11d11d4359fb104d0199b22451dd3d8
treeef94505a94f128ef12aeea5812ac25469f6d4bf3
parent5508546631a0f555d7088203dec2614e41b5106e
RDMA/irdma: Set VLAN in UD work completion correctly

Currently VLAN is reported in UD work completion when VLAN id is zero,
i.e. no VLAN case.

Report VLAN in UD work completion only when VLAN id is non-zero.

Fixes: b48c24c2d710 ("RDMA/irdma: Implement device supported verb APIs")
Link: https://lore.kernel.org/r/20211019151654.1943-1-shiraz.saleem@intel.com
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/irdma/verbs.c