From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by dpdk.org (Postfix) with ESMTP id 3E07E58CF for ; Sat, 29 Oct 2016 03:06:39 +0200 (CEST) Received: by mail-lf0-f54.google.com with SMTP id f134so63346632lfg.2 for ; Fri, 28 Oct 2016 18:06:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=MsFUKpoESyb8zr4KX7fWg63i5tFAD+z2ihquOs9LT6I=; b=bVX+9NT+4TF4etxAso9LV3dzirLTgkfKIAgC8IyeQRTSX45/nRPlthNAK53WNufGHq jPDLmKpNJOx020Ed1UBuOj9Zlutt7+o3hjOcOxd2hsJ+sGhHJCRAzj9+xBt8MlN3lbIe LbqJFR/MywpNmFr5xyBMu2WpQlY+xjk/av4Lsrm90zoUO4qkU6Q1VlZZ/5JRIMOlptTb ML0b9KDA23A2EQgaigj3QFgiImb/SFxJ6ReYdZw4/8ePTkliKkcyAdsy6MbCpug1PxeE 2odmfL9rU5vF4TWlYZ8kH1z4fbderTAWll73hcKaURUfRrPYP3dqbE8y/RQZ7y0qaUY7 Iqqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=MsFUKpoESyb8zr4KX7fWg63i5tFAD+z2ihquOs9LT6I=; b=duGg8HOKTIi4/NBRrHzZ0VTZ6I7aIzgpNBRcUZFKu8VqtNd0gY54nACjG/dyHr9Bbk MGT6Gq/u8w0A/hR/mO2WSb53JkguUPm40Z/8PJZ4oJAPLGRZdWLw7qzFKHB24RiRJylz WiQou8H6vDGjUEmXha84kVX/eRNRMVw+DfzhhGsMYESdrJanx7MdypDEmXigmRklKNXY GjOZozGaqpMsfA//r2SsZAXpdHC4s95YNAi8VMuiq0KnttxbPh8kS9dOQ4Ca5OTJhhf9 NcF0evwJSXB+mDst2P7OsG21EKiMJ3+H6yEZuLTOX62kdzIFbI7juVezKGhtBg1lNut5 URGg== X-Gm-Message-State: ABUngvdPTLczBVYccJTYgz+vy/oYadO0v0ciRqX1sdIB4dMHljtdWCxPXWtFl9S6CUlwMA== X-Received: by 10.25.149.199 with SMTP id x190mr11888892lfd.55.1477703196731; Fri, 28 Oct 2016 18:06:36 -0700 (PDT) Received: from HP6200.Local.org (user-31-175-219-110.play-internet.pl. [31.175.219.110]) by smtp.gmail.com with ESMTPSA id n6sm2380268lfd.45.2016.10.28.18.06.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Oct 2016 18:06:36 -0700 (PDT) From: Jakub Palider To: dev@dpdk.org Date: Sat, 29 Oct 2016 03:06:13 +0200 Message-Id: <1477703175-21344-1-git-send-email-jpa@semihalf.com> X-Mailer: git-send-email 2.7.4 Cc: evgenys@amazon.com, matua@amazon.com, netanel@amazon.com Subject: [dpdk-dev] [PATCH 0/2] net/ena: check for free descriptors X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Oct 2016 01:06:39 -0000 In some configurations there is mismatch between declared and actual descriptor count which under heavy load may lead to resource shortage. The first patch unifies the way head and tail indexes are handled and is crucial for compactness and succeeding patch correctness. The second patch runs check for available descriptor count. Jakub Palider (2): net/ena: use unmasked head/tail values net/ena: check for free buffers prior to xmit drivers/net/ena/ena_ethdev.c | 83 ++++++++++++++++++++++++++------------------ drivers/net/ena/ena_ethdev.h | 24 ++----------- 2 files changed, 52 insertions(+), 55 deletions(-) -- 2.5.0