From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EC06843A01 for ; Mon, 29 Jan 2024 17:09:40 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A965B402B1; Mon, 29 Jan 2024 17:09:40 +0100 (CET) Received: from mail-qv1-f54.google.com (mail-qv1-f54.google.com [209.85.219.54]) by mails.dpdk.org (Postfix) with ESMTP id E35C04029A for ; Mon, 29 Jan 2024 17:09:39 +0100 (CET) Received: by mail-qv1-f54.google.com with SMTP id 6a1803df08f44-686a92a8661so22491096d6.0 for ; Mon, 29 Jan 2024 08:09:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706544579; x=1707149379; darn=dpdk.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=zz2BrYzfqrqvNTTvbw0te+Rhmg24r1rDWYeux1Oocoo=; b=PO7QbfiVC3xR8QGtMW1mdHzgFewq/kGTD899OWEpldnfDfMJtyeapr+QnxWqEIYF78 VbKLjxs+BRmcmPVTGI8xy5Q2JHHduMMEeVtS3PfTJLTdq0S/2JgKqLcScWsnvBuSnOrz z4eFEgFXUkOGVpS/2/QWyQGKMkyE/ZDjJTabQMSRr0PhyxifxgMU/4jaCVZM7FQwW5rF GHK1fI8Fa/qV/XffJe0QPd+VdMNHNg6qy24KJshpSAHnbdfmCQ54xxo9q5lkzcIL9O1W gCxreHtV0phTREyfotM8g2LC2o6vlwJcoIvOxIvR5FOZMge6PvtoTUNoGSpD1o6peCMH Ag+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706544579; x=1707149379; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=zz2BrYzfqrqvNTTvbw0te+Rhmg24r1rDWYeux1Oocoo=; b=Y3uS8BWkKDHAFvHsF3vTzSETGMZaqzAkW5gtXe3em1owXS1T+e3O/rTlW6RcOjdt/2 EiImfS54KsEHIwFAyB9jXwaYwxG2Wno2Zcy3zXl6Qx2h94ibtkQ+Qo9pHywz8ONlPK1a BNWl3I51m9Kyz3ZQ3cFywKnAv0vj1YM2G/HWscNxsGicFIwWdxi62TZI9cYXRXPiwu54 D8cIQhPy9Hs8s+L0ls5SLfE8c8J6eofk//T1R/GbfPn0E9bwbMmXRJfaWmVxiJzuyWta T5YTJpZA/QCPPtSYrcyFysC/l85IPVdY8SrbaYpj6baZ1TiHAy6dbAxGtf4RWAyCd7Nv AZYA== X-Gm-Message-State: AOJu0Yzgf3ziIlDEYchetXKxX5xiLHQhFrRgYTgmQ4yntj3Qsm0owEiY 0ABPh/VkBelPZ7Rnp2eucRfaRhJGsv1x2C4eS0oEfDKu0Kf76V5LsSae0fmbfNft/zDF/Qkpnhq vUJLss6D4V8q5TweC+MLCw8sBtYAnqyUY X-Google-Smtp-Source: AGHT+IFCWp/Gm20q2pOF/cJuItUWxSIPtF3r/asS6H25XZ4mA9VkPt7DVXaCc96BgCZYnK9ookEICZXEvi4YIgO7EpI= X-Received: by 2002:a0c:fe0f:0:b0:68c:3ad8:d549 with SMTP id x15-20020a0cfe0f000000b0068c3ad8d549mr4948072qvr.66.1706544579086; Mon, 29 Jan 2024 08:09:39 -0800 (PST) MIME-Version: 1.0 From: Pavel Vazharov Date: Mon, 29 Jan 2024 18:09:28 +0200 Message-ID: Subject: Split traffic between the Linux stack and DPDK application To: users Content-Type: multipart/alternative; boundary="0000000000006e0c1b061017dff2" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --0000000000006e0c1b061017dff2 Content-Type: text/plain; charset="UTF-8" Hi there, A DPDK can run on top of XDP sockets and use custom XDP program to split the traffic between the Linux stack and the DPDK application. This way still allows zero copy between the kernel and the DPDK application. Is there another zero-copy way to achieve redirecting some part of the traffic to the Linux kernel and another to a DPDK application? For example, AFAIK I can run the DPDK application and redirect packets from inside to the Linux stack via the DPDK KNI functionality but it'll be much slower because it'll require packets copying and context switch (if I'm not mistaken). Regards, Pavel. --0000000000006e0c1b061017dff2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi there,

A DPDK can run = on top of XDP sockets and use custom XDP program to split the traffic betwe= en the Linux stack and the DPDK application. This way still allows zero cop= y between the kernel and the DPDK application.
Is there another ze= ro-copy way to achieve redirecting some part of the traffic to the Linux ke= rnel and another to a DPDK application?
For example, AFAIK I can run the= DPDK application and redirect packets from inside to the Linux stack via t= he DPDK KNI functionality but it'll be much slower because it'll re= quire packets copying and context switch (if I'm not mistaken).

=
Regards,
Pavel.
--0000000000006e0c1b061017dff2--