Thread (41 messages) 41 messages, 5 authors, 2017-06-29

Re: [PATCH net-next v2 5/9] nfp: extend flower matching capabilities

From: Or Gerlitz <hidden>
Date: 2017-06-29 14:33:33

On Wed, Jun 28, 2017 at 11:29 PM, Simon Horman
[off-list ref] wrote:
+nfp_flower_compile_meta_tci(struct nfp_flower_meta_two *frame,
+                           struct tc_cls_flower_offload *flow, u8 key_type,
+                           bool mask_version)
what's the role of the mask_version flag here and elsewhere in the
sister functions?
+{
+       struct flow_dissector_key_vlan *flow_vlan;
+       u16 tmp_tci;
+
+       /* Populate the metadata frame. */
+       frame->nfp_flow_key_layer = key_type;
+       frame->mask_id = ~0;
+
+       if (mask_version) {
+               frame->tci = cpu_to_be16(~0);
+               return;
+       }
+
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help