Lines Matching refs:ingress
212 tc_port_matchall->ingress.viid_mirror = pi->viid_mirror; in cxgb4_matchall_mirror_alloc()
227 if (!tc_port_matchall->ingress.viid_mirror) in cxgb4_matchall_mirror_free()
231 tc_port_matchall->ingress.viid_mirror = 0; in cxgb4_matchall_mirror_free()
242 ret = cxgb4_del_filter(dev, tc_port_matchall->ingress.tid[filter_type], in cxgb4_matchall_del_filter()
243 &tc_port_matchall->ingress.fs[filter_type]); in cxgb4_matchall_del_filter()
247 tc_port_matchall->ingress.tid[filter_type] = 0; in cxgb4_matchall_del_filter()
275 fs = &tc_port_matchall->ingress.fs[filter_type]; in cxgb4_matchall_add_filter()
295 tc_port_matchall->ingress.tid[filter_type] = fidx; in cxgb4_matchall_add_filter()
319 tc_port_matchall->ingress.state = CXGB4_MATCHALL_STATE_ENABLED; in cxgb4_matchall_alloc_filter()
348 tc_port_matchall->ingress.packets = 0; in cxgb4_matchall_free_filter()
349 tc_port_matchall->ingress.bytes = 0; in cxgb4_matchall_free_filter()
350 tc_port_matchall->ingress.last_used = 0; in cxgb4_matchall_free_filter()
351 tc_port_matchall->ingress.state = CXGB4_MATCHALL_STATE_DISABLED; in cxgb4_matchall_free_filter()
357 bool ingress) in cxgb4_tc_matchall_replace() argument
366 if (ingress) { in cxgb4_tc_matchall_replace()
367 if (tc_port_matchall->ingress.state == in cxgb4_tc_matchall_replace()
398 bool ingress) in cxgb4_tc_matchall_destroy() argument
405 if (ingress) { in cxgb4_tc_matchall_destroy()
411 tc_port_matchall->ingress.fs[0].tc_cookie) in cxgb4_tc_matchall_destroy()
429 struct cxgb4_matchall_ingress_entry *ingress; in cxgb4_tc_matchall_stats() local
436 if (tc_port_matchall->ingress.state == CXGB4_MATCHALL_STATE_DISABLED) in cxgb4_tc_matchall_stats()
439 ingress = &tc_port_matchall->ingress; in cxgb4_tc_matchall_stats()
441 ret = cxgb4_get_filter_counters(dev, ingress->tid[i], in cxgb4_tc_matchall_stats()
443 ingress->fs[i].hash); in cxgb4_tc_matchall_stats()
451 if (tc_port_matchall->ingress.packets != packets) { in cxgb4_tc_matchall_stats()
453 bytes - tc_port_matchall->ingress.bytes, in cxgb4_tc_matchall_stats()
454 packets - tc_port_matchall->ingress.packets, in cxgb4_tc_matchall_stats()
455 0, tc_port_matchall->ingress.last_used, in cxgb4_tc_matchall_stats()
458 tc_port_matchall->ingress.packets = packets; in cxgb4_tc_matchall_stats()
459 tc_port_matchall->ingress.bytes = bytes; in cxgb4_tc_matchall_stats()
460 tc_port_matchall->ingress.last_used = jiffies; in cxgb4_tc_matchall_stats()
476 if (tc_port_matchall->ingress.state == CXGB4_MATCHALL_STATE_ENABLED) in cxgb4_matchall_disable_offload()