File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ static struct sk_buff *rdma_build_skb(struct ib_device *device,
34
34
skb_push (skb , sizeof (struct udphdr ));
35
35
skb_reset_transport_header (skb );
36
36
uh = udp_hdr (skb );
37
- uh -> source = htons (0xC000 );
37
+ uh -> source =
38
+ htons (rdma_flow_label_to_udp_sport (ah_attr -> grh .flow_label ));
38
39
uh -> dest = htons (ROCE_V2_UDP_DPORT );
39
40
uh -> len = htons (sizeof (struct udphdr ));
40
41
@@ -114,7 +115,8 @@ struct net_device *rdma_lag_get_ah_roce_slave(struct ib_device *device,
114
115
struct net_device * master ;
115
116
116
117
if (!(ah_attr -> type == RDMA_AH_ATTR_TYPE_ROCE &&
117
- ah_attr -> grh .sgid_attr -> gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP ))
118
+ ah_attr -> grh .sgid_attr -> gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP &&
119
+ ah_attr -> grh .flow_label ))
118
120
return NULL ;
119
121
120
122
rcu_read_lock ();
You can’t perform that action at this time.
0 commit comments