From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 2BCC9378B for ; Fri, 14 Apr 2017 17:18:25 +0200 (CEST) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP; 14 Apr 2017 08:18:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,198,1488873600"; d="scan'208";a="87502127" Received: from sivswdev01.ir.intel.com ([10.237.217.45]) by orsmga005.jf.intel.com with ESMTP; 14 Apr 2017 08:18:23 -0700 From: Bruce Richardson To: harry.van.haaren@intel.com Cc: dev@dpdk.org, Bruce Richardson Date: Fri, 14 Apr 2017 16:18:15 +0100 Message-Id: <20170414151815.12850-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.8.4 Subject: [dpdk-dev] [PATCH] event/sw: fix events mis-identified as needing reorder X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2017 15:18:26 -0000 When taking events from a port, we checked the history list to check if the event needed to be put back in order i.e. originally came from a reordered queue type. The check for reordering involved checking if the reorder buffer entry pointer was null. However, after that pointer was used it was never cleared to null again. This caused problems when we had mixed reordered and atomic or parallel events, as the events from the latter two queue types were misidentified as needing reordering. This let in some cases to crashes, but mostly led to dropping events, and then application lock-up. Fixes: 617995dfc5b2 ("event/sw: add scheduling logic") Signed-off-by: Bruce Richardson --- drivers/event/sw/sw_evdev_scheduler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/event/sw/sw_evdev_scheduler.c b/drivers/event/sw/sw_evdev_scheduler.c index e008b51..a333a6f 100644 --- a/drivers/event/sw/sw_evdev_scheduler.c +++ b/drivers/event/sw/sw_evdev_scheduler.c @@ -448,6 +448,7 @@ __pull_port_lb(struct sw_evdev *sw, uint32_t port_id, int allow_reorder) struct reorder_buffer_entry *rob_entry = hist_entry->rob_entry; + hist_entry->rob_entry = NULL; /* Although fragmentation not currently * supported by eventdev API, we support it * here. Open: How do we alert the user that -- 2.9.3