Home
last modified time | relevance | path

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

/net/dsa/
A Dtag_trailer.c18 u8 *trailer; in trailer_xmit() local
20 trailer = skb_put(skb, 4); in trailer_xmit()
21 trailer[0] = 0x80; in trailer_xmit()
22 trailer[1] = 1 << dp->index; in trailer_xmit()
23 trailer[2] = 0x10; in trailer_xmit()
24 trailer[3] = 0x00; in trailer_xmit()
31 u8 *trailer; in trailer_rcv() local
37 trailer = skb_tail_pointer(skb) - 4; in trailer_rcv()
38 if (trailer[0] != 0x80 || (trailer[1] & 0xf8) != 0x00 || in trailer_rcv()
39 (trailer[2] & 0xef) != 0x00 || trailer[3] != 0x00) in trailer_rcv()
[all …]
A Dtag_xrs700x.c17 u8 *trailer; in xrs700x_xmit() local
19 trailer = skb_put(skb, 1); in xrs700x_xmit()
20 trailer[0] = BIT(dp->index); in xrs700x_xmit()
25 trailer[0] |= BIT(partner->index); in xrs700x_xmit()
33 u8 *trailer; in xrs700x_rcv() local
35 trailer = skb_tail_pointer(skb) - 1; in xrs700x_rcv()
37 source_port = ffs((int)trailer[0]) - 1; in xrs700x_rcv()
A DKconfig176 tristate "Tag driver for switches using a trailer tag"
191 Arrow SpeedChips XRS700x switches that use a single byte tag trailer.
/net/hsr/
A Dhsr_forward.c219 static void prp_set_lan_id(struct prp_rct *trailer, in prp_set_lan_id() argument
231 set_prp_lan_id(trailer, lane_id); in prp_set_lan_id()
239 struct prp_rct *trailer; in prp_fill_rct() local
252 trailer = (struct prp_rct *)skb_put(skb, HSR_HLEN); in prp_fill_rct()
256 prp_set_lan_id(trailer, port); in prp_fill_rct()
257 set_prp_LSDU_size(trailer, lsdu_size); in prp_fill_rct()
258 trailer->sequence_nr = htons(frame->sequence_nr); in prp_fill_rct()
259 trailer->PRP_suffix = htons(ETH_P_PRP); in prp_fill_rct()
372 if (trailer) { in prp_create_tagged_frame()
373 prp_set_lan_id(trailer, port); in prp_create_tagged_frame()
[all …]
/net/rxrpc/
A Dconn_event.c100 struct rxrpc_acktrailer trailer; in rxrpc_conn_retransmit_call() local
134 iov[2].iov_base = &trailer; in rxrpc_conn_retransmit_call()
135 iov[2].iov_len = sizeof(trailer); in rxrpc_conn_retransmit_call()
175 trailer.maxMTU = htonl(max_mtu); in rxrpc_conn_retransmit_call()
176 trailer.ifMTU = htonl(if_mtu); in rxrpc_conn_retransmit_call()
177 trailer.rwind = htonl(rxrpc_rx_window_size); in rxrpc_conn_retransmit_call()
178 trailer.jumbo_max = 0; in rxrpc_conn_retransmit_call()
182 len += sizeof(pkt.ack) + 3 + sizeof(trailer); in rxrpc_conn_retransmit_call()
A Doutput.c80 struct rxrpc_acktrailer *trailer; in rxrpc_alloc_ack() local
88 sizeof(*whdr) + sizeof(*ack) + 1 + 3 + sizeof(*trailer), gfp); in rxrpc_alloc_ack()
103 trailer = buf + sizeof(*whdr) + sizeof(*ack) + 1 + 3; in rxrpc_alloc_ack()
110 kv[2].iov_len = 3 + sizeof(*trailer); in rxrpc_alloc_ack()
157 struct rxrpc_acktrailer *trailer = kv[2].iov_base + 3; in rxrpc_fill_out_ack() local
229 trailer->maxMTU = htonl(max_mtu); in rxrpc_fill_out_ack()
230 trailer->ifMTU = htonl(if_mtu); in rxrpc_fill_out_ack()
231 trailer->rwind = htonl(rsize); in rxrpc_fill_out_ack()
232 trailer->jumbo_max = 0; /* Advertise pmtu discovery */ in rxrpc_fill_out_ack()
250 struct rxrpc_acktrailer *trailer = kv[2].iov_base + 3; in rxrpc_send_ack_packet() local
[all …]
A Dinput.c787 struct rxrpc_acktrailer *trailer) in rxrpc_input_ack_trailer() argument
793 u32 max_mtu = ntohl(trailer->maxMTU); in rxrpc_input_ack_trailer()
795 u32 rwind = ntohl(trailer->rwind); in rxrpc_input_ack_trailer()
796 u32 jumbo_max = ntohl(trailer->jumbo_max); in rxrpc_input_ack_trailer()
1059 struct rxrpc_acktrailer trailer; in rxrpc_input_ack() local
1114 trailer.maxMTU = 0; in rxrpc_input_ack()
1116 if (skb->len >= ioffset + sizeof(trailer) && in rxrpc_input_ack()
1117 skb_copy_bits(skb, ioffset, &trailer, sizeof(trailer)) < 0) in rxrpc_input_ack()
1143 if (trailer.maxMTU) in rxrpc_input_ack()
1144 rxrpc_input_ack_trailer(call, skb, &trailer); in rxrpc_input_ack()
/net/ipv6/
A Desp6.c438 struct sk_buff *trailer; in esp6_output_head() local
455 trailer = skb; in esp6_output_head()
456 tail = skb_tail_pointer(trailer); in esp6_output_head()
508 nfrags = skb_cow_data(skb, tailen, &trailer); in esp6_output_head()
511 tail = skb_tail_pointer(trailer); in esp6_output_head()
516 pskb_put(skb, trailer, tailen); in esp6_output_head()
880 struct sk_buff *trailer; in esp6_input() local
923 nfrags = skb_cow_data(skb, 0, &trailer); in esp6_input()
A Dah6.c324 struct sk_buff *trailer; in ah6_output() local
340 err = skb_cow_data(skb, 0, &trailer); in ah6_output()
510 struct sk_buff *trailer; in ah6_input() local
552 err = skb_cow_data(skb, 0, &trailer); in ah6_input()
/net/ipv4/
A Desp4.c408 struct sk_buff *trailer; in esp_output_head() local
426 trailer = skb; in esp_output_head()
427 tail = skb_tail_pointer(trailer); in esp_output_head()
477 nfrags = skb_cow_data(skb, tailen, &trailer); in esp_output_head()
480 tail = skb_tail_pointer(trailer); in esp_output_head()
485 pskb_put(skb, trailer, tailen); in esp_output_head()
842 struct sk_buff *trailer; in esp_input() local
881 err = skb_cow_data(skb, 0, &trailer); in esp_input()
A Dah4.c150 struct sk_buff *trailer; in ah_output() local
165 if ((err = skb_cow_data(skb, 0, &trailer)) < 0) in ah_output()
308 struct sk_buff *trailer; in ah_input() local
352 if ((err = skb_cow_data(skb, 0, &trailer)) < 0) in ah_input()
/net/xfrm/
A Dxfrm_ipcomp.c133 struct sk_buff *trailer; in ipcomp_setup_req() local
155 &trailer); in ipcomp_setup_req()
/net/tipc/
A Dcrypto.c740 struct sk_buff *trailer; in tipc_aead_encrypt() local
764 nsg = skb_cow_data(skb, tailen, &trailer); in tipc_aead_encrypt()
770 pskb_put(skb, trailer, tailen); in tipc_aead_encrypt()
/net/core/
A Dskbuff.c5274 int skb_cow_data(struct sk_buff *skb, int tailbits, struct sk_buff **trailer) in skb_cow_data() argument
5300 *trailer = skb; in skb_cow_data()
5359 *trailer = skb1; in skb_cow_data()

Completed in 38 milliseconds