From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) by dpdk.org (Postfix) with ESMTP id EF63F695D for ; Thu, 11 Oct 2018 11:04:07 +0200 (CEST) Received: by mail-pf1-f181.google.com with SMTP id l17-v6so4085225pff.2 for ; Thu, 11 Oct 2018 02:04:07 -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=eu+kM825DUV7ew/x/5Ps6SnnouKW8/NL3RZlFiJJbR0=; b=ezbI8V0qZiS5WIZLdox1G0fX3x8hVj7ca1wIoBsQ1bCH4ZGt3Fh114YOezIsN38Cb4 8FQn2cdRa2WfNGOBbNC+IQYEOkBqoECZfXkcnbFGFxvr5/Qn+MB4v8g2JUuE1cHKDHkW iyb+3nOeOuf2tXgKsNXzFuRqpG0BVsB/PxG1nnYTn1GCsUL7vG+MTQLciyrUSl2CnN9V 86m68Mwi/SB6AY1lDarzEHqUrQ0MrR+wc6s73UCueME9RYH44HcYybgN9Cvh0uXYZTxI L0CiGzHBc1iAD7C/9dOBZVNNd3YkEa50eVfhEH77YtZTAO7mtaYZyIbc+ThwOfshWoC6 a7Vw== 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=eu+kM825DUV7ew/x/5Ps6SnnouKW8/NL3RZlFiJJbR0=; b=VXPybxvFEJZkVl8izrhSBmQkFiDjctpCF/a0c9Pax7KfpWOyJTxBgCm/aOYroqsQBV S3M5DYoUi9EaeBIZEo+cBQPwMmRvS/4bWjUs8A8LevMQ6+uikDw7GFCQ1Egxs3gWhYMc jm5aKpq7umIFtqzfVXd2Zy/rPE6VaKHIslwbfYqHL8IR96NsbHbwQ/qCyksMxnc0HFos PCAVs3zed/SYGTiOjWEMO4/qizdfx+le/KMWa3Y6sDD7gdVqvr0fGv0EcMwU6wSzPMna /M41fs6kxjGF9OhgcnIW/envEMWGtewtjTDvms76rGE+cHoKmg+Qmzml9URZeyFB4bNW aWtQ== X-Gm-Message-State: ABuFfojWuOdVbSyA1lZexk3L5IEopxN06+g+4jx5TArJdIK0LGx9Yzbt quEpplZTkHEXQpitvchz8bz4PYimzv+g+ZE/7e1PWfpL X-Google-Smtp-Source: ACcGV63IkOSVKna7msquTPdnn2P64ZJt74iWEdUicNQ3CbKAJYc3OfpekhIwfmG7kVz5CbPDD7lDh2efI09T1Er6ohY= X-Received: by 2002:a62:1095:: with SMTP id 21-v6mr675857pfq.227.1539248646878; Thu, 11 Oct 2018 02:04:06 -0700 (PDT) MIME-Version: 1.0 From: Philipp B Date: Thu, 11 Oct 2018 11:03:55 +0200 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Subject: [dpdk-users] rte_eth_tx_burst: Can I insert timing gaps 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: Thu, 11 Oct 2018 09:04:08 -0000 Hi all! I am working on an RTP test traffic generator. The basic idea is clock_nanosleep providing a 20ms clock cycle to start a (big) number of rte_eth_tx_bursts, sending equally sized buffers. As long as the timing within a 20ms cycle is dictated primarily by the line speed, I can be sure that not just the first buffer of each cycle has a period of 20ms, but also the n-th buffer. (I have sent n-1 buffers before with the same size.) Basically, I see one 20ms interval as a series of time slots, each capable to store an active RTP stream. My question now is, what to to with inactive time slots? As long as all active streams are located at consecutive time slots from the start of the 20ms interval, everything is fine. But I cannot guarantee this. What I need is some kind of dummy buffer, which is not transmitted but generates a tx timing gap as a buffer of X bytes would take to be transferred. Is such a functionality provided? As a workaround, I already thought about sending invalid packets (bad IP Header checksum?). However, this won't be optimal when multiple lines are aggregated. Thanks! Philipp Beyer