From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua0-f170.google.com (mail-ua0-f170.google.com [209.85.217.170]) by dpdk.org (Postfix) with ESMTP id E94A55A51 for ; Tue, 16 Aug 2016 22:47:07 +0200 (CEST) Received: by mail-ua0-f170.google.com with SMTP id n59so141722817uan.2 for ; Tue, 16 Aug 2016 13:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=D6vwK2v79NN4YJvNVQKFrmwM5BLOsip7IFl9O6PzQss=; b=C6cm7teFIHWDT3NatXyUDUwIZf07ntBsyTlMCbPJW8tAORr88g+efeZ4+ao73dq+Rf YMHhKYYgEureVy2gKgU4+v2k48OYCgmYJzrN1bYVVoL3fyNpMgCfOOswfu4PwZa7egzq zkox6pCntPYGHhZjdt0GAHapA8WJNpIMytnIEEvx5rkip2s+gqb88mr+FfssmyJX00X6 AtxvgM/D95IgSzDt59Nx/CzF8kDeTyZVnSlntNDshEVtkdxsuXJeWcjOfOmZZkApLVp1 6OAfpyx7D9AoBHoBo8M3KgBsKNT/q5NcCrae+PTd8EeaBb26O70CVkDCxv4Z8jgnYKB8 mnPw== 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:date:message-id:subject:to; bh=D6vwK2v79NN4YJvNVQKFrmwM5BLOsip7IFl9O6PzQss=; b=J9bEyLMcCDNeDHxEQeZvNOi/9qhgZS1wwqkizgXVbdjed3hr1wGwMmiEcFkn62KcS/ wtVDtKgVbUVPPLuwOuFfLqY83VG3PSL/22VM8qfel7vC1pqilQWVnMd2yAAdN4wX5ZZC BmyFRpfpk18RgA7xDmssn6QrMtYtWCVFZ/w35nCpW+QAI1i1jHSM193pRYBvFHFeXRBB CIR9gAqty12dFiBxX+X9Df/pBNYaxO2AJVUgE/ToDwG3gTYC3xwxa9EVq++HZ2erjszY 81gU3ePSbOKySd+QXEh7yXjLl2vraPTJjqfADhiRfKV7rrhnTzEZKABkBg0j4N+/QJUH La8Q== X-Gm-Message-State: AEkooutBctNjcE9A30wddK7/TuNGDWS77ytgPhXk3vKzxUjq92LjImR/L3/kWzJoDakLuqMN7g2yjhS87h0aVQ== X-Received: by 10.176.65.40 with SMTP id j37mr6419530uad.116.1471380427218; Tue, 16 Aug 2016 13:47:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.22.134 with HTTP; Tue, 16 Aug 2016 13:47:06 -0700 (PDT) From: Maik Pfeil Date: Tue, 16 Aug 2016 22:47:06 +0200 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Using rte_eth_tx_burst in a loop with sleep() X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2016 20:47:08 -0000 Hi, if I am using rte_eth_tx_burst() in a loop: for(;;) { count_tx = rte_eth_tx_burst(0, 0, frame_burst, 9); sleep(1); ltime=time(NULL); printf("%s", asctime(localtime(<ime))); printf("`-- Sent %d packets.\n", asctime(localtime(<ime)), count_tx); } The array frame_burst[] is filled with 10 packets. I would expect to send every 1 second 10 frames. But after first 10 packets sent out and 1 second sleep, DPDK starts sending out around 10k pps. Do you have any idea how to solve?