From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 9B1D25A54 for ; Tue, 9 Jun 2015 12:15:30 +0200 (CEST) Received: by wgbgq6 with SMTP id gq6so9242376wgb.3 for ; Tue, 09 Jun 2015 03:15:30 -0700 (PDT) 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=g6Woc2IJjtJFu2QVKi/k1MNxUnXTqQcJeRTCCzTs01k=; b=BrdAf7zsjR9LK1SbQilAurZ2WAhnpbQsUnQ9oYSC5HiTca4HebttSuL3oVToRaKwPU QJpD5v3AshAKiuwEh2FNrTsMQlOY93+tL1tiQyAZytecOmnkXiaQ6/FB4NOwp4Iv2qjn NCEtL7u8LZ5WZwZGXRWOy+h1Alq+DQ9OYcZC5XtcZGQ4/opRVCPLRZG4VsmF8zz6+09l 5mcA2f30Mx4cgYYK/xskb1+wqwAvrIV90YGVozWTemZZdNCFHAhWrRnNAq6Ix+IdTRFA xbLTeGlktKgib4YdmYMqvH7amb5H0qQKgzVZWa9m4sC7DPQW0VmGMjAePwNdKKHYVcdi pS5w== X-Gm-Message-State: ALoCoQnXDx8fN8CY1BZruwEDXEC4MW/vKN8BRE7+CwSxUsL2DwCwneyXFnASNt4miJ3d7ZbWWA3O X-Received: by 10.194.240.8 with SMTP id vw8mr39049025wjc.114.1433844930496; Tue, 09 Jun 2015 03:15:30 -0700 (PDT) Received: from localhost.localdomain ([87.120.178.39]) by mx.google.com with ESMTPSA id cd9sm8640909wjc.34.2015.06.09.03.15.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Jun 2015 03:15:29 -0700 (PDT) From: Maxim Uvarov To: dev@dpdk.org Date: Tue, 9 Jun 2015 13:15:23 +0300 Message-Id: <1433844923-29797-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH] support jumbo frames for pcap vdev 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: Tue, 09 Jun 2015 10:15:30 -0000 PCAP PMD vdev is used mostly for testing. Increase snapshot len parameter provided to pcap_open_live() to accept packet more then 4096 (support jumbo frames for pcap pmd). Signed-off-by: Maxim Uvarov --- lib/librte_pmd_pcap/rte_eth_pcap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/librte_pmd_pcap/rte_eth_pcap.c b/lib/librte_pmd_pcap/rte_eth_pcap.c index eebe768..978c137 100644 --- a/lib/librte_pmd_pcap/rte_eth_pcap.c +++ b/lib/librte_pmd_pcap/rte_eth_pcap.c @@ -47,7 +47,6 @@ #include #define RTE_ETH_PCAP_SNAPSHOT_LEN 65535 -#define RTE_ETH_PCAP_SNAPLEN 4096 #define RTE_ETH_PCAP_PROMISC 1 #define RTE_ETH_PCAP_TIMEOUT -1 #define ETH_PCAP_RX_PCAP_ARG "rx_pcap" @@ -468,7 +467,7 @@ open_tx_pcap(const char *key __rte_unused, const char *value, void *extra_args) */ static inline int open_iface_live(const char *iface, pcap_t **pcap) { - *pcap = pcap_open_live(iface, RTE_ETH_PCAP_SNAPLEN, + *pcap = pcap_open_live(iface, RTE_ETH_PCAP_SNAPSHOT_LEN, RTE_ETH_PCAP_PROMISC, RTE_ETH_PCAP_TIMEOUT, errbuf); if (*pcap == NULL) { -- 1.9.1