Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1270220pxb; Thu, 15 Apr 2021 19:36:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrP/0bCWzpLlii31wZC7eVw27ioQsNcDrah6pklU9dlJd/Eboqe7KLj6aRvRV1N9CROlUK X-Received: by 2002:a17:906:1519:: with SMTP id b25mr6365331ejd.254.1618540590849; Thu, 15 Apr 2021 19:36:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618540590; cv=none; d=google.com; s=arc-20160816; b=RUV/w6Rc6NUHrBgMflHZSD3SIyvZvEGB0dkHEAuEJLoO4E9DIhjhhLRougc/DETfKS 9sEilwExlSB3gIgU9AYVjtqBALncx+Y+iS5u4SZ14qPA51jYmfa6lG4T9Q58P6Syw2c1 fJRduSYxasjdV00+NTtugt5OCSuxJwJiL5DlrFzGnNSgcw0OPMcMoHogcujIXqImZ1MU IJjOaXR6jOpfg2GRPoY3bN99SZJ7Gua5zXuWrsVul0iS1WTOmLgI8l17IcWontOygamD XsM7iFmQ7GV9jzlYOgzzIYA8EIS9uwX+V6eIHw0lFJqUfUhcQA7N0nGbsQV16eoIKItq +tFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=wY6F6jsRcZ0DKjURNliKpZnFH/7xBCOndsTS9/9X+vM=; b=zYcnEQB057+N1NUpRcMWL5oHMGpZ6r2prH9gltN50T5gyy2AWmhFe0yoz/uwN8jgCB w1y2vp6MAd1WVGNhPLPjH7YzL/GOtSX9K6m441VAllFE9Sp637s8N8FkruGuB+YvQr9c FwlDcvZXZFRhTREniwc6W6xQxIrfE0OFJRM96g422KVZufW1Wmp7CwBPUfzoGaQO5+6O HYGEJr0pg6YQoghSe4CvMYHLWuXOOL1DXsxCWtmAJgtsehMWAdTicP4xV+yEWJeQxUqX So4fB0+JKXImDUYQfI23xUj45BjPXCDAov+7vwzcfEzj2T8L6a3Ca+xKvrCfHbZAWS0I sPHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p16si3654064edu.606.2021.04.15.19.36.06; Thu, 15 Apr 2021 19:36:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237710AbhDPBRC (ORCPT + 99 others); Thu, 15 Apr 2021 21:17:02 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:17004 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236366AbhDPBRB (ORCPT ); Thu, 15 Apr 2021 21:17:01 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FLyrz69k0zPr08; Fri, 16 Apr 2021 09:13:39 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.498.0; Fri, 16 Apr 2021 09:16:29 +0800 From: Yunsheng Lin To: , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH net v4 0/2] fix packet stuck problem for lockless qdisc Date: Fri, 16 Apr 2021 09:16:47 +0800 Message-ID: <1618535809-11952-1-git-send-email-linyunsheng@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset fixes the packet stuck problem mentioned in [1]. Patch 1: Add STATE_MISSED flag to fix packet stuck problem. Patch 2: Fix a tx_action rescheduling problem after STATE_MISSED flag is added in patch 1. V4: Change STATE_NEED_RESCHEDULE to STATE_MISSED and add patch 2. [1]. https://lkml.org/lkml/2019/10/9/42 Yunsheng Lin (2): net: sched: fix packet stuck problem for lockless qdisc net: sched: fix endless tx action reschedule during deactivation include/net/pkt_sched.h | 7 +------ include/net/sch_generic.h | 37 ++++++++++++++++++++++++++++++++++++- net/core/dev.c | 26 ++++++++++++++++++++++---- net/sched/sch_generic.c | 16 +++++++++++++++- 4 files changed, 74 insertions(+), 12 deletions(-) -- 2.7.4