Skip to content

Commit 0db89b8

Browse files
jpirkodavem330
authored andcommitted
flow_dissector: fix doc for skb_get_poff
Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 638b2a6 commit 0db89b8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

net/core/flow_dissector.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,12 @@ u32 __skb_get_poff(const struct sk_buff *skb, void *data,
417417
return poff;
418418
}
419419

420-
/* skb_get_poff() returns the offset to the payload as far as it could
421-
* be dissected. The main user is currently BPF, so that we can dynamically
420+
/**
421+
* skb_get_poff - get the offset to the payload
422+
* @skb: sk_buff to get the payload offset from
423+
*
424+
* The function will get the offset to the payload as far as it could
425+
* be dissected. The main user is currently BPF, so that we can dynamically
422426
* truncate packets without needing to push actual payload to the user
423427
* space and can analyze headers only, instead.
424428
*/

0 commit comments

Comments
 (0)