Lines Matching defs:port
5 static int lan966x_tc_matchall_add(struct lan966x_port *port,
20 return lan966x_police_port_add(port, &f->rule->action, act,
24 return lan966x_mirror_port_add(port, act, f->cookie,
27 return lan966x_goto_port_add(port, f->common.chain_index,
39 static int lan966x_tc_matchall_del(struct lan966x_port *port,
43 if (f->cookie == port->tc.police_id) {
44 return lan966x_police_port_del(port, f->cookie,
46 } else if (f->cookie == port->tc.ingress_mirror_id ||
47 f->cookie == port->tc.egress_mirror_id) {
48 return lan966x_mirror_port_del(port, ingress,
51 return lan966x_goto_port_del(port, f->cookie, f->common.extack);
57 static int lan966x_tc_matchall_stats(struct lan966x_port *port,
61 if (f->cookie == port->tc.police_id) {
62 lan966x_police_port_stats(port, &f->stats);
63 } else if (f->cookie == port->tc.ingress_mirror_id ||
64 f->cookie == port->tc.egress_mirror_id) {
65 lan966x_mirror_port_stats(port, &f->stats, ingress);
75 int lan966x_tc_matchall(struct lan966x_port *port,
81 return lan966x_tc_matchall_add(port, f, ingress);
83 return lan966x_tc_matchall_del(port, f, ingress);
85 return lan966x_tc_matchall_stats(port, f, ingress);