Skip to content

Commit 25d0b92

Browse files
committed
Revert "FROMLIST: net: skbuff: propagate shared-frag marker through frag-transfer helpers"
This reverts commit 2977587. Revert the v4 patch to use next v5 patch. Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent c7fae3b commit 25d0b92

3 files changed

Lines changed: 0 additions & 8 deletions

File tree

net/core/gro.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,10 @@ int skb_gro_receive(struct sk_buff *p, struct sk_buff *skb)
216216
p->data_len += len;
217217
p->truesize += delta_truesize;
218218
p->len += len;
219-
skb_shinfo(p)->flags |= skbinfo->flags & SKBFL_SHARED_FRAG;
220219
if (lp != p) {
221220
lp->data_len += len;
222221
lp->truesize += delta_truesize;
223222
lp->len += len;
224-
skb_shinfo(lp)->flags |= skbinfo->flags & SKBFL_SHARED_FRAG;
225223
}
226224
NAPI_GRO_CB(skb)->same_flow = 1;
227225
return 0;
@@ -249,8 +247,6 @@ int skb_gro_receive_list(struct sk_buff *p, struct sk_buff *skb)
249247
p->truesize += skb->truesize;
250248
p->len += skb->len;
251249

252-
skb_shinfo(p)->flags |= skb_shinfo(skb)->flags & SKBFL_SHARED_FRAG;
253-
254250
NAPI_GRO_CB(skb)->same_flow = 1;
255251

256252
return 0;

net/core/skbuff.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2050,7 +2050,6 @@ struct sk_buff *__pskb_copy_fclone(struct sk_buff *skb, int headroom,
20502050
skb_frag_ref(skb, i);
20512051
}
20522052
skb_shinfo(n)->nr_frags = i;
2053-
skb_shinfo(n)->flags |= skb_shinfo(skb)->flags & SKBFL_SHARED_FRAG;
20542053
}
20552054

20562055
if (skb_has_frag_list(skb)) {
@@ -4087,8 +4086,6 @@ int skb_shift(struct sk_buff *tgt, struct sk_buff *skb, int shiftlen)
40874086
tgt->ip_summed = CHECKSUM_PARTIAL;
40884087
skb->ip_summed = CHECKSUM_PARTIAL;
40894088

4090-
skb_shinfo(tgt)->flags |= skb_shinfo(skb)->flags & SKBFL_SHARED_FRAG;
4091-
40924089
skb_len_add(skb, -shiftlen);
40934090
skb_len_add(tgt, shiftlen);
40944091

net/ipv4/tcp_output.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2364,7 +2364,6 @@ static int tcp_clone_payload(struct sock *sk, struct sk_buff *to,
23642364
todo = min_t(int, skb_frag_size(fragfrom),
23652365
probe_size - len);
23662366
len += todo;
2367-
skb_shinfo(to)->flags |= skb_shinfo(skb)->flags & SKBFL_SHARED_FRAG;
23682367
if (lastfrag &&
23692368
skb_frag_page(fragfrom) == skb_frag_page(lastfrag) &&
23702369
skb_frag_off(fragfrom) == skb_frag_off(lastfrag) +

0 commit comments

Comments
 (0)