Home
last modified time | relevance | path

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

/openbmc/linux/net/dsa/
H A Dtag_gswip.c65 u8 *gswip_tag; in gswip_tag_xmit() local
69 gswip_tag = skb->data; in gswip_tag_xmit()
70 gswip_tag[0] = GSWIP_TX_SLPID_CPU; in gswip_tag_xmit()
71 gswip_tag[1] = GSWIP_TX_DPID_ELAN; in gswip_tag_xmit()
72 gswip_tag[2] = GSWIP_TX_PORT_MAP_EN | GSWIP_TX_PORT_MAP_SEL; in gswip_tag_xmit()
73 gswip_tag[3] = BIT(dp->index + GSWIP_TX_PORT_MAP_SHIFT) & GSWIP_TX_PORT_MAP_MASK; in gswip_tag_xmit()
74 gswip_tag[3] |= GSWIP_TX_DPID_EN; in gswip_tag_xmit()
83 u8 *gswip_tag; in gswip_tag_rcv() local
88 gswip_tag = skb->data - ETH_HLEN; in gswip_tag_rcv()
91 port = (gswip_tag[7] & GSWIP_RX_SPPID_MASK) >> GSWIP_RX_SPPID_SHIFT; in gswip_tag_rcv()