Skip to content

Commit 92cf36e

Browse files
Vijay Immanueljgunthorpe
authored andcommitted
IB/rxe: support for 802.1q VLAN on the listener
Set the vlan flag and vlan_id field in the wc for rdma_listen() to work over VLAN. This is required by ib_init_ah_attr_from_wc() which is called by the CM REQ handler. Signed-off-by: Vijay Immanuel <[email protected]> Reviewed-by: Yonatan Cohen <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 6a965ee commit 92cf36e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/infiniband/sw/rxe/rxe_resp.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,11 @@ static enum resp_states do_complete(struct rxe_qp *qp,
884884
else
885885
wc->network_hdr_type = RDMA_NETWORK_IPV6;
886886

887+
if (is_vlan_dev(skb->dev)) {
888+
wc->wc_flags |= IB_WC_WITH_VLAN;
889+
wc->vlan_id = vlan_dev_vlan_id(skb->dev);
890+
}
891+
887892
if (pkt->mask & RXE_IMMDT_MASK) {
888893
wc->wc_flags |= IB_WC_WITH_IMM;
889894
wc->ex.imm_data = immdt_imm(pkt);

0 commit comments

Comments
 (0)