Lines Matching refs:port

172 ocelot_flower_parse_ingress_vlan_modify(struct ocelot *ocelot, int port,
177 struct ocelot_port *ocelot_port = ocelot->ports[port];
231 static int ocelot_flower_parse_action(struct ocelot *ocelot, int port,
372 "Destination not an ocelot port");
393 "Destination not an ocelot port");
422 err = ocelot_flower_parse_ingress_vlan_modify(ocelot, port,
520 static int ocelot_flower_parse_indev(struct ocelot *ocelot, int port,
542 dev = ocelot->ops->port_to_netdev(ocelot, port);
549 "Can't find the ingress port to match on");
556 "Can only offload an ocelot ingress port");
559 if (ingress_port == port) {
561 "Ingress port is equal to the egress port");
572 ocelot_flower_parse_key(struct ocelot *ocelot, int port, bool ingress,
605 /* For VCAP ES0 (egress rewriter) we can match on the ingress port */
607 ret = ocelot_flower_parse_indev(ocelot, port, f, filter);
640 * therefore if other matches(port, tcp flags, etc) are added
782 static int ocelot_flower_parse(struct ocelot *ocelot, int port, bool ingress,
792 ret = ocelot_flower_parse_action(ocelot, port, ingress, f, filter);
800 return ocelot_flower_parse_key(ocelot, port, ingress, f, filter);
804 *ocelot_vcap_filter_create(struct ocelot *ocelot, int port, bool ingress,
814 filter->ingress_port_mask = BIT(port);
819 filter->egress_port.value = port;
868 int ocelot_cls_flower_replace(struct ocelot *ocelot, int port,
896 filter->ingress_port_mask |= BIT(port);
902 filter = ocelot_vcap_filter_create(ocelot, port, ingress, f);
906 ret = ocelot_flower_parse(ocelot, port, ingress, f, filter);
927 return ocelot->ops->psfp_filter_add(ocelot, port, f);
937 int ocelot_cls_flower_destroy(struct ocelot *ocelot, int port,
965 filter->ingress_port_mask &= ~BIT(port);
974 int ocelot_cls_flower_stats(struct ocelot *ocelot, int port,