|
@@ -111,8 +111,21 @@ nfp_flower_compile_mac(struct nfp_flower_mac_mpls *frame,
|
|
|
ether_addr_copy(frame->mac_src, &addr->src[0]);
|
|
|
}
|
|
|
|
|
|
- if (mask_version)
|
|
|
- frame->mpls_lse = cpu_to_be32(~0);
|
|
|
+ if (dissector_uses_key(flow->dissector, FLOW_DISSECTOR_KEY_MPLS)) {
|
|
|
+ struct flow_dissector_key_mpls *mpls;
|
|
|
+ u32 t_mpls;
|
|
|
+
|
|
|
+ mpls = skb_flow_dissector_target(flow->dissector,
|
|
|
+ FLOW_DISSECTOR_KEY_MPLS,
|
|
|
+ target);
|
|
|
+
|
|
|
+ t_mpls = FIELD_PREP(NFP_FLOWER_MASK_MPLS_LB, mpls->mpls_label) |
|
|
|
+ FIELD_PREP(NFP_FLOWER_MASK_MPLS_TC, mpls->mpls_tc) |
|
|
|
+ FIELD_PREP(NFP_FLOWER_MASK_MPLS_BOS, mpls->mpls_bos) |
|
|
|
+ NFP_FLOWER_MASK_MPLS_Q;
|
|
|
+
|
|
|
+ frame->mpls_lse = cpu_to_be32(t_mpls);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
static void
|