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 DCCC7438F4; Thu, 18 Jan 2024 16:06:55 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CF4D140295; Thu, 18 Jan 2024 16:06:55 +0100 (CET) Received: from GBR01-LO4-obe.outbound.protection.outlook.com (mail-lo4gbr01on2057.outbound.protection.outlook.com [40.107.122.57]) by mails.dpdk.org (Postfix) with ESMTP id EFAA240285 for ; Thu, 18 Jan 2024 16:06:53 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XoKtu32x4+mwUVgdnGw6tskVBah6OPtvyPFjus6E3d7PoQ+6smxDO9qHkWnSRnivnspS1MOJAzFDPwWLWpb8OdX86Za+Xx9lQLBSGnUYKMVKYbgERzWEa2GzO4171keJFziJW8F6pwhbD8E/grQtoWsmRTJtwIl6XplnCSQMf3+/b9I156ndTZhkAFldtT7EAJYoKS78YskHtuDgGwExjTI2g6+21CnP2TH//Tp7yXu4k1MR1p+X+XZFc+RXCzqOywIqx/OCoLBL8DENm5sVZUMZvsyQqS1PNeXyBCtoSJRh8yRkt7wLZyLlLmcHc1lfX17njELPYudINTeovVGgig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=7Fhv/pI+VqL7vsjgmloI4QXlO4sBN/3GoEG2bMeEnEY=; b=SIepfRIoqV3nx6+UjVxh8B2ivk1eQHlVeLFpmzdMeLtYQNy64f4u1c9xBBs2aGAMrapZEls8R1dMZ2DVESI2LzR5HPrcdxvQ4iPN16SLPl83EKiOqXzANO5eC9YKI2/tJLFCDUS3Kiy5wqM9lkWf8UJwLI/fOKzLCCevrbENw/pHh0j0rfx1N/npuK5qKq7UHnaK8tK5ssa9ZWeU2sE3AHXZtTwpW8+NqW6EiqJBrsUJHHDMqXQr6l9Gy4CB1Cp9osiWzmkgFbZY9achgxcrua4rvvHFlIGUqwVhyaxFG2gTiTSD2bQU3Pfd3zq/3VcMelg40sHwRX6VvQnchHQm6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ewitech.co.uk; dmarc=pass action=none header.from=ewitech.co.uk; dkim=pass header.d=ewitech.co.uk; arc=none Received: from CWLP123MB7028.GBRP123.PROD.OUTLOOK.COM (2603:10a6:400:1f7::11) by CWLP123MB7431.GBRP123.PROD.OUTLOOK.COM (2603:10a6:400:1de::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.24; Thu, 18 Jan 2024 15:06:51 +0000 Received: from CWLP123MB7028.GBRP123.PROD.OUTLOOK.COM ([fe80::40c6:b909:4c07:77ec]) by CWLP123MB7028.GBRP123.PROD.OUTLOOK.COM ([fe80::40c6:b909:4c07:77ec%7]) with mapi id 15.20.7202.024; Thu, 18 Jan 2024 15:06:51 +0000 From: James Tervit To: "dev@dpdk.org" Subject: Re: Ubuntu Upgrade 20.04.6 to 22.04 Jammy 23.06 HomeGateway example Thread-Topic: Ubuntu Upgrade 20.04.6 to 22.04 Jammy 23.06 HomeGateway example Thread-Index: AQHaSc5CwNgZhXhl6EiHp771x+RlQbDfcpHd Date: Thu, 18 Jan 2024 15:06:51 +0000 Message-ID: References: <20240117101749.257581-1-qiming.yang@intel.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ewitech.co.uk; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CWLP123MB7028:EE_|CWLP123MB7431:EE_ x-ms-office365-filtering-correlation-id: af7a4ff5-3585-46af-ac50-08dc183719ff x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: caTiR2Ra9NMHcfQ2rnd++Phg5GnaSpFhup8c4S1tlUjcjNcdj9gmfsw1/gnCc4dXHNSBlstT/R21z5qCF1sla6WHu+QPXd/5sRtOipjFvk7dTnIIRiBasEnHuJirmJNHPSFcO84xjL+sTSQ4FJhkKkdwL5UzpJPl6/BXTTGuKX5xPdMLyxiaq1nmqhVBlZXNsePwZ+oMoXaI4GlQqvjgpppIQJSKnqXv410joNKSGmMBuFKlM5ex2t0DGwm4pHTEvKuzLN52FgSNph/npw/knuqXvsjC7i2m6ck7V0nX0ActyYAdtHSkW/hTkcLvMwpIvAFBqXHE+ZKen9eOUvzR0v/EAVO3qcFizl3MwiTbM/2qTUjsuAGB/JBYazCLUDe7uAnFG3yT8EzS/K7/riWAO6KRwhc6lPCi6icu25RsJlytfjIJk1ipjgDplTiRCtc4Omsw5MnvlKVnr0VPt7kuROExDEdGwGFn1hZVEbs2lFMSe6Xxjfzyqu79yGFXpMfz53+E8N2yC21qMAVd0aqi39sGmAhMgKSBPTCj47lodbPkEs8uh/QIsC9Y67GUCxrYhZsFY4KmPuVH1WCXb5ZtOIiw+OkLe4XAPU+MqrIyJek= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CWLP123MB7028.GBRP123.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230031)(39830400003)(346002)(136003)(376002)(366004)(396003)(230922051799003)(1800799012)(451199024)(64100799003)(186009)(41300700001)(38100700002)(83380400001)(122000001)(52536014)(64756008)(8936002)(8676002)(6916009)(478600001)(5660300002)(316002)(2906002)(71200400001)(66946007)(6506007)(66476007)(66556008)(66446008)(966005)(7696005)(76116006)(53546011)(9686003)(91956017)(33656002)(38070700009)(55016003)(86362001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?Jy2cGXuZXDl4jNywJqVlHRairERbfqi3tXoPXRt+oleZStTnwmwy3Rnw?= =?Windows-1252?Q?iQj+fpfaGkoWEpQaT+nuqsxLqgDgy4/valLaIbjVAzdPJ42c+r5RJE5f?= =?Windows-1252?Q?b+RNgoHwJTUcKjGrW9UTvYq3kp3UPNCW6Xpm5o5hAD4Gkjaa3ZWVxqGf?= =?Windows-1252?Q?N9zkC12gi1AK7mZFLxhdc9WlpTYrqnHH+TVuJ6/EwPpz5ovvwDijvLhU?= =?Windows-1252?Q?UsrOkLlsvmqRldQpOURq43fxk5++oqpVb4Qpt9l+BcqKLXxhImZ+ZTqd?= =?Windows-1252?Q?qpGs1mHPzSH32eFa+B6r8mgi/cdjrl+GwFYf6vYJo83mTt1zdphxSedp?= =?Windows-1252?Q?KjxK+FvFU1UEc68viG7EPyE/PmYd8nFieV2tPiUNvD9MyzLaz+MGAlYv?= =?Windows-1252?Q?h7+HD3TU1/MvYGsHgfozmei3FsT9eA3wyD6ODiR2P2XXNS28a8ps9STZ?= =?Windows-1252?Q?dG9qZLCUzjzcqeIjnSOqM1k5lkIchLLhNmjAx78gf8V8ZyE8S4DrZSJc?= =?Windows-1252?Q?Iy8Iyijdc7TaYwioGc/NnLmUHftwIRdSAU5p+9+2L6DTF/C6Ri432QQU?= =?Windows-1252?Q?qnFKVle3CXE6/+TPzX+L0xkvm5BChNzE04VVd6lYAaSJtGH1v/wNBYr9?= =?Windows-1252?Q?1zWoBRy6xWbtH0tPPCgE3SaGpvegw1cGo85h399HGUmxGCEAd8ytZVwg?= =?Windows-1252?Q?xPCA7xpvPk7deqHbyjZXrOs5t/kfkp5RblnuGmNnrBWR3FO+XSkEAHw7?= =?Windows-1252?Q?0RpwN8ZEtOjULgkOHE/M4BkcU7IiNk4+cx+3L06qYr+XHbPUTW8yzEf+?= =?Windows-1252?Q?oZD5uFB9am3fFcziFgYXSBTJow3xH8C6/fV2+Y4dnYpiWqkgU6fyuYT7?= =?Windows-1252?Q?cM4YMMe6NP6/kgt/HtP06MOGIRxrgbhDOAerZ/oa9khvESkQNH47DUAK?= =?Windows-1252?Q?wrPpsVZUA4k9Qkh1iKxqHY/C+5d4Xbyw3tsjLAQMA01iMFs2c4NeXKaR?= =?Windows-1252?Q?mgGROU4h+qzmdNCO4twRl3B+46gLWnV2HsSjxJVXU7vROE639zqoWsXM?= =?Windows-1252?Q?/8yE5EeWSCSOLtAXJO2ZwfvooE95wqOAYK+MvE+utpFJN7sysYArpJOu?= =?Windows-1252?Q?jT/wc08DQM/V2NP82lmEBx97FSy0NqD4salVmwcmzpeMQ50bchuRCBxW?= =?Windows-1252?Q?e5OVm4MyvvHb+0UJcUHtx075lNoAgNgWPeGIeQmLYlYeIRq0JGmj6auk?= =?Windows-1252?Q?SrXl5/K0+eGeT/zEM6uKYNAHAS+6pbytAFTD3qiDtqo2LXTbr8HkwxdR?= =?Windows-1252?Q?V9ElLheywBuFF5MY9eoQSmr3ZEpUUlnnYxjyOya9DRUCKsEHbs0s7urF?= =?Windows-1252?Q?xWF4lQef+ivv5wIboW4FYR6ZLNz2Ivs+o7aInDSGcGdy55HnqBFjBDrO?= =?Windows-1252?Q?0rMkn09rx7xL1gG3Stu+VwEfhdfLbY0knRhdRHR/Gr7QNWvYRNPComLs?= =?Windows-1252?Q?adIcyF0bkLY1f2x93fE9krb/wzH4L0vM4OqTGSwzsnj/80LTBqIbqr4k?= =?Windows-1252?Q?MCPIhYwDkrRkYSgUfkemYWo9ujf68k9PuUFWyNtm1C5P0aqx3dk6Zki/?= =?Windows-1252?Q?8CwtmiGRbrsRK5c96/WMdYHzMej5Fo67t1Z10jGglKEnqAvlwZyu8enO?= =?Windows-1252?Q?bHfciGBXZM8lpQ5TZC3zp7XQ5BVMhLZJiOFABeplf7M9674FJOjJGQIk?= =?Windows-1252?Q?zaC2tDeYtf6wavUbauAv43nPhBrWrxt9RsHOU/t5uuYbbMmSBRoOKrDv?= =?Windows-1252?Q?BXKrp7lQ1ISSEsyCfMmGS61RYb0=3D?= Content-Type: multipart/alternative; boundary="_000_CWLP123MB702838FFE5F858C898F85B62DF712CWLP123MB7028GBRP_" MIME-Version: 1.0 X-OriginatorOrg: ewitech.co.uk X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CWLP123MB7028.GBRP123.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: af7a4ff5-3585-46af-ac50-08dc183719ff X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2024 15:06:51.7622 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f46b2ceb-6c84-486b-b48b-f9333836407f X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: FLjWiIINYYXno8prNbP881GLlTy4Gegu5zJ2PF6SOzNQ8XlmKIUEQLFzpWxZwWxMowwOsiRmlQN3eE89qGEYxEEpi30u7R5mX6feuqPGUcE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CWLP123MB7431 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_CWLP123MB702838FFE5F858C898F85B62DF712CWLP123MB7028GBRP_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable After debugging this, I found a spurious port, which was renamed, and it al= l started working. Thanks From: James Tervit Date: Thursday, 18 January 2024 at 13:22 To: dev@dpdk.org Subject: Ubuntu Upgrade 20.04.6 to 22.04 Jammy 23.06 HomeGateway example Dear DPDK Folks, I am following the latest build of home gateway https://s3-docs.fd.io/vpp/2= 3.06/usecases/home_gateway.html for testing and development. Running Linux PXC-SM-002 5.15.0-91-generic #101-Ubuntu vpp/jammy,now 23.10-release amd64 [installed] PRETTY_NAME=3D"Ubuntu 22.04.3 LTS" NAME=3D"Ubuntu" VERSION_ID=3D"22.04" VERSION=3D"22.04.3 LTS (Jammy Jellyfish)" In my vpp startup.conf, which is calling setup.gate and, in turn, runs setu= p.tmpl I get an error on systemd in bold below. Jan 18 04:23:34 PXC-SM-002 vpp[224896]: set interface l2 bridge: unknown in= terface `GigabitEthernetb7/0/0 1' Jan 18 04:23:34 PXC-SM-002 vpp[224896]: exec: CLI line error: GigabitEthern= etb7/0/0 1 (this is related to setup.tmpl section) Jan 18 04:23:34 PXC-SM-002 vpp[224896]: exec: CLI line error: setup.gate runs define HOSTNAME Gate-001 define TRUNK GigabitEthernet65/0/0 comment { Specific MAC address yields a constant IP address } define TRUNK_MACADDR 3c:ec:ef:da:89:58 define BVI_MACADDR 3c:ce:fe:ad:01:02 comment { inside subnet 192.168..0/24 } define INSIDE_SUBNET 1 comment { Adjust as needed to match PCI addresses of inside network ports } define INSIDE_PORT1 GigabitEthernet65/0/1 define INSIDE_PORT2 GigabitEthernet65/0/2 define INSIDE_PORT3 GigabitEthernet65/0/3 define INSIDE_PORT4 GigabitEthernetb7/0/0 define INSIDE_PORT5 GigabitEthernetb7/0/1 define INSIDE_PORT6 GigabitEthernetb7/0/3 comment { feature selections } define FEATURE_ADL uncomment define FEATURE_NAT44 uncomment define FEATURE_CNAT comment define FEATURE_DNS comment define FEATURE_IP6 comment define FEATURE_IKE_RESPONDER comment define FEATURE_MACTIME uncomment define FEATURE_OVPN uncomment define FEATURE_MODEM_ROUTE uncomment exec /home/pxcghost/VPP/pxc-gate/setup.tmpl The setup.tmpl tries to create inside ports and, for some reason, fails on = one port and stops processing. show macro set int mac address $(TRUNK) $(TRUNK_MACADDR) set dhcp client intfc $(TRUNK) hostname $(HOSTNAME) set int state $(TRUNK) up bvi create instance 0 set int mac address bvi0 $(BVI_MACADDR) set int l2 bridge bvi0 1 bvi set int ip address bvi0 192.168.$(INSIDE_SUBNET).1/24 set int state bvi0 up set int l2 bridge $(INSIDE_PORT1) 1 set int state $(INSIDE_PORT1) up set int l2 bridge $(INSIDE_PORT2) 1 set int state $(INSIDE_PORT2) up set int l2 bridge $(INSIDE_PORT3) 1 set int state $(INSIDE_PORT3) up set int l2 bridge $(INSIDE_PORT4) 1 set int state $(INSIDE_PORT4) up set int l2 bridge $(INSIDE_PORT5) 1 set int state $(INSIDE_PORT5) up set int l2 bridge $(INSIDE_PORT6) 1 set int state $(INSIDE_PORT6) up comment { dhcp server and host-stack access } create tap host-if-name lstack host-ip4-addr 192.168.$(INSIDE_SUBNET).2/24 = host-ip4-gw 192.168.$(INSIDE_SUBNET).1 set int l2 bridge tap0 1 set int state tap0 up service restart isc-dhcp-server $(FEATURE_ADL) { bin adl_interface_enable_disable $(TRUNK) } $(FEATURE_ADL) { ip table 1 } $(FEATURE_ADL) { ip route add table 1 0.0.0.0/0 via local } $(FEATURE_NAT44) { nat44 forwarding enable } $(FEATURE_NAT44) { nat44 plugin enable sessions 63000 } $(FEATURE_NAT44) { nat44 add interface address $(TRUNK) } $(FEATURE_NAT44) { set interface nat44 in bvi0 out $(TRUNK) } comment { iPhones seem to need lots of RA messages... } $(FEATURE_IP6) { ip6 nd bvi0 ra-managed-config-flag ra-other-config-flag ra= -interval 30 20 ra-lifetime 180 } comment { ip6 nd bvi0 prefix 0::0/0 ra-lifetime 100000 } comment { if using the mactime plugin, configure it } $(FEATURE_MACTIME) { bin mactime_add_del_range name roku mac 3c:ec:ef:da:89= :58 allow-static } $(FEATURE_MACTIME) { bin mactime_enable_disable $(INSIDE_PORT1) } $(FEATURE_MACTIME) { bin mactime_enable_disable $(INSIDE_PORT2) } $(FEATURE_MACTIME) { bin mactime_enable_disable $(INSIDE_PORT3) } $(FEATURE_MACTIME) { bin mactime_enable_disable $(INSIDE_PORT4) } $(FEATURE_MODEM_ROUTE) { ip route add 192.168.1.1/23 via $(TRUNK) } for some reason, port4 fails as per the system, and I think it fails on the= DHCP part of the script; any pointers are appreciated. I can bind ports an= d unbind back to kernel with no problem, and I can see the interfaces insid= e vpp and bvi look ok. sudo vppctl show interface, ip addresses not assigned as I think that=92s b= ecause the script doesn=92t process the lstack and dhcp portion due to cras= hing. Name Idx State MTU (L3/IP4/IP6/MPLS) Co= unter Count GigabitEthernet65/0/0 1 up 9000/0/0/0 rx pack= ets 585 rx byte= s 72405 tx pack= ets 3 tx byte= s 1002 drops = 585 ip4 = 228 ip6 = 26 GigabitEthernet65/0/1 2 up 9000/0/0/0 GigabitEthernet65/0/2 3 up 9000/0/0/0 GigabitEthernet65/0/3 4 up 9000/0/0/0 TenGigabitEthernetb7/0/0 5 down 9000/0/0/0 TenGigabitEthernetb7/0/1 6 down 9000/0/0/0 TenGigabitEthernetb7/0/3 7 down 9000/0/0/0 bvi0 8 up 9000/0/0/0 local0 0 down 0/0/0/0 Network devices using DPDK-compatible driver =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 0000:65:00.0 'I350 Gigabit Network Connection 1521' drv=3Dvfio-pci unused= =3Digb,igb_uio,uio_pci_generic 0000:65:00.1 'I350 Gigabit Network Connection 1521' drv=3Digb_uio unused=3D= igb,vfio-pci,uio_pci_generic 0000:65:00.2 'I350 Gigabit Network Connection 1521' drv=3Digb_uio unused=3D= igb,vfio-pci,uio_pci_generic 0000:65:00.3 'I350 Gigabit Network Connection 1521' drv=3Digb_uio unused=3D= igb,vfio-pci,uio_pci_generic 0000:b7:00.0 'Ethernet Connection X722 for 10GBASE-T 37d2' drv=3Digb_uio un= used=3Di40e,vfio-pci,uio_pci_generic 0000:b7:00.1 'Ethernet Connection X722 for 10GBASE-T 37d2' drv=3Digb_uio un= used=3Di40e,vfio-pci,uio_pci_generic 0000:b7:00.3 'Ethernet Connection X722 for 10GbE SFP+ 37d0' drv=3Digb_uio u= nused=3Di40e,vfio-pci,uio_pci_generic Network devices using kernel driver =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 0000:b7:00.2 'Ethernet Connection X722 for 10GbE SFP+ 37d0' if=3Deno7 drv= =3Di40e unused=3Digb_uio,vfio-pci,uio_pci_generic *Active* No 'Baseband' devices detected =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 Crypto devices using kernel driver =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 0000:b5:00.0 'C62x Chipset QuickAssist Technology 37c8' drv=3Dc6xx unused= =3Dqat_c62x,igb_uio,vfio-pci,uio_pci_generic 0000:b6:00.0 'C62x Chipset QuickAssist Technology 37c8' drv=3Dc6xx unused= =3Dqat_c62x,igb_uio,vfio-pci,uio_pci_generic DMA devices using kernel driver =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 0000:00:04.0 'Sky Lake-E CBDMA Registers 2021' drv=3Dioatdma unused=3Digb_u= io,vfio-pci,uio_pci_generic 0000:00:04.1 'Sky Lake-E CBDMA Registers 2021' drv=3Dioatdma unused=3Digb_u= io,vfio-pci,uio_pci_generic 0000:00:04.2 'Sky Lake-E CBDMA Registers 2021' drv=3Dioatdma unused=3Digb_u= io,vfio-pci,uio_pci_generic 0000:00:04.3 'Sky Lake-E CBDMA Registers 2021' drv=3Dioatdma unused=3Digb_u= io,vfio-pci,uio_pci_generic 0000:00:04.4 'Sky Lake-E CBDMA Registers 2021' drv=3Dioatdma unused=3Digb_u= io,vfio-pci,uio_pci_generic 0000:00:04.5 'Sky Lake-E CBDMA Registers 2021' drv=3Dioatdma unused=3Digb_u= io,vfio-pci,uio_pci_generic 0000:00:04.6 'Sky Lake-E CBDMA Registers 2021' drv=3Dioatdma unused=3Digb_u= io,vfio-pci,uio_pci_generic 0000:00:04.7 'Sky Lake-E CBDMA Registers 2021' drv=3Dioatdma unused=3Digb_u= io,vfio-pci,uio_pci_generic No 'Eventdev' devices detected =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 No 'Mempool' devices detected =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 No 'Compress' devices detected =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 No 'Misc (rawdev)' devices detected =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 No 'Regex' devices detected Bus info Device Class Description =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 pci@0000:65:00.0 network I350 G= igabit Network Connection pci@0000:65:00.1 network I350 G= igabit Network Connection pci@0000:65:00.2 network I350 G= igabit Network Connection pci@0000:65:00.3 network I350 G= igabit Network Connection pci@0000:b7:00.0 network Ethern= et Connection X722 for 10GBASE-T pci@0000:b7:00.1 network Ethern= et Connection X722 for 10GBASE-T pci@0000:b7:00.2 eno7 network Ethern= et Connection X722 for 10GbE SFP+ pci@0000:b7:00.3 network Ethern= et Connection X722 for 10GbE SFP+ eno7 is reserved to allow me remote access on kernel. Any pointers greatly appreciated --_000_CWLP123MB702838FFE5F858C898F85B62DF712CWLP123MB7028GBRP_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

After debugging this, I found a spurious port, which was renamed, a= nd it all started working. 

 

Thanks

 

From: James Tervit <James.Tervit@ewitec= h.co.uk>
Date: Thursday, 18 January 2024 at 13:22
To: dev@dpdk.org <dev@dpdk.org>
Subject: Ubuntu Upgrade 20.04.6 to 22.04 Jammy 23.06 HomeGateway exa= mple

Dear DPDK Folks,

 <= /o:p>

I am following the = latest build of home gateway https://s3-docs.fd.io/vpp/23.06/usecases/home_= gateway.html for testing and development.

 <= /o:p>

Running

Linux PXC-SM-002= 5.15.0-91-generic #101-Ubuntu

vpp/jammy,now 23= .10-release amd64 [installed]

PRETTY_NAME=3D&q= uot;Ubuntu 22.04.3 LTS"

NAME=3D"Ubu= ntu"

VERSION_ID=3D&qu= ot;22.04"

VERSION=3D"= 22.04.3 LTS (Jammy Jellyfish)"

 <= /o:p>

In my vpp startup.c= onf, which is calling setup.gate and, in turn, runs setup.tmpl I get an err= or on systemd in bold below.

 <= /o:p>

Jan 18 04:23:34 = PXC-SM-002 vpp[224896]: set interface l2 bridge: unknown interface `Gigabit= Ethernetb7/0/0 1'

Jan 18 04:23:34 = PXC-SM-002 vpp[224896]: exec: CLI line error: GigabitEthernetb7/0/0 1 (this= is related to setup.tmpl section)

Jan 18 04:23:34 = PXC-SM-002 vpp[224896]: exec: CLI line error:

 <= /o:p>

setup.gate runs

 <= /o:p>

define HOSTNAME Gat= e-001

define TRUNK Gigabi= tEthernet65/0/0

 <= /o:p>

comment { Specific = MAC address yields a constant IP address }

define TRUNK_MACADD= R 3c:ec:ef:da:89:58

define BVI_MACADDR = 3c:ce:fe:ad:01:02

 <= /o:p>

comment { inside su= bnet 192.168.<inside_subnet>.0/24 }

define INSIDE_SUBNE= T 1

 <= /o:p>

comment { Adjust as= needed to match PCI addresses of inside network ports }<= /p>

define INSIDE_PORT1= GigabitEthernet65/0/1

define INSIDE_PORT2= GigabitEthernet65/0/2

define INSIDE_PORT3= GigabitEthernet65/0/3

define INSIDE_PORT4= GigabitEthernetb7/0/0

define INSIDE_PORT5= GigabitEthernetb7/0/1

define INSIDE_PORT6= GigabitEthernetb7/0/3

 <= /o:p>

comment { feature s= elections }

define FEATURE_ADL = uncomment

define FEATURE_NAT4= 4 uncomment

define FEATURE_CNAT= comment

define FEATURE_DNS = comment

define FEATURE_IP6 = comment

define FEATURE_IKE_= RESPONDER comment

define FEATURE_MACT= IME uncomment

define FEATURE_OVPN= uncomment

define FEATURE_MODE= M_ROUTE uncomment

 <= /o:p>

exec /home/pxcghost= /VPP/pxc-gate/setup.tmpl

 <= /o:p>

The setup.tmpl trie= s to create inside ports and, for some reason, fails on one port and stops = processing.

 <= /o:p>

show macro

 <= /o:p>

set int mac address= $(TRUNK) $(TRUNK_MACADDR)

set dhcp client int= fc $(TRUNK) hostname $(HOSTNAME)

set int state $(TRU= NK) up

 <= /o:p>

bvi create instance= 0

set int mac address= bvi0 $(BVI_MACADDR)

set int l2 bridge b= vi0 1 bvi

set int ip address = bvi0 192.168.$(INSIDE_SUBNET).1/24

set int state bvi0 = up

 <= /o:p>

set int l2 bridge $= (INSIDE_PORT1) 1

set int state $(INS= IDE_PORT1) up

set int l2 bridge $= (INSIDE_PORT2) 1

set int state $(INS= IDE_PORT2) up

set int l2 bridge $= (INSIDE_PORT3) 1

set int state $(INS= IDE_PORT3) up

set int l2 bridge $= (INSIDE_PORT4) 1

set int state $(INS= IDE_PORT4) up

set int l2 bridge $= (INSIDE_PORT5) 1

set int state $(INS= IDE_PORT5) up

set int l2 bridge $= (INSIDE_PORT6) 1

set int state $(INS= IDE_PORT6) up

 <= /o:p>

 <= /o:p>

 <= /o:p>

comment { dhcp serv= er and host-stack access }

create tap host-if-= name lstack host-ip4-addr 192.168.$(INSIDE_SUBNET).2/24 host-ip4-gw 192.168= .$(INSIDE_SUBNET).1

set int l2 bridge t= ap0 1

set int state tap0 = up

 <= /o:p>

service restart isc= -dhcp-server

 <= /o:p>

$(FEATURE_ADL) { bi= n adl_interface_enable_disable $(TRUNK) }

$(FEATURE_ADL) { ip= table 1 }

$(FEATURE_ADL) { ip= route add table 1 0.0.0.0/0 via local }

 <= /o:p>

$(FEATURE_NAT44) { = nat44 forwarding enable }

$(FEATURE_NAT44) { = nat44 plugin enable sessions 63000 }

$(FEATURE_NAT44) { = nat44 add interface address $(TRUNK) }

$(FEATURE_NAT44) { = set interface nat44 in bvi0 out $(TRUNK) }

 <= /o:p>

comment { iPhones s= eem to need lots of RA messages... }

$(FEATURE_IP6) { ip= 6 nd bvi0 ra-managed-config-flag ra-other-config-flag ra-interval 30 20 ra-= lifetime 180 }

comment { ip6 nd bv= i0 prefix 0::0/0  ra-lifetime 100000 }

 <= /o:p>

 <= /o:p>

comment { if using = the mactime plugin, configure it }

$(FEATURE_MACTIME) = { bin mactime_add_del_range name roku mac 3c:ec:ef:da:89:58 allow-static }<= /span>

$(FEATURE_MACTIME) = { bin mactime_enable_disable $(INSIDE_PORT1) }

$(FEATURE_MACTIME) = { bin mactime_enable_disable $(INSIDE_PORT2) }

$(FEATURE_MACTIME) = { bin mactime_enable_disable $(INSIDE_PORT3) }

$(FEATURE_MACTIME) = { bin mactime_enable_disable $(INSIDE_PORT4) }

 <= /o:p>

$(FEATURE_MODEM_ROU= TE) { ip route add 192.168.1.1/23 via $(TRUNK) }

for some reason, po= rt4 fails as per the system, and I think it fails on the DHCP part of the s= cript; any pointers are appreciated. I can bind ports and unbind back to ke= rnel with no problem, and I can see the interfaces inside vpp and bvi look ok.

 <= /o:p>

sudo vppctl show in= terface, ip addresses not assigned as I think that=92s because the script d= oesn=92t process the lstack and dhcp portion due to crashing.

 <= /o:p>

   &= nbsp;          Name  = ;             I= dx    State  MTU (L3/IP4/IP6/MPLS)   &nb= sp; Counter          Count&nbs= p;   

GigabitEthernet65/0= /0             = 1      up       = ;   9000/0/0/0     rx packets  &nbs= p;            &= nbsp;   585

   &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;  rx bytes         &nbs= p;         72405<= /p>

   &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;  tx packets         &n= bsp;           3

   &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;  tx bytes         &nbs= p;          1002

   &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;  drops          &= nbsp;           &nbs= p; 585

   &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;  ip4          &nb= sp;            =    228

   &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;  ip6          &nb= sp;            =     26

GigabitEthernet65/0= /1             = 2      up       = ;   9000/0/0/0    

GigabitEthernet65/0= /2             = 3      up       = ;   9000/0/0/0    

GigabitEthernet65/0= /3             = 4      up       = ;   9000/0/0/0    

TenGigabitEthernetb= 7/0/0          5  &n= bsp;  down         9000/0/0/0&= nbsp;   

TenGigabitEthernetb= 7/0/1          6  &n= bsp;  down         9000/0/0/0&= nbsp;   

TenGigabitEthernetb= 7/0/3          7  &n= bsp;  down         9000/0/0/0&= nbsp;   

bvi0  &nb= sp;            =             &nb= sp;  8      up     &= nbsp;    9000/0/0/0    

local0  &= nbsp;           &nbs= p;             = 0     down       &nb= sp;  0/0/0/0      

 <= /o:p>

 <= /o:p>

Network devices usi= ng DPDK-compatible driver

=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

0000:65:00.0 'I350 = Gigabit Network Connection 1521' drv=3Dvfio-pci unused=3Digb,igb_uio,uio_pc= i_generic

0000:65:00.1 'I350 = Gigabit Network Connection 1521' drv=3Digb_uio unused=3Digb,vfio-pci,uio_pc= i_generic

0000:65:00.2 'I350 = Gigabit Network Connection 1521' drv=3Digb_uio unused=3Digb,vfio-pci,uio_pc= i_generic

0000:65:00.3 'I350 = Gigabit Network Connection 1521' drv=3Digb_uio unused=3Digb,vfio-pci,uio_pc= i_generic

0000:b7:00.0 'Ether= net Connection X722 for 10GBASE-T 37d2' drv=3Digb_uio unused=3Di40e,vfio-pc= i,uio_pci_generic

0000:b7:00.1 'Ether= net Connection X722 for 10GBASE-T 37d2' drv=3Digb_uio unused=3Di40e,vfio-pc= i,uio_pci_generic

0000:b7:00.3 'Ether= net Connection X722 for 10GbE SFP+ 37d0' drv=3Digb_uio unused=3Di40e,vfio-p= ci,uio_pci_generic

 <= /o:p>

Network devices usi= ng kernel driver

=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

0000:b7:00.2 'Ether= net Connection X722 for 10GbE SFP+ 37d0' if=3Deno7 drv=3Di40e unused=3Digb_= uio,vfio-pci,uio_pci_generic *Active*

 <= /o:p>

No 'Baseband' devic= es detected

=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

 <= /o:p>

Crypto devices usin= g kernel driver

=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

0000:b5:00.0 'C62x = Chipset QuickAssist Technology 37c8' drv=3Dc6xx unused=3Dqat_c62x,igb_uio,v= fio-pci,uio_pci_generic

0000:b6:00.0 'C62x = Chipset QuickAssist Technology 37c8' drv=3Dc6xx unused=3Dqat_c62x,igb_uio,v= fio-pci,uio_pci_generic

 <= /o:p>

DMA devices using k= ernel driver

=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=

0000:00:04.0 'Sky L= ake-E CBDMA Registers 2021' drv=3Dioatdma unused=3Digb_uio,vfio-pci,uio_pci= _generic

0000:00:04.1 'Sky L= ake-E CBDMA Registers 2021' drv=3Dioatdma unused=3Digb_uio,vfio-pci,uio_pci= _generic

0000:00:04.2 'Sky L= ake-E CBDMA Registers 2021' drv=3Dioatdma unused=3Digb_uio,vfio-pci,uio_pci= _generic

0000:00:04.3 'Sky L= ake-E CBDMA Registers 2021' drv=3Dioatdma unused=3Digb_uio,vfio-pci,uio_pci= _generic

0000:00:04.4 'Sky L= ake-E CBDMA Registers 2021' drv=3Dioatdma unused=3Digb_uio,vfio-pci,uio_pci= _generic

0000:00:04.5 'Sky L= ake-E CBDMA Registers 2021' drv=3Dioatdma unused=3Digb_uio,vfio-pci,uio_pci= _generic

0000:00:04.6 'Sky L= ake-E CBDMA Registers 2021' drv=3Dioatdma unused=3Digb_uio,vfio-pci,uio_pci= _generic

0000:00:04.7 'Sky L= ake-E CBDMA Registers 2021' drv=3Dioatdma unused=3Digb_uio,vfio-pci,uio_pci= _generic

 <= /o:p>

No 'Eventdev' devic= es detected

=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

 <= /o:p>

No 'Mempool' device= s detected

=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

 <= /o:p>

No 'Compress' devic= es detected

=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

 <= /o:p>

No 'Misc (rawdev)' = devices detected

=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

 <= /o:p>

No 'Regex' devices = detected

 <= /o:p>

Bus info  = ;        Device     = Class          Description

=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

pci@0000:65:00.0             = network        I350 Gigabit Network Conn= ection

pci@0000:65:00.1             = network        I350 Gigabit Network Conn= ection

pci@0000:65:00.2             = network        I350 Gigabit Network Conn= ection

pci@0000:65:00.3             = network        I350 Gigabit Network Conn= ection

pci@0000:b7:00.0             = network        Ethernet Connection X722 = for 10GBASE-T

pci@0000:b7:00.1             = network        Ethernet Connection X722 = for 10GBASE-T

pci@0000:b7:00.2  eno7       network   =      Ethernet Connection X722 for 10GbE SFP+

pci@0000:b7:00.3             = network        Ethernet Connection X722 = for 10GbE SFP+

 <= /o:p>

eno7 is reserved to= allow me remote access on kernel.

 <= /o:p>

Any pointers greatl= y appreciated

--_000_CWLP123MB702838FFE5F858C898F85B62DF712CWLP123MB7028GBRP_--