Searched refs:edsa_header (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/net/dsa/
H A Dtag_edsa.c22 u8 *edsa_header; edsa_xmit() local
43 edsa_header = skb->data + 2 * ETH_ALEN; edsa_xmit()
44 edsa_header[0] = (ETH_P_EDSA >> 8) & 0xff; edsa_xmit()
45 edsa_header[1] = ETH_P_EDSA & 0xff; edsa_xmit()
46 edsa_header[2] = 0x00; edsa_xmit()
47 edsa_header[3] = 0x00; edsa_xmit()
48 edsa_header[4] = 0x60 | p->parent->index; edsa_xmit()
49 edsa_header[5] = p->port << 3; edsa_xmit()
54 if (edsa_header[6] & 0x10) { edsa_xmit()
55 edsa_header[5] |= 0x01; edsa_xmit()
56 edsa_header[6] &= ~0x10; edsa_xmit()
68 edsa_header = skb->data + 2 * ETH_ALEN; edsa_xmit()
69 edsa_header[0] = (ETH_P_EDSA >> 8) & 0xff; edsa_xmit()
70 edsa_header[1] = ETH_P_EDSA & 0xff; edsa_xmit()
71 edsa_header[2] = 0x00; edsa_xmit()
72 edsa_header[3] = 0x00; edsa_xmit()
73 edsa_header[4] = 0x40 | p->parent->index; edsa_xmit()
74 edsa_header[5] = p->port << 3; edsa_xmit()
75 edsa_header[6] = 0x00; edsa_xmit()
76 edsa_header[7] = 0x00; edsa_xmit()
94 u8 *edsa_header; edsa_rcv() local
111 edsa_header = skb->data + 2; edsa_rcv()
116 if ((edsa_header[0] & 0xc0) != 0x00 && (edsa_header[0] & 0xc0) != 0xc0) edsa_rcv()
122 source_device = edsa_header[0] & 0x1f; edsa_rcv()
123 source_port = (edsa_header[1] >> 3) & 0x1f; edsa_rcv()
140 if (edsa_header[0] & 0x20) { edsa_rcv()
150 new_header[2] = edsa_header[2] & ~0x10; edsa_rcv()
151 new_header[3] = edsa_header[3]; edsa_rcv()
157 if (edsa_header[1] & 0x01) edsa_rcv()
168 c = csum_sub(c, csum_partial(edsa_header + 2, 2, 0)); edsa_rcv()
172 memcpy(edsa_header, new_header, DSA_HLEN); edsa_rcv()

Completed in 88 milliseconds