From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by mail.toke.dk (Postfix) with ESMTPS id 3D9C58D8C2B for ; Wed, 27 Oct 2021 17:49:11 +0200 (CEST) Authentication-Results: mail.toke.dk; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=T5r1SdvP Received: by mail-yb1-xb2d.google.com with SMTP id y80so7351076ybe.12 for ; Wed, 27 Oct 2021 08:49:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RGvF9Kds9vuiIHNhmnZscjYTUsrKof0kBkN4BlKFF64=; b=T5r1SdvPJcJDk2E2BjePGqpJc+I1lq6P/no8GdYSMt5FsgDmUHUKZJBib3BLP88ky0 wUtdrqlgxxuRIquN0TH6BQ0VgbTouSayQZexfy3kqvalV5EzjDsnbNlxaQGZoHjql/Ol 9zKucKC3a/ZqDXXR8Z5uafib/uhzg1oXC4xFGqrAQmmA5sdEfomzYfNvQNc68zZVo0DW RFMNrjS8LX8kDl/rp4DZFuebzM3i5FNd6nEOvOk1FLldEUk/R3EAJOSxOjDqIpaICKVw opGUkWewfYAYR15/VULhmb1VRi+U60YGFJRxIhL9S35/f09xxGPzc6tnYz+xggpnjgpY 3Gdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RGvF9Kds9vuiIHNhmnZscjYTUsrKof0kBkN4BlKFF64=; b=vvszUFTLd0NDG382wRHoi1ZluN0Vf2wjN5QGgn7RJunfTZcAM/5hfcXIs08ABFRqgP TfODCC30f9QMR0XxWadSH2xY9vi+kMUM75pRaPdEA8tf3JdQ5Ap+7VeuMLgN63MbF+w4 DhmNnMMNsxH4A371iQzQs8omVeNyYsxtXP36oyMGb7Fw7lfRlZJw7I2IH1JRjsboaYS/ hAqstFj56GwtMZfrs9iM8DbvRb+9IW4kHyWgYY+rw8wlD8PaA5qqJE51c2cxEt/yV7XN Z8+PkBEfASKJdaIuwVre501lj0I98W0lv1uyBn0QnG2Cc7hglK98RxzUfWxOkcuAv09C Wlbw== X-Gm-Message-State: AOAM530vzI0cberdL0qGrUYjBmBVsU4a5aeh58Kh1iHnx7UcnQSGx/lr 0AxZj6P/nk0Vpr+44Kp0zo48wg/yKigJTEIOAtg= X-Google-Smtp-Source: ABdhPJyIz3A9jsRqOaAM3suM4caICBG3fMljaUNSdKNBQtncNTzZqkMWwGZ88e+GjponJHJ6Dk14kVocsz6rYfQNOxw= X-Received: by 2002:a25:5ec1:: with SMTP id s184mr33218608ybb.11.1635349748283; Wed, 27 Oct 2021 08:49:08 -0700 (PDT) MIME-Version: 1.0 References: <875ytlcrdi.fsf@toke.dk> <87pmrqaeep.fsf@toke.dk> In-Reply-To: From: Jun Hu Date: Wed, 27 Oct 2021 08:48:58 -0700 Message-ID: Subject: Re: AF_XDP socket TX path interact with TC? To: Jesper Dangaard Brouer Content-Type: text/plain; charset="UTF-8" Message-ID-Hash: TLWLC335ZW6V2O7FXILKMAILQ462EOWL X-Message-ID-Hash: TLWLC335ZW6V2O7FXILKMAILQ462EOWL X-MailFrom: hujun.work@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= , Konrad Zemek , brouer@redhat.com, xdp-newbies@vger.kernel.org, "xdp-hints@xdp-project.net" , Freysteinn Alfredsson X-Mailman-Version: 3.3.4 Precedence: list List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: > What is your use-case for adding a TX-timestamp to the packet? > > --Jesper my use case is rather simple, I want to use AF_XDP for traffic tester type of application, essentially, this application generates testing traffic, egress via NIC-1, goes into a DUT, and DUT forward the traffic back into NIC-2, the application need to measure the DUT's forwarding latency for each packet, so it needs to know the timestamp of test traffic TX on NIC-1 and RX on NIC-2 +-----+ |---------------- | DUT |----------------| | +-----+ | | | | +-------------------+ | | <----- | | <---- | +----------|NIC-1 NIC-2 |---------+ | | +-------------------+