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 C954C45BAE; Wed, 23 Oct 2024 10:21:12 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B7B4F4065B; Wed, 23 Oct 2024 10:21:12 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2047.outbound.protection.outlook.com [40.107.20.47]) by mails.dpdk.org (Postfix) with ESMTP id 7FDA340B8F for ; Wed, 23 Oct 2024 08:07:24 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CA/MRSOzPf/0m0urpnU9OG/LTNdMoaxC0FGu7wROv9w8z2prlmHRXLy9o39LGeGtwyH9vR0EVk7wAX68NXjkKrEPaVVQFUxuIpfjaZR0dVZlaJciC3uEPz+yQzPkrVVdbaUetXBr5GxBUw/aK6dDA8pUZsOwe+e/Lo+laGJbu/BMskj0Km3pSoYeGIPiL1pANmqKuwQVqu5lZRCK+AlV6fv6GY5ZBfRh2XzffiYhihvf7KqH9GI11uzEBuks01w+o9pbQsXqYLSsq54LUc4Dsi//3OPoe+ULs+jYEpr/e1C7ZktUM4dBvG4kBzPnNAGUs503J3DNWnCsbVaEoreawA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OZ2H/XtS212eeVxAE3SXRk6wNCiDMIcnce5jUEQIbYs=; b=xe02LoweqIbwx0QriejHNIPukmKuy4henKjzHN7j6m5re1eAzbYX1d/nRlsJ3CweTPKjU5W5q0TSIqJqGfYZrCWT+4mJLGRj5ylffi8/nxI3sDSUmiOOeX7ijMTvFgXLwBGY8475HPL9rOju73qEvManhVbPeTsqU4KfsPTxT/01f9xC48mLofkHDq25tdrm/Pe/sMTKmcoAcxP/d3093q444DPnPILTRw2M05JlKH6Cv0mXAu5WiKlPHEPwovVE6TdDvOe9BGtdxhy5hJAFvEqOpsliEbOsPka65wX6dvKaJqvf88jij9tq0LHq/vqqqbl5cCzPJLUr5Ca6UJE9gQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OZ2H/XtS212eeVxAE3SXRk6wNCiDMIcnce5jUEQIbYs=; b=S515wp0DITiFCIm1wcUUk9saZYnrH2PfEOgwSPoPSIff6hhXd/irzbfQiuWZHjPDZ9Ym8k/wNctCO7q2WbFaMcLgonROkJtZrCb2f3CxMoBYglkzbAGoHSFeX6Kdt2eWIdbmnhVYg1O0X7h/eOpdTCMbQ4NvyoybcX3r61VjafbYPIaIPnjuQg7K/nFJAqvlub4GHrhtIxLrYoSD9e6w2Ccgq6lLEvBQq/0wobYYdOHegmt9hPOBTQbJCIJvTz8FRTPWj+NykhH2bxEY2fB9c35yM3jSmgiWw6FhaEydyocwc6Afp+xVO1Oxf17QUhnGarj7Toqj5e0VgFSTZgzGng== Received: from DB5PR07MB9515.eurprd07.prod.outlook.com (2603:10a6:10:48a::22) by PAXPR07MB8770.eurprd07.prod.outlook.com (2603:10a6:102:245::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.16; Wed, 23 Oct 2024 06:07:22 +0000 Received: from DB5PR07MB9515.eurprd07.prod.outlook.com ([fe80::765e:2026:9ea2:1c8d]) by DB5PR07MB9515.eurprd07.prod.outlook.com ([fe80::765e:2026:9ea2:1c8d%6]) with mapi id 15.20.8069.024; Wed, 23 Oct 2024 06:07:22 +0000 From: Xiaohua Wang To: "dev@dpdk.org" Subject: Can DPDK AF_XDP PMD support macvlan driver in container? Thread-Topic: Can DPDK AF_XDP PMD support macvlan driver in container? Thread-Index: AdslEWIhrnOJTUtTS/m++PUi3i/7vA== Date: Wed, 23 Oct 2024 06:07:22 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ericsson.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DB5PR07MB9515:EE_|PAXPR07MB8770:EE_ x-ms-office365-filtering-correlation-id: 70dccd13-b6e4-4a87-da75-08dcf328f583 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|376014|1800799024|8096899003|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?wxAkcbKqLESJYCo18l2F3vBVdNJ88KfrD2Elf54QwcclrUKeXXr5vrj9w5gE?= =?us-ascii?Q?ehrRaCg7u1jbeKjDDSIB0WA50aJaamZIXIkjgH8Rw1/VsypfVBoGwyhUgUuB?= =?us-ascii?Q?EXhVQNIEIanaJ3W/FkkQs8ALb1oijTf5e7XaSZmWThSeRjY+obHhnk2nxmk9?= =?us-ascii?Q?TABmkrx4+QIvxr33osPwY4JK9eKiXIgkmlqhcgrnagxrCHdubBITz4GdtOBq?= =?us-ascii?Q?I9/NowcX6O1vg5A9wfkdZoPUgrUpF+O4vFIUo2x7xH4QMtq53kuG9UwhPx8r?= =?us-ascii?Q?KOtRtDnKR5I710oF0b3WCZRwx1kvc4Mw7eWNgZPbglIJn778uR4/3/CHS7H+?= =?us-ascii?Q?5STnQo4MOXu6HNJVWJ76I80Zp4zGEkrof7vwQwEMjyuogo1mdsZZzpxYz1x4?= =?us-ascii?Q?m3Rp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B79WBRDDMnJ6uuND?= =?us-ascii?Q?ZtbcJp9RLcVZzN2SW798auzG?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB5PR07MB9515.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024)(8096899003)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?zhqLNI9qPQ3fhclB1Mt+u/KTyrLa/ewRUN9jsq8DTefWLWW0XG03S8w9P9sx?= =?us-ascii?Q?+hmN/iXQBBKRX0S6ml9NZR7/gS+2tg/eoa9W1C1SIAEgkbkOToztdPRR31tB?= =?us-ascii?Q?sIP71ucvNnWXJk+9do0vBsleclVvEs3wb39yg1EgoHdWOI9d6Zrinv5woqbm?= =?us-ascii?Q?gxacP8Sa7pHFv341tPeSKRdhHOFw7RZgE7o1gyfJhROWhWg0dhCwAtLKdQNr?= =?us-ascii?Q?AirTrV2HZHAg92iJNtJrZtPriqI01OH8wNSbqZOOKjSoo22mHE3zQc2dS29s?= =?us-ascii?Q?/CL3zJPU6ctYENtvMU/NgfiVt5jxYB3+ArDy4Osh3RWnrJGMQL6r7E96Outt?= =?us-ascii?Q?VD+WgdNjslVUdrgBc2TzYIOYpnWv3mkl/Jf+tG8qM++Spjc3i28uzdsFecse?= =?us-ascii?Q?HgwE0RwRmCQG05qdRYLXAE8lU/P5g8VltJD+OeI63IYjwPQ6MCNWgAMg4/fm?= =?us-ascii?Q?Jlj86eMd0hm4E48i7D4sDwDEmMfR/Upm2X3xy7Ho862AHWTyTROcq+jDPI/P?= =?us-ascii?Q?Z2/38AzcO4ddwU1rXgg+oBzf94Jc3D/LmIe7OYikRfxhfO4998CpOt/n97rs?= =?us-ascii?Q?MLe5fsYKqZQoA9bkeYJFBXJaq76kO7LZV9FJFunRr53agQvArWVM+q40tlEW?= =?us-ascii?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jx3hWsQz23vAUj3cZ1?= =?us-ascii?Q?6JEoWbcMHeJihEU/Z3W2vH+owDO4Fm2VlLeIsYOM?= Content-Type: multipart/alternative; boundary="_000_DB5PR07MB95159C226487EC0A1E3A93A4FB4D2DB5PR07MB9515eurp_" MIME-Version: 1.0 X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DB5PR07MB9515.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 70dccd13-b6e4-4a87-da75-08dcf328f583 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Oct 2024 06:07:22.2535 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: EROSHPwraHZ5oNNr6otjQzuMaDL9e+OCXkw9I3H6XA+QBbkL+n0bztfaCbteBnNPo47nWrYeM29+4sdV9yylS6Ms89HNXdm5taBRJuudUqo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR07MB8770 X-Mailman-Approved-At: Wed, 23 Oct 2024 10:21:11 +0200 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 --_000_DB5PR07MB95159C226487EC0A1E3A93A4FB4D2DB5PR07MB9515eurp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, dpdk-testpmd with AF_XDP PMD can't work on p1p1 (macvlan) interface, but ca= n work on eth0 (veth) interface. And is there a method to enable AF_XDP PMD to work in XDP SKB mode? Or add = one option to set "SKB mode" in AF_XDP Options ? =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dcan't work on p1p1 (macvlan) i= nterface=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 5p8j4:/tmp # ./dpdk-testpmd --log-level=3Dpmd.net.af_xdp:debug --no-huge --= no-pci --no-telemetry --vdev net_af_xdp,iface=3Dp1p1 -- --total-num-mbufs 8= 192 EAL: Detected CPU lcores: 40 EAL: Detected NUMA nodes: 1 EAL: Static memory layout is selected, amount of reserved memory can be adj= usted with -m or --socket-mem EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'VA' EAL: VFIO support initialized rte_pmd_af_xdp_probe(): Initializing pmd_af_xdp for net_af_xdp init_internals(): Zero copy between umem and mbuf enabled. testpmd: create a new mbuf pool : n=3D8192, size=3D2176, socket= =3D0 testpmd: preferred mempool ops selected: ring_mp_mc Warning! port-topology=3Dpaired and odd forward ports number, the last port= will pair with itself. Configuring Port 0 (socket 0) eth_rx_queue_setup(): Set up rx queue, rx queue id: 0, xsk queue id: 0 libbpf: elf: skipping unrecognized data section(8) .xdp_run_config libbpf: elf: skipping unrecognized data section(9) xdp_metadata libbpf: elf: skipping unrecognized data section(7) xdp_metadata libbpf: prog 'xdp_pass': BPF program load failed: Invalid argument libbpf: prog 'xdp_pass': failed to load: -22 libbpf: failed to load object '/usr/lib64/bpf/xdp-dispatcher.o' libbpf: elf: skipping unrecognized data section(7) xdp_metadata libbpf: elf: skipping unrecognized data section(7) xdp_metadata libbpf: elf: skipping unrecognized data section(7) xdp_metadata libbpf: Kernel error message: Underlying driver does not support XDP in nat= ive mode libxdp: Error attaching XDP program to ifindex 5: Operation not supported libxdp: XDP mode not supported; try using SKB mode xsk_configure(): Failed to create xsk socket. eth_rx_queue_setup(): Failed to configure xdp socket Fail to configure port 0 rx queues rte_pmd_af_xdp_remove(): Removing AF_XDP ethdev on numa socket 0 eth_dev_close(): Closing AF_XDP ethdev on numa socket 0 Port 0 is closed EAL: Error - exiting with code: 1 Cause: Start ports failed EAL: Already called cleanup =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dwork on eth0 (veth) interface= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 5p8j4:/tmp # ./dpdk-testpmd --log-level=3Dpmd.net.af_xdp:debug --no-huge --= no-pci --no-telemetry --vdev net_af_xdp,iface=3Deth0 -- --total-num-mbufs 8= 192 EAL: Detected CPU lcores: 40 EAL: Detected NUMA nodes: 1 EAL: Static memory layout is selected, amount of reserved memory can be adj= usted with -m or --socket-mem EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'VA' EAL: VFIO support initialized rte_pmd_af_xdp_probe(): Initializing pmd_af_xdp for net_af_xdp init_internals(): Zero copy between umem and mbuf enabled. testpmd: create a new mbuf pool : n=3D8192, size=3D2176, socket= =3D0 testpmd: preferred mempool ops selected: ring_mp_mc Warning! port-topology=3Dpaired and odd forward ports number, the last port= will pair with itself. Configuring Port 0 (socket 0) eth_rx_queue_setup(): Set up rx queue, rx queue id: 0, xsk queue id: 0 libbpf: elf: skipping unrecognized data section(8) .xdp_run_config libbpf: elf: skipping unrecognized data section(9) xdp_metadata libbpf: elf: skipping unrecognized data section(7) xdp_metadata libbpf: prog 'xdp_pass': BPF program load failed: Invalid argument libbpf: prog 'xdp_pass': failed to load: -22 libbpf: failed to load object '/usr/lib64/bpf/xdp-dispatcher.o' libbpf: elf: skipping unrecognized data section(7) xdp_metadata libbpf: elf: skipping unrecognized data section(7) xdp_metadata libbpf: elf: skipping unrecognized data section(7) xdp_metadata configure_preferred_busy_poll(): Busy polling budget set to: 64 Port 0: 42:5F:27:A2:63:BA Checking link statuses... Done No commandline core given, start packet forwarding io packet forwarding - ports=3D1 - cores=3D1 - streams=3D1 - NUMA support e= nabled, MP allocation mode: native Logical Core 1 (socket 0) forwards packets on 1 streams: RX P=3D0/Q=3D0 (socket 0) -> TX P=3D0/Q=3D0 (socket 0) peer=3D02:00:00:00:0= 0:00 io packet forwarding packets/burst=3D32 nb forwarding cores=3D1 - nb forwarding ports=3D1 port 0: RX queue number: 1 Tx queue number: 1 Rx offloads=3D0x0 Tx offloads=3D0x0 RX queue: 0 RX desc=3D0 - RX free threshold=3D0 RX threshold registers: pthresh=3D0 hthresh=3D0 wthresh=3D0 RX Offloads=3D0x0 TX queue: 0 TX desc=3D0 - TX free threshold=3D0 TX threshold registers: pthresh=3D0 hthresh=3D0 wthresh=3D0 TX offloads=3D0x0 - TX RS bit threshold=3D0 Press enter to exit Telling cores to stop... Waiting for lcores to finish... ---------------------- Forward statistics for port 0 ---------------------- RX-packets: 14 RX-dropped: 0 RX-total: 14 TX-packets: 14 TX-dropped: 0 TX-total: 14 ---------------------------------------------------------------------------= - +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++ RX-packets: 14 RX-dropped: 0 RX-total: 14 TX-packets: 14 TX-dropped: 0 TX-total: 14 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= + Done. Stopping port 0... Stopping ports... Done Shutting down port 0... Closing ports... eth_dev_close(): Closing AF_XDP ethdev on numa socket 0 Port 0 is closed Done Bye... rte_pmd_af_xdp_remove(): Removing AF_XDP ethdev on numa socket 0 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3Dappend test environment=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D on workernode: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D worker-pool1-1:/home/test # nsenter -t 127962 -n Directory: /home/test Mon Oct 14 03:33:00 CEST 2024 worker-pool1-1:/home/test # ip addr 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group d= efault qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: tunl0@NONE: mtu 1480 qdisc noop state DOWN group default qlen 10= 00 link/ipip 0.0.0.0 brd 0.0.0.0 4: eth0@if108: mtu 2120 qdisc noq= ueue state UP group default link/ether 42:5f:27:a2:63:ba brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet 192.168.96.160/32 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::405f:27ff:fea2:63ba/64 scope link valid_lft forever preferred_lft forever 5: p1p1@if3: mtu 1500 qdisc noqueue state= UP group default link/ether 7e:c5:53:73:95:5e brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet6 fe80::7cc5:53ff:fe73:955e/64 scope link valid_lft forever preferred_lft forever worker-pool1-1:/home/test # ethtool -i eth0 driver: veth version: 1.0 firmware-version: expansion-rom-version: bus-info: supports-statistics: yes supports-test: no supports-eeprom-access: no supports-register-dump: no supports-priv-flags: no worker-pool1-1:/home/test # ethtool -i eth1 Cannot get driver information: No such device worker-pool1-1:/home/test # ethtool -i p1p1 driver: macvlan version: 0.1 firmware-version: expansion-rom-version: bus-info: supports-statistics: no supports-test: no supports-eeprom-access: no supports-register-dump: no supports-priv-flags: no worker-pool1-1:/home/test # =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D in container: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 5p8j4:/tmp # ip addr 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group d= efault qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: tunl0@NONE: mtu 1480 qdisc noop state DOWN group default qlen 10= 00 link/ipip 0.0.0.0 brd 0.0.0.0 4: eth0@if108: mtu 2120 qdisc noq= ueue state UP group default link/ether 42:5f:27:a2:63:ba brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet 192.168.96.160/32 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::405f:27ff:fea2:63ba/64 scope link valid_lft forever preferred_lft forever 5: p1p1@if3: mtu 1500 qdisc noqueue state= UP group default link/ether 7e:c5:53:73:95:5e brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet6 fe80::7cc5:53ff:fe73:955e/64 scope link valid_lft forever preferred_lft forever =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --_000_DB5PR07MB95159C226487EC0A1E3A93A4FB4D2DB5PR07MB9515eurp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

dpdk-testpmd with AF_XDP PMD can't work on p1p1 (mac= vlan) interface, but can work on eth0 (veth) interface.

 

And is there a method to enable AF_XDP PMD to work i= n XDP SKB mode? Or add one option to set “SKB mode” in AF_XDP Options ?=

 

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dcan't w= ork on p1p1 (macvlan) interface=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D

 

5p8j4:/tmp # ./dpdk-testpmd --log-level=3Dpmd.net.af= _xdp:debug --no-huge --no-pci --no-telemetry --vdev net_af_xdp,iface=3Dp1p1= -- --total-num-mbufs 8192

EAL: Detected CPU lcores: 40

EAL: Detected NUMA nodes: 1

EAL: Static memory layout is selected, amount of res= erved memory can be adjusted with -m or --socket-mem

EAL: Detected static linkage of DPDK

EAL: Multi-process socket /var/run/dpdk/rte/mp_socke= t

EAL: Selected IOVA mode 'VA'

EAL: VFIO support initialized

rte_pmd_af_xdp_probe(): Initializing pmd_af_xdp for = net_af_xdp

init_internals(): Zero copy between umem and mbuf en= abled.

testpmd: create a new mbuf pool <mb_pool_0>: n= =3D8192, size=3D2176, socket=3D0

testpmd: preferred mempool ops selected: ring_mp_mc<= o:p>

 

Warning! port-topology=3Dpaired and odd forward port= s number, the last port will pair with itself.

 

Configuring Port 0 (socket 0)

eth_rx_queue_setup(): Set up rx queue, rx queue id: = 0, xsk queue id: 0

libbpf: elf: skipping unrecognized data section(8) .= xdp_run_config

libbpf: elf: skipping unrecognized data section(9) x= dp_metadata

libbpf: elf: skipping unrecognized data section(7) x= dp_metadata

libbpf: prog 'xdp_pass': BPF program load failed: In= valid argument

libbpf: prog 'xdp_pass': failed to load: -22

libbpf: failed to load object '/usr/lib64/bpf/xdp-di= spatcher.o'

libbpf: elf: skipping unrecognized data section(7) x= dp_metadata

libbpf: elf: skipping unrecognized data section(7) x= dp_metadata

libbpf: elf: skipping unrecognized data section(7) x= dp_metadata

libbpf: Kernel error message: Underlying driver does= not support XDP in native mode

libxdp: Error attaching XDP program to ifindex 5: Op= eration not supported

libxdp: XDP mode not supported; try using SKB mode

xsk_configure(): Failed to create xsk socket.

eth_rx_queue_setup(): Failed to configure xdp socket=

Fail to configure port 0 rx queues

rte_pmd_af_xdp_remove(): Removing AF_XDP ethdev on n= uma socket 0

eth_dev_close(): Closing AF_XDP ethdev on numa socke= t 0

Port 0 is closed

EAL: Error - exiting with code: 1

Cause: Start ports failed

EAL: Already called cleanup

 

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dwork on= eth0 (veth) interface=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D

 

5p8j4:/tmp # ./dpdk-testpmd --log-level=3Dpmd.net.af= _xdp:debug --no-huge --no-pci --no-telemetry --vdev net_af_xdp,iface=3Deth0= -- --total-num-mbufs 8192

EAL: Detected CPU lcores: 40

EAL: Detected NUMA nodes: 1

EAL: Static memory layout is selected, amount of res= erved memory can be adjusted with -m or --socket-mem

EAL: Detected static linkage of DPDK

EAL: Multi-process socket /var/run/dpdk/rte/mp_socke= t

EAL: Selected IOVA mode 'VA'

EAL: VFIO support initialized

rte_pmd_af_xdp_probe(): Initializing pmd_af_xdp for = net_af_xdp

init_internals(): Zero copy between umem and mbuf en= abled.

testpmd: create a new mbuf pool <mb_pool_0>: n= =3D8192, size=3D2176, socket=3D0

testpmd: preferred mempool ops selected: ring_mp_mc<= o:p>

 

Warning! port-topology=3Dpaired and odd forward port= s number, the last port will pair with itself.

 

Configuring Port 0 (socket 0)

eth_rx_queue_setup(): Set up rx queue, rx queue id: = 0, xsk queue id: 0

libbpf: elf: skipping unrecognized data section(8) .= xdp_run_config

libbpf: elf: skipping unrecognized data section(9) x= dp_metadata

libbpf: elf: skipping unrecognized data section(7) x= dp_metadata

libbpf: prog 'xdp_pass': BPF program load failed: In= valid argument

libbpf: prog 'xdp_pass': failed to load: -22

libbpf: failed to load object '/usr/lib64/bpf/xdp-di= spatcher.o'

libbpf: elf: skipping unrecognized data section(7) x= dp_metadata

libbpf: elf: skipping unrecognized data section(7) x= dp_metadata

libbpf: elf: skipping unrecognized data section(7) x= dp_metadata

configure_preferred_busy_poll(): Busy polling budget= set to: 64

Port 0: 42:5F:27:A2:63:BA

Checking link statuses...

Done

No commandline core given, start packet forwarding

io packet forwarding - ports=3D1 - cores=3D1 - strea= ms=3D1 - NUMA support enabled, MP allocation mode: native

Logical Core 1 (socket 0) forwards packets on 1 stre= ams:

RX P=3D0/Q=3D0 (socket 0) -> TX P=3D0/Q=3D0 (sock= et 0) peer=3D02:00:00:00:00:00

 

io packet forwarding packets/burst=3D32

nb forwarding cores=3D1 - nb forwarding ports=3D1

port 0: RX queue number: 1 Tx queue number: 1

Rx offloads=3D0x0 Tx offloads=3D0x0

RX queue: 0

RX desc=3D0 - RX free threshold=3D0

RX threshold registers: pthresh=3D0 hthresh=3D0 wthr= esh=3D0

RX Offloads=3D0x0

TX queue: 0

TX desc=3D0 - TX free threshold=3D0

TX threshold registers: pthresh=3D0 hthresh=3D0 wthr= esh=3D0

TX offloads=3D0x0 - TX RS bit threshold=3D0

Press enter to exit

 

Telling cores to stop...

Waiting for lcores to finish...

 

---------------------- Forward statistics for port 0= ----------------------

RX-packets: 14 RX-dropped: 0 RX-total: 14=

TX-packets: 14 TX-dropped: 0 TX-total: 14=

----------------------------------------------------= ------------------------

 

+++++++++++++++ Accumulated forward statistics for a= ll ports+++++++++++++++

RX-packets: 14 RX-dropped: 0 RX-total: 14=

TX-packets: 14 TX-dropped: 0 TX-total: 14=

++++++++++++++++++++++++++++++++++++++++++++++++++++= ++++++++++++++++++++++++

 

Done.

 

Stopping port 0...

Stopping ports...

Done

 

Shutting down port 0...

Closing ports...

eth_dev_close(): Closing AF_XDP ethdev on numa socke= t 0

Port 0 is closed

Done

 

Bye...

rte_pmd_af_xdp_remove(): Removing AF_XDP ethdev on n= uma socket 0

 

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dappend test environment=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

 

on workernode:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<= o:p>

worker-pool1-1:/home/test # nsenter -t 127962 -n

Directory: /home/test

Mon Oct 14 03:33:00 CEST 2024

worker-pool1-1:/home/test # ip addr

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc = noqueue state UNKNOWN group default qlen 1000

link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:0= 0

inet 127.0.0.1/8 scope host lo

valid_lft forever preferred_lft forever

inet6 ::1/128 scope host

valid_lft forever preferred_lft forever

2: tunl0@NONE: <NOARP> mtu 1480 qdisc noop sta= te DOWN group default qlen 1000

link/ipip 0.0.0.0 brd 0.0.0.0

4: eth0@if108: <BROADCAST,MULTICAST,PROMISC,UP,LO= WER_UP> mtu 2120 qdisc noqueue state UP group default

link/ether 42:5f:27:a2:63:ba brd ff:ff:ff:ff:ff:ff l= ink-netnsid 0

inet 192.168.96.160/32 scope global eth0<= /p>

valid_lft forever preferred_lft forever

inet6 fe80::405f:27ff:fea2:63ba/64 scope link

valid_lft forever preferred_lft forever

5: p1p1@if3: <BROADCAST,MULTICAST,UP,LOWER_UP>= mtu 1500 qdisc noqueue state UP group default

link/ether 7e:c5:53:73:95:5e brd ff:ff:ff:ff:ff:ff l= ink-netnsid 0

inet6 fe80::7cc5:53ff:fe73:955e/64 scope link

valid_lft forever preferred_lft forever

worker-pool1-1:/home/test # ethtool -i eth0

driver: veth

version: 1.0

firmware-version:

expansion-rom-version:

bus-info:

supports-statistics: yes

supports-test: no

supports-eeprom-access: no

supports-register-dump: no

supports-priv-flags: no

worker-pool1-1:/home/test # ethtool -i eth1

Cannot get driver information: No such device

worker-pool1-1:/home/test # ethtool -i p1p1

driver: macvlan

version: 0.1

firmware-version:

expansion-rom-version:

bus-info:

supports-statistics: no

supports-test: no

supports-eeprom-access: no

supports-register-dump: no

supports-priv-flags: no

worker-pool1-1:/home/test #

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

in container:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

5p8j4:/tmp # ip addr

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc = noqueue state UNKNOWN group default qlen 1000

link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:0= 0

inet 127.0.0.1/8 scope host lo

valid_lft forever preferred_lft forever

inet6 ::1/128 scope host

valid_lft forever preferred_lft forever

2: tunl0@NONE: <NOARP> mtu 1480 qdisc noop sta= te DOWN group default qlen 1000

link/ipip 0.0.0.0 brd 0.0.0.0

4: eth0@if108: <BROADCAST,MULTICAST,PROMISC,UP,LO= WER_UP> mtu 2120 qdisc noqueue state UP group default

link/ether 42:5f:27:a2:63:ba brd ff:ff:ff:ff:ff:ff l= ink-netnsid 0

inet 192.168.96.160/32 scope global eth0<= /p>

valid_lft forever preferred_lft forever

inet6 fe80::405f:27ff:fea2:63ba/64 scope link

valid_lft forever preferred_lft forever

5: p1p1@if3: <BROADCAST,MULTICAST,UP,LOWER_UP>= mtu 1500 qdisc noqueue state UP group default

link/ether 7e:c5:53:73:95:5e brd ff:ff:ff:ff:ff:ff l= ink-netnsid 0

inet6 fe80::7cc5:53ff:fe73:955e/64 scope link

valid_lft forever preferred_lft forever

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D

--_000_DB5PR07MB95159C226487EC0A1E3A93A4FB4D2DB5PR07MB9515eurp_--