From patchwork Thu Apr 3 20:45:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 27718 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id ADB6220490 for ; Thu, 3 Apr 2014 20:45:17 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id s7sf2527915lbd.8 for ; Thu, 03 Apr 2014 13:45:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:to:subject:date:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe:content-type; bh=LhxaaklAov1MVEh/kbWDg3SLW9ck0i2W3k7+yOA8O38=; b=XMnHwQogCmWUdYdqlXdXMSFiHTq4+GKdetQ+Xzi2i76tIZYylc+urPR+cv38Q7DdbX D8vjCnkQGXoqm2DSiWDWaeAEthxfraZN2IVSSApULnSPvL1JdM3A5OubFHqP48krDQaf JhlCx4De++jBlMft01qqAu41VcIICo03IeyhjrHKaX/7oVaNnumx6o/p9BqMo/bZNm4x v+EUAS4iu88Q9jJ6Rqb5/d5hG9YaP5nxRh9yh404rQ38fvC5oar25/2L3GtZsvBtsQQS C+B6Do0pyg8bTtvyC/vNPjqRxEOuQq50blMiXdJw4Vz591TGyy1S2DR1wQlAZVIeRQic COFA== X-Gm-Message-State: ALoCoQkExg66kuQMGOPgJWlgpK0SwnPnTERR2UJH1dsJO9o69tW19Wbwl4ndPxqlHq/F5xrmN2vX X-Received: by 10.14.219.194 with SMTP id m42mr9767eep.7.1396557916327; Thu, 03 Apr 2014 13:45:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: lng-odp@linaro.org Received: by 10.152.4.131 with SMTP id k3ls154458lak.87.gmail; Thu, 03 Apr 2014 13:45:15 -0700 (PDT) X-Received: by 10.112.28.82 with SMTP id z18mr5671474lbg.18.1396557915921; Thu, 03 Apr 2014 13:45:15 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) by mx.google.com with ESMTPS id w9si4230878laj.188.2014.04.03.13.45.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Apr 2014 13:45:15 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.217.178 is neither permitted nor denied by best guess record for domain of maxim.uvarov@linaro.org) client-ip=209.85.217.178; Received: by mail-lb0-f178.google.com with SMTP id s7so1804555lbd.9 for ; Thu, 03 Apr 2014 13:45:15 -0700 (PDT) X-Received: by 10.152.9.226 with SMTP id d2mr24418lab.79.1396557915681; Thu, 03 Apr 2014 13:45:15 -0700 (PDT) Received: from localhost.localdomain ([81.200.0.212]) by mx.google.com with ESMTPSA id tq9sm4246179lbb.10.2014.04.03.13.45.14 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Apr 2014 13:45:14 -0700 (PDT) From: Maxim Uvarov To: lng-odp@linaro.org Subject: [lng-odp] [odp-libpcap] use ODP_PKTIO_TYPE_SOCKET_BASIC Date: Fri, 4 Apr 2014 00:45:13 +0400 Message-Id: <1396557913-21428-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.217.178 is neither permitted nor denied by best guess record for domain of maxim.uvarov@linaro.org) smtp.mail=maxim.uvarov@linaro.org Precedence: list Mailing-list: list lng-odp@linaro.org; contact lng-odp+owners@linaro.org List-ID: X-Google-Group-Id: 474323889996 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , ODP_PKTIO_TYPE_SOCKET type of I/O was splitted to _BASIC _MMSG _MMAP. Signed-off-by: Maxim Uvarov --- pcap-linux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcap-linux.c b/pcap-linux.c index 36d054a..790f8f6 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -6220,7 +6220,8 @@ pcap_odp_init(pcap_t *handle) } else { #endif memset(&pparams.sock_params, 0, sizeof(pparams.sock_params)); - pparams.sock_params.type = ODP_PKTIO_TYPE_SOCKET; + pparams.sock_params.type = ODP_PKTIO_TYPE_SOCKET_BASIC; + pparams.sock_params.fanout = 0; printf(" pktio type: socket\n"); #ifdef ODP_HAVE_NETMAP }