Lines Matching refs:hsr
28 struct hsr_priv *hsr; in hsr_handle_frame() local
43 hsr = port->hsr; in hsr_handle_frame()
45 if (hsr_addr_is_self(port->hsr, eth_hdr(skb)->h_source)) { in hsr_handle_frame()
56 if (hsr->proto_ops->invalid_dan_ingress_frame && in hsr_handle_frame()
57 hsr->proto_ops->invalid_dan_ingress_frame(protocol)) in hsr_handle_frame()
62 if ((!hsr->prot_version && protocol == htons(ETH_P_PRP)) || in hsr_handle_frame()
123 static int hsr_portdev_setup(struct hsr_priv *hsr, struct net_device *dev, in hsr_portdev_setup() argument
136 master = hsr_port_get_hsr(hsr, HSR_PT_MASTER); in hsr_portdev_setup()
157 int hsr_add_port(struct hsr_priv *hsr, struct net_device *dev, in hsr_add_port() argument
169 port = hsr_port_get_hsr(hsr, type); in hsr_add_port()
177 port->hsr = hsr; in hsr_add_port()
182 res = hsr_portdev_setup(hsr, dev, port, extack); in hsr_add_port()
187 list_add_tail_rcu(&port->port_list, &hsr->ports); in hsr_add_port()
190 master = hsr_port_get_hsr(hsr, HSR_PT_MASTER); in hsr_add_port()
192 dev_set_mtu(master->dev, hsr_get_max_mtu(hsr)); in hsr_add_port()
203 struct hsr_priv *hsr; in hsr_del_port() local
206 hsr = port->hsr; in hsr_del_port()
207 master = hsr_port_get_hsr(hsr, HSR_PT_MASTER); in hsr_del_port()
212 dev_set_mtu(master->dev, hsr_get_max_mtu(hsr)); in hsr_del_port()