From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <3chas3@gmail.com> Received: from mail-qt0-f194.google.com (mail-qt0-f194.google.com [209.85.216.194]) by dpdk.org (Postfix) with ESMTP id 763FD2BE4 for ; Sat, 17 Dec 2016 19:04:02 +0100 (CET) Received: by mail-qt0-f194.google.com with SMTP id n34so14573935qtb.3 for ; Sat, 17 Dec 2016 10:04:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=u3YE0j11Nscyt5ezNnzQeye2s8JFLvlpKjVRDRU0kw8=; b=mmKVHlk5H0JQPoZauHbjMgHwsD5rznucLCxCll6P4BKyFoAIIUnCkEgw98J6zwDGQx 0m5VqlOQZ9YUO5gupQQ8QHWgtTpvfTTtQ3lBJspTLo6Q6W8VqAxIGo87H7SEmyF/8ZPu eQ9C7O0P5SIC/9IkMFvskoIh80C3e0Ted9NbF9ABoznqTfQo/14v0rrf7jzvmMIFf9oh OoekamaTxiGDLOmCc4iXSE5g0zP8OdWvTdYxg+bkiaMhnW4OrzM+mrK1G1cVTtXJmY+5 DRct+RhRx1pBHJv71GxBJt/eeOIJn3/n63cdQCAsFl7PswSU845LPSjj/v63slrf11+u 54rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=u3YE0j11Nscyt5ezNnzQeye2s8JFLvlpKjVRDRU0kw8=; b=S6treM6afNKjO4L7ytPshDBum94r7v8DQStAJNS2uK2EK16Nb5lA68/MRWyFh4mBdj 5cIlb/2J5IO5r6blCvdjo2tD8aG9oZfYuOELPqgV6U5ybgek3bQ+8M9CNBCCP8g/8O63 CvF2eJ/XoQte8h+jCOHbEi08Zs37ha1D1rBnbdaql1GcYuDUKyPceQ1pV4us0xp3fjNt lyhs2dwtLzXLUQxAvbkfJZFOVLmoVW4qUliglQZ+ITjIKIaAqErLS5Y3b55QnwNggUoN K6TddEJNAOSq9VSCJJoA5pw13BNdl5FXIL1XPsDeIaq+ybh+EnQl7fd83q9993lwz/H1 EE5A== X-Gm-Message-State: AIkVDXL2lIba98lu4ha6WCLAtxWZRIW//xVRGbRNFignS4syUFdZTFcK6arz9IUgrHFdbQ== X-Received: by 10.200.54.59 with SMTP id m56mr8704404qtb.200.1481997841670; Sat, 17 Dec 2016 10:04:01 -0800 (PST) Received: from monolith.home (pool-173-66-96-194.washdc.fios.verizon.net. [173.66.96.194]) by smtp.gmail.com with ESMTPSA id m30sm6537157qta.7.2016.12.17.10.04.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Dec 2016 10:04:01 -0800 (PST) From: Chas Williams <3chas3@gmail.com> To: dev@dpdk.org Cc: Chas Williams <3chas3@gmail.com> Date: Sat, 17 Dec 2016 13:03:55 -0500 Message-Id: <1481997835-23288-1-git-send-email-3chas3@gmail.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] net/af_packet: initialize link interrupt callback queue 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: Sat, 17 Dec 2016 18:04:02 -0000 This patch initializes the eth_dev->link_intr_cbs queue which is used when af_packet is passed into rte_eth_ev_callback_register(). Fixes: 4dc294158cac ("ethdev: support optional Rx and Tx callbacks") Signed-off-by: Chas Williams <3chas3@gmail.com> --- drivers/net/af_packet/rte_eth_af_packet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c index a1e13ff..ea5070a 100644 --- a/drivers/net/af_packet/rte_eth_af_packet.c +++ b/drivers/net/af_packet/rte_eth_af_packet.c @@ -708,6 +708,7 @@ rte_pmd_init_internals(const char *name, (*eth_dev)->data->drv_name = pmd_af_packet_drv.driver.name; (*eth_dev)->data->kdrv = RTE_KDRV_NONE; (*eth_dev)->data->numa_node = numa_node; + TAILQ_INIT(&((*eth_dev)->link_intr_cbs)); return 0; -- 2.7.4