mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
net: Fix typo of SKB_SGO_CB_OFFSET
The SKB_SGO_CB_OFFSET should be SKB_GSO_CB_OFFSET which means the
offset of the GSO in skb cb. This patch fixes the typo.
Fixes: 9207f9d45b
("net: preserve IP control block during GSO segmentation")
Signed-off-by: Cambda Zhu <cambda@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3b85720d3f
commit
a08e7fd912
6 changed files with 9 additions and 9 deletions
|
@ -3266,7 +3266,7 @@ static inline bool skb_needs_check(struct sk_buff *skb, bool tx_path)
|
|||
* It may return NULL if the skb requires no segmentation. This is
|
||||
* only possible when GSO is used for verifying header integrity.
|
||||
*
|
||||
* Segmentation preserves SKB_SGO_CB_OFFSET bytes of previous skb cb.
|
||||
* Segmentation preserves SKB_GSO_CB_OFFSET bytes of previous skb cb.
|
||||
*/
|
||||
struct sk_buff *__skb_gso_segment(struct sk_buff *skb,
|
||||
netdev_features_t features, bool tx_path)
|
||||
|
@ -3295,7 +3295,7 @@ struct sk_buff *__skb_gso_segment(struct sk_buff *skb,
|
|||
features &= ~NETIF_F_GSO_PARTIAL;
|
||||
}
|
||||
|
||||
BUILD_BUG_ON(SKB_SGO_CB_OFFSET +
|
||||
BUILD_BUG_ON(SKB_GSO_CB_OFFSET +
|
||||
sizeof(*SKB_GSO_CB(skb)) > sizeof(skb->cb));
|
||||
|
||||
SKB_GSO_CB(skb)->mac_offset = skb_headroom(skb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue