Lines Matching refs:cls
46 struct tc_cls_u32_offload *cls, in fill_match_fields() argument
55 for (i = 0; i < cls->knode.sel->nkeys; i++) { in fill_match_fields()
56 off = cls->knode.sel->keys[i].off; in fill_match_fields()
57 val = cls->knode.sel->keys[i].val; in fill_match_fields()
58 mask = cls->knode.sel->keys[i].mask; in fill_match_fields()
62 if (!cls->knode.sel->keys[i].offmask) in fill_match_fields()
66 if (cls->knode.sel->keys[i].offmask) in fill_match_fields()
92 struct tc_cls_u32_offload *cls) in fill_action_fields() argument
99 exts = cls->knode.exts; in fill_action_fields()
149 int cxgb4_config_knode(struct net_device *dev, struct tc_cls_u32_offload *cls) in cxgb4_config_knode() argument
152 struct netlink_ext_ack *extack = cls->common.extack; in cxgb4_config_knode()
154 __be16 protocol = cls->common.protocol; in cxgb4_config_knode()
177 TC_U32_NODE(cls->knode.handle)); in cxgb4_config_knode()
185 uhtid = TC_U32_USERHTID(cls->knode.handle); in cxgb4_config_knode()
186 link_uhtid = TC_U32_USERHTID(cls->knode.link_handle); in cxgb4_config_knode()
202 fs.tc_prio = cls->common.prio; in cxgb4_config_knode()
203 fs.tc_cookie = cls->knode.handle; in cxgb4_config_knode()
245 if (next[i].sel.offoff != cls->knode.sel->offoff || in cxgb4_config_knode()
246 next[i].sel.offshift != cls->knode.sel->offshift || in cxgb4_config_knode()
247 next[i].sel.offmask != cls->knode.sel->offmask || in cxgb4_config_knode()
248 next[i].sel.off != cls->knode.sel->off) in cxgb4_config_knode()
255 for (j = 0; j < cls->knode.sel->nkeys; j++) { in cxgb4_config_knode()
256 off = cls->knode.sel->keys[j].off; in cxgb4_config_knode()
257 val = cls->knode.sel->keys[j].val; in cxgb4_config_knode()
258 mask = cls->knode.sel->keys[j].mask; in cxgb4_config_knode()
276 ret = fill_match_fields(adapter, &fs, cls, in cxgb4_config_knode()
283 link->link_handle = cls->knode.handle; in cxgb4_config_knode()
302 ret = fill_match_fields(adapter, &fs, cls, in cxgb4_config_knode()
308 ret = fill_match_fields(adapter, &fs, cls, start, false); in cxgb4_config_knode()
315 ret = fill_action_fields(adapter, &fs, cls); in cxgb4_config_knode()
352 int cxgb4_delete_knode(struct net_device *dev, struct tc_cls_u32_offload *cls) in cxgb4_delete_knode() argument
376 if (f->valid && f->fs.tc_cookie == cls->knode.handle) { in cxgb4_delete_knode()
392 if (f->valid && f->fs.tc_cookie == cls->knode.handle) { in cxgb4_delete_knode()
421 handle = cls->knode.handle; in cxgb4_delete_knode()
422 uhtid = TC_U32_USERHTID(cls->knode.handle); in cxgb4_delete_knode()