aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/broadcom/bcm4908_enet.c
diff options
context:
space:
mode:
authorGravatar Yunsheng Lin <linyunsheng@huawei.com> 2021-03-10 16:28:58 +0800
committerGravatar David S. Miller <davem@davemloft.net> 2021-03-10 12:45:15 -0800
commit1ddc3229ad3c40840c24a699ada5cfeb4319b578 (patch)
treec85e3c65ebd379d4779d4afd3544668891e3e640 /drivers/net/ethernet/broadcom/bcm4908_enet.c
parentqed: Fix fall-through warnings for Clang (diff)
downloadlinux-1ddc3229ad3c40840c24a699ada5cfeb4319b578.tar.gz
linux-1ddc3229ad3c40840c24a699ada5cfeb4319b578.tar.bz2
linux-1ddc3229ad3c40840c24a699ada5cfeb4319b578.zip
skbuff: remove some unnecessary operation in skb_segment_list()
gro list uses skb_shinfo(skb)->frag_list to link two skb together, and NAPI_GRO_CB(p)->last->next is used when there are more skb, see skb_gro_receive_list(). gso expects that each segmented skb is linked together using skb->next, so only the first skb->next need to set to skb_shinfo(skb)-> frag_list when doing gso list segment. It is the same reason that nskb->next does not need to be set to list_skb before goto the error handling, because nskb->next already pointers to list_skb. And nskb is also the last skb at the end of loop, so remove tail variable and use nskb instead. Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bcm4908_enet.c')
0 files changed, 0 insertions, 0 deletions