Lines Matching full:dsa
219 struct prestera_dsa dsa; in prestera_rxtx_process_skb() local
226 /* ethertype field is part of the dsa header */ in prestera_rxtx_process_skb()
227 err = prestera_dsa_parse(&dsa, skb->data - ETH_TLEN); in prestera_rxtx_process_skb()
231 dev_id = dsa.hw_dev_num; in prestera_rxtx_process_skb()
232 hw_port = dsa.port_num; in prestera_rxtx_process_skb()
244 /* remove DSA tag and update checksum */ in prestera_rxtx_process_skb()
254 if (dsa.vlan.is_tagged) { in prestera_rxtx_process_skb()
255 u16 tci = dsa.vlan.vid & VLAN_VID_MASK; in prestera_rxtx_process_skb()
257 tci |= dsa.vlan.vpt << VLAN_PRIO_SHIFT; in prestera_rxtx_process_skb()
258 if (dsa.vlan.cfi_bit) in prestera_rxtx_process_skb()
264 cpu_code = dsa.cpu_code; in prestera_rxtx_process_skb()
808 struct prestera_dsa dsa; in prestera_rxtx_xmit() local
810 dsa.hw_dev_num = port->dev_id; in prestera_rxtx_xmit()
811 dsa.port_num = port->hw_id; in prestera_rxtx_xmit()
819 if (prestera_dsa_build(&dsa, skb->data + 2 * ETH_ALEN) != 0) in prestera_rxtx_xmit()