From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f52.google.com (mail-it0-f52.google.com [209.85.214.52]) by dpdk.org (Postfix) with ESMTP id 82A17CFD6 for ; Wed, 6 Jun 2018 16:59:53 +0200 (CEST) Received: by mail-it0-f52.google.com with SMTP id u4-v6so8564579itg.0 for ; Wed, 06 Jun 2018 07:59:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=nQ4BLM01YMS6jCQW7qIKaG0HHOJB2HVFunBiXXtjUWE=; b=toVC7lmMnEpq6w3ClTaqRumx35zQJZjdlDATXzTtLkJ7XdasJj9sjYDrSd2AmptvS0 E0/+AM+HO2i2ciSFw9umdaCj+ValvA370kUdlQbtRa6Ge3NxRFVBYU/a+Og59TEz5W1l qvyKrl1Vz8DZlAMITuvOeJYEDShHKHRSrObla/6oMpybfG46FvWFZh2q6DD1hdZpZuL1 YDGOWGg6SnDBCXctmYrFMlXnDsLS9yW4u1qrfjxmxwMv6KSyVpl9LgjhiaX49uNWulif RGmqByETr5sio3nbHzrRAdx3fnf8mKKnlw1lF0FY780ayRnEiuRQZvunM6BPUXRswDHQ shVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=nQ4BLM01YMS6jCQW7qIKaG0HHOJB2HVFunBiXXtjUWE=; b=XNynLkHV60zYGu9CEHsLlB0AEqiQ2oC94EGbiXMpjoqrUzRl3+fR/29KYORLVP6dqD sCc2vRa+qN8rRT5Y/6MgdE4XZwT9W5lnVo4e01H5XIT6PKrkpcUt+pGylugSCvJCScqI +MnPIvhnjrsvqSRPtlpNay8kwPeQcE8rPyEHpFTHufR0OBKIdKPM2O1Ib2LNzW/6Cddt lCfUgJU6na4xv9SXuQrVT1G9I4Qk4GmQfRrLy/8zSA0HUUzfFp69nhLEZ7f76Qfd2lLK 5wNX13BF/VGCyEykw7QyHKUjMNOtgYMc/StpeonPwc1662/ulE5eaNS3IObfVrOR/iXx H+pQ== X-Gm-Message-State: APt69E0f+kq1bag9K/VTaj3WOgdURuxKn3cLpUtRfoqRq9lh31fw4Tq4 a/su7t3KnC6CmTKLnVleIIdLaRoP4C+0gyD4LUCqhEaa X-Google-Smtp-Source: ADUXVKIwfD19WONK8oQdwQkerlX55ss0ZIK00YUjGr1C39gKrYoWleI5b8DCXsVpDFoXik/HskLMxI2EM9ouomZP5BI= X-Received: by 2002:a24:b610:: with SMTP id g16-v6mr2936229itf.13.1528297192695; Wed, 06 Jun 2018 07:59:52 -0700 (PDT) MIME-Version: 1.0 From: Varun Lakkur Date: Wed, 6 Jun 2018 20:29:55 +0530 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Subject: [dpdk-users] Packets beyond MTU size in i40evf X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2018 14:59:53 -0000 Hey, I am using rte_eth_stats_get() to get the stats of how many packets are received/transmitted by my application. I am running SRIOV on XL710 (using i40evf pmd). When I send packets beyond the MTU size, my application does not receive them as expected. But these are not reported in rx_dropped_packets/rx_errors. I see that these are counted as rx_good_packets. How do I differentiate the oversized packets and count them correctly? Shouldn't they be counted under rx_dropped_packets? I went through the source code for i40e_dev_stats_get and i40evf_dev_stats_get. I see that i40e reads extra counters from i40e_hw_port_stats. Is there anything similar for SRIOV interfaces? Here is the xstats counters I got from dpdk-procinfo: #################################################### NIC extended statistics for port 1 #################################################### rx_good_packets: 656 tx_good_packets: 556 rx_good_bytes: 225160 tx_good_bytes: 33360 rx_errors: 0 tx_errors: 0 rx_mbuf_allocation_errors: 0 rx_q0packets: 0 rx_q0bytes: 0 rx_q0errors: 0 tx_q0packets: 0 tx_q0bytes: 0 rx_bytes: 225160 rx_unicast_packets: 656 rx_multicast_packets: 0 rx_broadcast_packets: 0 rx_dropped_packets: 0 rx_unknown_protocol_packets: 0 tx_bytes: 33360 tx_unicast_packets: 556 tx_multicast_packets: 0 tx_broadcast_packets: 0 tx_dropped_packets: 0 tx_error_packets: 0 Regards, Varun