qcacmn: Add function to get gso_segs from skb
Add qdf function to get gso_segs from skb. Change-Id: I92eca7fb4adf6d08454f27469a62f4d16ff1072c CRs-Fixed: 2846442
此提交包含在:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014-2020 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2014-2021 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -3371,6 +3371,18 @@ static inline uint32_t qdf_nbuf_get_tso_num_seg(qdf_nbuf_t nbuf)
|
||||
return __qdf_nbuf_get_tso_num_seg(nbuf);
|
||||
}
|
||||
|
||||
/**
|
||||
* qdf_nbuf_get_gso_segs() - Return the number of gso segments in
|
||||
* nbuf
|
||||
* @nbuf: Network buffer
|
||||
*
|
||||
* Return: number of gso segments in nbuf
|
||||
*/
|
||||
static inline uint16_t qdf_nbuf_get_gso_segs(qdf_nbuf_t nbuf)
|
||||
{
|
||||
return __qdf_nbuf_get_gso_segs(nbuf);
|
||||
}
|
||||
|
||||
/**
|
||||
* qdf_nbuf_inc_users() - function to increment the number of
|
||||
* users referencing this network buffer
|
||||
|
新增問題並參考
封鎖使用者