Lines Matching refs:ingress
260 tc_port_matchall->ingress.viid_mirror = pi->viid_mirror; in cxgb4_matchall_mirror_alloc()
275 if (!tc_port_matchall->ingress.viid_mirror) in cxgb4_matchall_mirror_free()
279 tc_port_matchall->ingress.viid_mirror = 0; in cxgb4_matchall_mirror_free()
290 ret = cxgb4_del_filter(dev, tc_port_matchall->ingress.tid[filter_type], in cxgb4_matchall_del_filter()
291 &tc_port_matchall->ingress.fs[filter_type]); in cxgb4_matchall_del_filter()
295 tc_port_matchall->ingress.tid[filter_type] = 0; in cxgb4_matchall_del_filter()
323 fs = &tc_port_matchall->ingress.fs[filter_type]; in cxgb4_matchall_add_filter()
343 tc_port_matchall->ingress.tid[filter_type] = fidx; in cxgb4_matchall_add_filter()
367 tc_port_matchall->ingress.state = CXGB4_MATCHALL_STATE_ENABLED; in cxgb4_matchall_alloc_filter()
396 tc_port_matchall->ingress.packets = 0; in cxgb4_matchall_free_filter()
397 tc_port_matchall->ingress.bytes = 0; in cxgb4_matchall_free_filter()
398 tc_port_matchall->ingress.last_used = 0; in cxgb4_matchall_free_filter()
399 tc_port_matchall->ingress.state = CXGB4_MATCHALL_STATE_DISABLED; in cxgb4_matchall_free_filter()
405 bool ingress) in cxgb4_tc_matchall_replace() argument
414 if (ingress) { in cxgb4_tc_matchall_replace()
415 if (tc_port_matchall->ingress.state == in cxgb4_tc_matchall_replace()
446 bool ingress) in cxgb4_tc_matchall_destroy() argument
453 if (ingress) { in cxgb4_tc_matchall_destroy()
459 tc_port_matchall->ingress.fs[0].tc_cookie) in cxgb4_tc_matchall_destroy()
477 struct cxgb4_matchall_ingress_entry *ingress; in cxgb4_tc_matchall_stats() local
484 if (tc_port_matchall->ingress.state == CXGB4_MATCHALL_STATE_DISABLED) in cxgb4_tc_matchall_stats()
487 ingress = &tc_port_matchall->ingress; in cxgb4_tc_matchall_stats()
489 ret = cxgb4_get_filter_counters(dev, ingress->tid[i], in cxgb4_tc_matchall_stats()
491 ingress->fs[i].hash); in cxgb4_tc_matchall_stats()
499 if (tc_port_matchall->ingress.packets != packets) { in cxgb4_tc_matchall_stats()
501 bytes - tc_port_matchall->ingress.bytes, in cxgb4_tc_matchall_stats()
502 packets - tc_port_matchall->ingress.packets, in cxgb4_tc_matchall_stats()
503 0, tc_port_matchall->ingress.last_used, in cxgb4_tc_matchall_stats()
506 tc_port_matchall->ingress.packets = packets; in cxgb4_tc_matchall_stats()
507 tc_port_matchall->ingress.bytes = bytes; in cxgb4_tc_matchall_stats()
508 tc_port_matchall->ingress.last_used = jiffies; in cxgb4_tc_matchall_stats()
524 if (tc_port_matchall->ingress.state == CXGB4_MATCHALL_STATE_ENABLED) in cxgb4_matchall_disable_offload()