Home
last modified time | relevance | path

Searched refs:tag_ops (Results 1 – 12 of 12) sorted by relevance

/Linux-v6.1/net/dsa/
Ddsa2.c258 if (dst->tag_ops) in dsa_tree_free()
259 dsa_tag_driver_put(dst->tag_ops); in dsa_tree_free()
825 const struct dsa_device_ops *tag_ops = ds->dst->tag_ops; in dsa_switch_setup_tag_protocol() local
829 if (tag_ops->proto == dst->default_proto) in dsa_switch_setup_tag_protocol()
833 err = ds->ops->change_tag_protocol(ds, tag_ops->proto); in dsa_switch_setup_tag_protocol()
837 tag_ops->name, ERR_PTR(err)); in dsa_switch_setup_tag_protocol()
842 if (tag_ops->connect) { in dsa_switch_setup_tag_protocol()
843 err = tag_ops->connect(ds); in dsa_switch_setup_tag_protocol()
849 err = ds->ops->connect_tag_protocol(ds, tag_ops->proto); in dsa_switch_setup_tag_protocol()
853 tag_ops->name, ERR_PTR(err)); in dsa_switch_setup_tag_protocol()
[all …]
Dswitch.c818 const struct dsa_device_ops *tag_ops = info->tag_ops; in dsa_switch_change_tag_proto() local
827 err = ds->ops->change_tag_protocol(ds, tag_ops->proto); in dsa_switch_change_tag_proto()
832 dsa_port_set_tag_protocol(cpu_dp, tag_ops); in dsa_switch_change_tag_proto()
863 const struct dsa_device_ops *tag_ops = info->tag_ops; in dsa_switch_connect_tag_proto() local
867 if (tag_ops->connect) { in dsa_switch_connect_tag_proto()
868 err = tag_ops->connect(ds); in dsa_switch_connect_tag_proto()
877 err = ds->ops->connect_tag_protocol(ds, tag_ops->proto); in dsa_switch_connect_tag_proto()
880 if (tag_ops->disconnect) in dsa_switch_connect_tag_proto()
881 tag_ops->disconnect(ds); in dsa_switch_connect_tag_proto()
892 const struct dsa_device_ops *tag_ops = info->tag_ops; in dsa_switch_disconnect_tag_proto() local
[all …]
Dmaster.c278 const struct dsa_device_ops *ops = dev->dsa_ptr->tag_ops; in dsa_master_set_promiscuity()
295 dsa_tag_protocol_to_str(cpu_dp->tag_ops)); in tagging_show()
306 old_tag_ops = cpu_dp->tag_ops; in tagging_store()
358 const struct dsa_device_ops *tag_ops = cpu_dp->tag_ops; in dsa_master_setup() local
363 mtu = ETH_DATA_LEN + dsa_tag_protocol_overhead(tag_ops); in dsa_master_setup()
Ddsa_priv.h109 const struct dsa_device_ops *tag_ops; member
215 const struct dsa_device_ops *tag_ops);
566 const struct dsa_device_ops *tag_ops,
Dport.c1526 const struct dsa_device_ops *tag_ops) in dsa_port_set_tag_protocol() argument
1528 cpu_dp->rcv = tag_ops->rcv; in dsa_port_set_tag_protocol()
1529 cpu_dp->tag_ops = tag_ops; in dsa_port_set_tag_protocol()
Dslave.c1885 new_master_mtu = largest_mtu + dsa_tag_protocol_overhead(cpu_dp->tag_ops); in dsa_slave_change_mtu()
1921 dsa_tag_protocol_overhead(cpu_dp->tag_ops)); in dsa_slave_change_mtu()
2196 path->dsa.proto = cpu_dp->tag_ops->proto; in dsa_slave_fill_forward_path()
2321 slave->needed_headroom = cpu_dp->tag_ops->needed_headroom; in dsa_slave_setup_tagger()
2322 slave->needed_tailroom = cpu_dp->tag_ops->needed_tailroom; in dsa_slave_setup_tagger()
2330 p->xmit = cpu_dp->tag_ops->xmit; in dsa_slave_setup_tagger()
/Linux-v6.1/include/linux/dsa/
Dsja1105.h73 BUG_ON(ds->dst->tag_ops->proto != DSA_TAG_PROTO_SJA1105 && in sja1105_tagger_data()
74 ds->dst->tag_ops->proto != DSA_TAG_PROTO_SJA1110); in sja1105_tagger_data()
Docelot.h179 BUG_ON(ds->dst->tag_ops->proto != DSA_TAG_PROTO_OCELOT_8021Q); in ocelot_8021q_tagger_data()
/Linux-v6.1/include/net/
Ddsa.h154 const struct dsa_device_ops *tag_ops; member
263 const struct dsa_device_ops *tag_ops; member
1331 const struct dsa_device_ops *ops = skb->dev->dsa_ptr->tag_ops; in dsa_tag_generic_flow_dissect()
/Linux-v6.1/drivers/net/ethernet/mediatek/
Dmtk_ppe_offload.c174 if (dp->cpu_dp->tag_ops->proto != DSA_TAG_PROTO_MTK) in mtk_flow_get_dsa_port()
Dmtk_ppe.c680 skb->dev->dsa_ptr->tag_ops->proto != DSA_TAG_PROTO_MTK) in __mtk_ppe_check_skb()
/Linux-v6.1/net/core/
Dflow_dissector.c977 ops = skb->dev->dsa_ptr->tag_ops; in __skb_flow_dissect()