net: skb_drop_reason: add document for drop reasons
[ Upstream commit 88590b369354092183bcba04e2368010c462557f ] Add document for following existing drop reasons: SKB_DROP_REASON_NOT_SPECIFIED SKB_DROP_REASON_NO_SOCKET SKB_DROP_REASON_PKT_TOO_SMALL SKB_DROP_REASON_TCP_CSUM SKB_DROP_REASON_SOCKET_FILTER SKB_DROP_REASON_UDP_CSUM Signed-off-by: Menglong Dong <imagedong@tencent.com> Reviewed-by: David Ahern <dsahern@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8ac90de3d1
commit
f3ed670ef8
@@ -311,12 +311,12 @@ struct sk_buff;
|
|||||||
* used to translate the reason to string.
|
* used to translate the reason to string.
|
||||||
*/
|
*/
|
||||||
enum skb_drop_reason {
|
enum skb_drop_reason {
|
||||||
SKB_DROP_REASON_NOT_SPECIFIED,
|
SKB_DROP_REASON_NOT_SPECIFIED, /* drop reason is not specified */
|
||||||
SKB_DROP_REASON_NO_SOCKET,
|
SKB_DROP_REASON_NO_SOCKET, /* socket not found */
|
||||||
SKB_DROP_REASON_PKT_TOO_SMALL,
|
SKB_DROP_REASON_PKT_TOO_SMALL, /* packet size is too small */
|
||||||
SKB_DROP_REASON_TCP_CSUM,
|
SKB_DROP_REASON_TCP_CSUM, /* TCP checksum error */
|
||||||
SKB_DROP_REASON_SOCKET_FILTER,
|
SKB_DROP_REASON_SOCKET_FILTER, /* dropped by socket filter */
|
||||||
SKB_DROP_REASON_UDP_CSUM,
|
SKB_DROP_REASON_UDP_CSUM, /* UDP checksum error */
|
||||||
SKB_DROP_REASON_MAX,
|
SKB_DROP_REASON_MAX,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user