From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jakub Palider Subject: [PATCH 0/2] net/ena: check for free descriptors Date: Sat, 29 Oct 2016 03:06:13 +0200 Message-ID: <1477703175-21344-1-git-send-email-jpa@semihalf.com> Cc: evgenys@amazon.com, matua@amazon.com, netanel@amazon.com To: dev@dpdk.org 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) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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