diff options
author | Daniel Baluta <dbaluta@ixiacom.com> | 2011-07-10 10:04:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-10 10:04:04 -0400 |
commit | d84e0bd7971eb8357c700151ee4e8e4101ee65fa (patch) | |
tree | e4334ddf51372d979fafbc1543f35e9163a61488 /include/linux/skbuff.h | |
parent | 42c8b11e284fe3186e27555d1adb7d4b77398e1b (diff) |
skbuff: update struct sk_buff members comments
Rearrange struct sk_buff members comments to follow their
definition order. Also, add missing comments for ooo_okay
and dropcount members.
Signed-off-by: Daniel Baluta <dbaluta@ixiacom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 08d4507715f5..32ada5351ab4 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -285,15 +285,12 @@ typedef unsigned char *sk_buff_data_t; | |||
285 | * struct sk_buff - socket buffer | 285 | * struct sk_buff - socket buffer |
286 | * @next: Next buffer in list | 286 | * @next: Next buffer in list |
287 | * @prev: Previous buffer in list | 287 | * @prev: Previous buffer in list |
288 | * @sk: Socket we are owned by | ||
289 | * @tstamp: Time we arrived | 288 | * @tstamp: Time we arrived |
289 | * @sk: Socket we are owned by | ||
290 | * @dev: Device we arrived on/are leaving by | 290 | * @dev: Device we arrived on/are leaving by |
291 | * @transport_header: Transport layer header | 291 | * @cb: Control buffer. Free for use by every layer. Put private vars here |
292 | * @network_header: Network layer header | ||
293 | * @mac_header: Link layer header | ||
294 | * @_skb_refdst: destination entry (with norefcount bit) | 292 | * @_skb_refdst: destination entry (with norefcount bit) |
295 | * @sp: the security path, used for xfrm | 293 | * @sp: the security path, used for xfrm |
296 | * @cb: Control buffer. Free for use by every layer. Put private vars here | ||
297 | * @len: Length of actual data | 294 | * @len: Length of actual data |
298 | * @data_len: Data length | 295 | * @data_len: Data length |
299 | * @mac_len: Length of link layer header | 296 | * @mac_len: Length of link layer header |
@@ -301,40 +298,45 @@ typedef unsigned char *sk_buff_data_t; | |||
301 | * @csum: Checksum (must include start/offset pair) | 298 | * @csum: Checksum (must include start/offset pair) |
302 | * @csum_start: Offset from skb->head where checksumming should start | 299 | * @csum_start: Offset from skb->head where checksumming should start |
303 | * @csum_offset: Offset from csum_start where checksum should be stored | 300 | * @csum_offset: Offset from csum_start where checksum should be stored |
301 | * @priority: Packet queueing priority | ||
304 | * @local_df: allow local fragmentation | 302 | * @local_df: allow local fragmentation |
305 | * @cloned: Head may be cloned (check refcnt to be sure) | 303 | * @cloned: Head may be cloned (check refcnt to be sure) |
304 | * @ip_summed: Driver fed us an IP checksum | ||
306 | * @nohdr: Payload reference only, must not modify header | 305 | * @nohdr: Payload reference only, must not modify header |
306 | * @nfctinfo: Relationship of this skb to the connection | ||
307 | * @pkt_type: Packet class | 307 | * @pkt_type: Packet class |
308 | * @fclone: skbuff clone status | 308 | * @fclone: skbuff clone status |
309 | * @ip_summed: Driver fed us an IP checksum | ||
310 | * @priority: Packet queueing priority | ||
311 | * @users: User count - see {datagram,tcp}.c | ||
312 | * @protocol: Packet protocol from driver | ||
313 | * @truesize: Buffer size | ||
314 | * @head: Head of buffer | ||
315 | * @data: Data head pointer | ||
316 | * @tail: Tail pointer | ||
317 | * @end: End pointer | ||
318 | * @destructor: Destruct function | ||
319 | * @mark: Generic packet mark | ||
320 | * @nfct: Associated connection, if any | ||
321 | * @ipvs_property: skbuff is owned by ipvs | 309 | * @ipvs_property: skbuff is owned by ipvs |
322 | * @peeked: this packet has been seen already, so stats have been | 310 | * @peeked: this packet has been seen already, so stats have been |
323 | * done for it, don't do them again | 311 | * done for it, don't do them again |
324 | * @nf_trace: netfilter packet trace flag | 312 | * @nf_trace: netfilter packet trace flag |
325 | * @nfctinfo: Relationship of this skb to the connection | 313 | * @protocol: Packet protocol from driver |
314 | * @destructor: Destruct function | ||
315 | * @nfct: Associated connection, if any | ||
326 | * @nfct_reasm: netfilter conntrack re-assembly pointer | 316 | * @nfct_reasm: netfilter conntrack re-assembly pointer |
327 | * @nf_bridge: Saved data about a bridged frame - see br_netfilter.c | 317 | * @nf_bridge: Saved data about a bridged frame - see br_netfilter.c |
328 | * @skb_iif: ifindex of device we arrived on | 318 | * @skb_iif: ifindex of device we arrived on |
329 | * @rxhash: the packet hash computed on receive | ||
330 | * @queue_mapping: Queue mapping for multiqueue devices | ||
331 | * @tc_index: Traffic control index | 319 | * @tc_index: Traffic control index |
332 | * @tc_verd: traffic control verdict | 320 | * @tc_verd: traffic control verdict |
321 | * @rxhash: the packet hash computed on receive | ||
322 | * @queue_mapping: Queue mapping for multiqueue devices | ||
333 | * @ndisc_nodetype: router type (from link layer) | 323 | * @ndisc_nodetype: router type (from link layer) |
324 | * @ooo_okay: allow the mapping of a socket to a queue to be changed | ||
334 | * @dma_cookie: a cookie to one of several possible DMA operations | 325 | * @dma_cookie: a cookie to one of several possible DMA operations |
335 | * done by skb DMA functions | 326 | * done by skb DMA functions |
336 | * @secmark: security marking | 327 | * @secmark: security marking |
328 | * @mark: Generic packet mark | ||
329 | * @dropcount: total number of sk_receive_queue overflows | ||
337 | * @vlan_tci: vlan tag control information | 330 | * @vlan_tci: vlan tag control information |
331 | * @transport_header: Transport layer header | ||
332 | * @network_header: Network layer header | ||
333 | * @mac_header: Link layer header | ||
334 | * @tail: Tail pointer | ||
335 | * @end: End pointer | ||
336 | * @head: Head of buffer | ||
337 | * @data: Data head pointer | ||
338 | * @truesize: Buffer size | ||
339 | * @users: User count - see {datagram,tcp}.c | ||
338 | */ | 340 | */ |
339 | 341 | ||
340 | struct sk_buff { | 342 | struct sk_buff { |