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 05E2043677; Tue, 5 Dec 2023 12:31:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8C19142E2B; Tue, 5 Dec 2023 12:31:07 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 943EE402C8 for ; Tue, 5 Dec 2023 12:31:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701775865; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=JODUbfExbBoaTAQJEUtRpOMPK1YEHjoQ9QoHn12EKPo=; b=BvoQC1F3aQpTgUgiav8oI589rt/qckPtSlFrzNSo/lYvkMMEINz7Yh/e2lC8y31vUgOlL9 HRWxLiSd+PBtGlq0vyU9/9xbY40zuykm3rlFNiMQlEdROacU34mkNocQ/FXsGsTqmlRdbI e4J59m2SfiG71+dbe54ZGFbV9PYp+kM= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-241-OrzhcMBaPWWN6ttnuMCevg-1; Tue, 05 Dec 2023 06:31:03 -0500 X-MC-Unique: OrzhcMBaPWWN6ttnuMCevg-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-3334b1055fbso1496972f8f.2 for ; Tue, 05 Dec 2023 03:31:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701775862; x=1702380662; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=JODUbfExbBoaTAQJEUtRpOMPK1YEHjoQ9QoHn12EKPo=; b=XJ9pf6luA2EISpzUnfZ7cJ21efTC2ELe528VSJJjc4jhI0UjD784F3+Z4zZAOcLv/u vELXwBut0+p9QCzlFWH0UC2a+74fl5L0RjejmX5CXKfBimZ10wJZ8VBl4WN/IuVe4vRz 06GRmKWIzmWYLwwLdqp5H1l7E43spiDoXEt3KaFsNDCT+Cpc4TQXMpRGULK002+I98b5 315IQRLTz+gt7dBejv37+kGutFSMynkHiwfigpuV6hXF9TwHTD/UK3VzLyJPViVnotxq ujU/KIjAxytIuNL6Tt0yHbzL7gWUi9oFBlviEW5Q3bW71zYw/l7t1nlPLJpdJfw+L5ky +9mg== X-Gm-Message-State: AOJu0YzUETl7wrGQKCXADQY3laJLqFgRkB6y2Y8nqa+1hyxAvTx9qWfU f412cSPfIqDfttJ2hO5fDOMki5gykjfz4m8oa1iool+tcbdeveSVnzWC5W0fvUuMlSXAOdd3uJ2 8EXg= X-Received: by 2002:adf:fc0a:0:b0:333:ef9:175 with SMTP id i10-20020adffc0a000000b003330ef90175mr2286311wrr.57.1701775862710; Tue, 05 Dec 2023 03:31:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwW5bei5SrXdvClfz1zy/L++v+lIGOoTvbkKKuXcvUij0IZ3QB9L8zEW7OJZY00FtJ2jLHhA== X-Received: by 2002:adf:fc0a:0:b0:333:ef9:175 with SMTP id i10-20020adffc0a000000b003330ef90175mr2286305wrr.57.1701775862401; Tue, 05 Dec 2023 03:31:02 -0800 (PST) Received: from [192.168.0.4] ([78.18.22.228]) by smtp.gmail.com with ESMTPSA id j28-20020adfb31c000000b003333d46a9e8sm8397001wrd.56.2023.12.05.03.31.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Dec 2023 03:31:02 -0800 (PST) Message-ID: Date: Tue, 5 Dec 2023 11:31:01 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [v2] net/af_xdp: enable a sock path alongside use_cni To: "Koikkara Reeny, Shibin" , "ferruh.yigit@amd.com" , "stephen@networkplumber.org" , "lihuisong@huawei.com" , "fengchengwen@huawei.com" , "liuyonglong@huawei.com" Cc: "dev@dpdk.org" References: <20231204103101.2124374-1-mtahhan@redhat.com> From: Maryam Tahhan In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/alternative; boundary="------------bqp5KF2IPJ8KSzhL21brfMrk" Content-Language: en-US X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This is a multi-part message in MIME format. --------------bqp5KF2IPJ8KSzhL21brfMrk Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 04/12/2023 17:18, Koikkara Reeny, Shibin wrote: >> Prerequisites >> @@ -223,8 +224,7 @@ Howto run dpdk-testpmd with CNI plugin: >> securityContext: >> capabilities: >> add: >> - - CAP_NET_RAW >> - - CAP_BPF >> + - NET_RAW > Need to update the 1.3. Prerequisites. Sorry, what are you referring to? > > >> resources: >> requests: >> hugepages-2Mi: 2Gi >> @@ -239,14 +239,20 @@ Howto run dpdk-testpmd with CNI plugin: >> >> .. _pod.yaml:https://github.com/intel/afxdp-plugins-for- >> kubernetes/blob/v0.0.2/test/e2e/pod-1c1d.yaml >> >> +.. note:: >> + >> + For Kernel versions older than 5.19 `CAP_BPF` is also required in >> + the container capabilities stanza. >> + >> * Run DPDK with a command like the following: >> >> .. code-block:: console >> >> kubectl exec -i --container -- \ >> - //dpdk-testpmd -l 0,1 --no-pci \ >> - --vdev=net_af_xdp0,use_cni=1,iface= \ >> - -- --no-mlockall --in-memory >> + //dpdk-testpmd -l 0-2 --no-pci --main-lcore=2 \ >> + --vdev net_af_xdp0,iface=> name>,use_cni=1,uds_path=/tmp/afxdp_dp//afxdp.sock >> \ >> + --vdev net_af_xdp1,iface=e> name>,use_cni=1,uds_path=/tmp/afxdp_dp//afxdp.sock > There is a typo " iface=e
On 04/12/2023 17:18, Koikkara Reeny, Shibin wrote:
 Prerequisites
@@ -223,8 +224,7 @@ Howto run dpdk-testpmd with CNI plugin:
          securityContext:
           capabilities:
              add:
-               - CAP_NET_RAW
-               - CAP_BPF
+               - NET_RAW
Need to update the 1.3. Prerequisites.


Sorry, what are you referring to?



          resources:
            requests:
              hugepages-2Mi: 2Gi
@@ -239,14 +239,20 @@ Howto run dpdk-testpmd with CNI plugin:

   .. _pod.yaml: https://github.com/intel/afxdp-plugins-for-
kubernetes/blob/v0.0.2/test/e2e/pod-1c1d.yaml

+.. note::
+
+   For Kernel versions older than 5.19 `CAP_BPF` is also required in
+   the container capabilities stanza.
+
 * Run DPDK with a command like the following:

   .. code-block:: console

      kubectl exec -i <Pod name> --container <containers name> -- \
-           /<Path>/dpdk-testpmd -l 0,1 --no-pci \
-           --vdev=net_af_xdp0,use_cni=1,iface=<interface name> \
-           -- --no-mlockall --in-memory
+           /<Path>/dpdk-testpmd -l 0-2 --no-pci --main-lcore=2 \
+           --vdev net_af_xdp0,iface=<interface
name>,use_cni=1,uds_path=/tmp/afxdp_dp/<interface name>/afxdp.sock
\
+           --vdev net_af_xdp1,iface=e<interface
name>,use_cni=1,uds_path=/tmp/afxdp_dp/<interface name>/afxdp.sock
There is a typo " iface=e<interface " == "iface=<interface"


Ack


--------------bqp5KF2IPJ8KSzhL21brfMrk--