diff options
author | Cambda Zhu <cambda@linux.alibaba.com> | 2020-03-26 08:33:14 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-30 06:53:18 +0200 |
commit | a08e7fd9123d85dfdf8d1dc61dbe321c8359d25f (patch) | |
tree | e23389f0de1b8517ea3ea83300a8c98a3fd612d8 /net/ipv4/udp.c | |
parent | qed: Fix race condition between scheduling and destroying the slowpath workqueue (diff) | |
download | linux-a08e7fd9123d85dfdf8d1dc61dbe321c8359d25f.tar.xz linux-a08e7fd9123d85dfdf8d1dc61dbe321c8359d25f.zip |
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: 9207f9d45b0a ("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>
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r-- | net/ipv4/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 2633fc231593..7ea90eb4a1ba 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -2109,7 +2109,7 @@ static int udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) if (likely(!udp_unexpected_gso(sk, skb))) return udp_queue_rcv_one_skb(sk, skb); - BUILD_BUG_ON(sizeof(struct udp_skb_cb) > SKB_SGO_CB_OFFSET); + BUILD_BUG_ON(sizeof(struct udp_skb_cb) > SKB_GSO_CB_OFFSET); __skb_push(skb, -skb_mac_offset(skb)); segs = udp_rcv_segment(sk, skb, true); skb_list_walk_safe(segs, skb, next) { |