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 B924141CAE; Thu, 16 Feb 2023 08:15:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D891542B71; Thu, 16 Feb 2023 08:15:39 +0100 (CET) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2119.outbound.protection.outlook.com [40.107.100.119]) by mails.dpdk.org (Postfix) with ESMTP id C86314161A for ; Thu, 16 Feb 2023 08:15:37 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IdgGqLwX6Xi2rf5MOeyID8H8QbhFrAngZ7zqwTZfPgUx6GieOGZnko+CL2XcSghb4h0xr7gyGA7MLBsZNky6W53oouwK1PB2xKQFy0j5Tbmw88KE1p4Pza625kbuV6KCTYRKlNWOcasAo+9gqDt4shI5hfIVQmEkgr3bQiHWnGFS/6hfjUCtiFeU3zk4juhsAdJMrNBbxLTvevvhNbt2QeGmN2I2w3v4D+8TA1+KiW0juJxaWQn+DJDd3SWuTY8Jh9RRGKIs7dF7kP8dyYlqcvFH65d3mNG1q9M6eIvdCuoUonuxDwSuI8eZKYSKOLWu0qzeWZViRAK90Bhfmx1jbw== 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=fh6wSya944pNjcL2MQUN1K7dlUo2quT9QyRHpjbMaoY=; b=CNucTLyMAfLIcmvWqxrrSPAV0dPbdWfBob/XMm1GqjPb99aZw1dR0ji9SBfvtO/EX1S2DOmv0YHoKVOcONig2LHBI2GsR3E4xl3fLbEN/WtDfxGUpbmuGWf7YKFOX3dVk8m5UfrKHEdbiarh/cI5zcuNYKYdOo4dJe18wsl2bNhavtL+jSmhr0TkAa7sIoPA84hrMVyepIhvtg1QKXM73PAy0sLNDPMM0Qfox8xfFB/UZGQ2od921A4BRemNfXmRjatGzMBHbONCGwiqDNlrNCL9j5pxPobbhJITUvBoN/28Z/zVthamnpNxh2hHlYU9IqhnWI3ZQvByBWnkYDRTdw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fh6wSya944pNjcL2MQUN1K7dlUo2quT9QyRHpjbMaoY=; b=AZW2qR0Q+MG3lGw9DP6tFdP0nd6plqwcPqxmb7Ycg8TzR0FgsCzsta3UkzDABLiEm53x0BHevoSFKWOHnCYNwu1l5BufTcusNxmruNmKZohgn2W5SccsMEZLC18FCZrO5mukPTsq7095haDvWbRBvaYtwL1b8d5T8kOapzurjaA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by SA0PR13MB6002.namprd13.prod.outlook.com (2603:10b6:806:152::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.26; Thu, 16 Feb 2023 07:15:36 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::7ea4:e421:5dd5:9f4d]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::7ea4:e421:5dd5:9f4d%5]) with mapi id 15.20.6086.026; Thu, 16 Feb 2023 07:15:36 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Long Wu , Chaoyong He Subject: [PATCH 2/2] app/testpmd: add support for bonding port's LACP negotiation Date: Thu, 16 Feb 2023 15:15:14 +0800 Message-Id: <20230216071514.29418-3-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.29.3 In-Reply-To: <20230216071514.29418-1-chaoyong.he@corigine.com> References: <20230216071514.29418-1-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SI2PR01CA0046.apcprd01.prod.exchangelabs.com (2603:1096:4:193::18) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|SA0PR13MB6002:EE_ X-MS-Office365-Filtering-Correlation-Id: 9878755e-7e9f-4d17-15c7-08db0fed9981 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: a0JxbEKtRJynyO1ZLsGcasfZpbKY2e5QYtwLkqyn/Ra7mMqI82Ipaip4DEwf94X1kz4aLdjSm+UNyuCxMj27uRZXVW+dMPkTNPZebTwLb810UkcvP/QEVxYz8HkYL4pBXy8wR0a8E9NiyveNm+D01Usx5B8SXdH3LhhajTZSIh8nQc33pmFyn1jdr1vdiwRlhit4UHz5O72Vpjy+sQVecpVRcRrJBTJiATBbuZL85D+xZ0UaHkRcw7MA90rKoP21DEKU0o7nD3ggwcfa5KVw0iULsOt8ADzmBXfIK7gIGqDwSO/N5WwngyqieuJAY2dspYrk9ayD0jdT122KvxS4eZ+A8FOGzRVCWj3TpUJv6oPnnHMCmMy3krP6SQ9b9MZ72swwPN5VnJdrichIwQgeRlbmZ62htHW/fEzjaPwEI/3nNd3+ufEVTObGlUTZa6y5MY+FCN4J9nIOiQbjwUqsHOAF1eZyKt+ooA1rSXZxCl5lP2NHlMj5DZjs0SZU8iipN8x5087s7luEElmKqPUFBFsaSRiOjzO2oyBaV2x+UcC9MgaZSyLsOAOzrDBAULfmlPC6VXdBgu9GpvRxIpBCdkfIS8I91+VzBSLmJ1oldyTTHbiQNFAm0559tlRmlwAr+mJFQioBT4J0sD1YGpcRSfp3XPpN+SB2ntKfduCxYcQ9XGgexLxehPz+CcKrOCArCPDz0wi5YmMTzo75lAFNqg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(346002)(136003)(376002)(366004)(396003)(39840400004)(451199018)(2906002)(6506007)(1076003)(5660300002)(44832011)(8676002)(4326008)(8936002)(86362001)(66476007)(66946007)(316002)(66556008)(41300700001)(6916009)(54906003)(478600001)(6486002)(52116002)(38350700002)(6666004)(107886003)(38100700002)(26005)(36756003)(186003)(6512007)(2616005)(83380400001)(66574015); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?a1RlRFZZNlNUU2dZUnZhZEJ6c2tGekM0SWtpck10WVpPL2RabjlFZDVCck15?= =?utf-8?B?RkRscmQ0bVd4dHdyQ2I4NTJPSGdwbDVhNjZYbFdlR1lRdU02b3NVQmc0V2Va?= =?utf-8?B?VGUyQkxvNThGRVRhYVN5cTRvWVN3V3BHT2luWDJoaFpwM3pWWDdqanJHU3RF?= =?utf-8?B?WnB3VmNjT3FrZ3cySTRsdklNTHdXOXRsNzlYaDBVMUVoTlJyTHo4bnQ2OGtt?= =?utf-8?B?TVVzczBxM3ZsTFY2dWhnRjY2Mlo4SWZ3RkNVS2J0TkNVNTlHNjZONER1U0VC?= =?utf-8?B?Qkd3aTNzR3lybUZYVS91cWl4VmV2U2tOYkVDcWlCWFYrK3V5KzVMOGFRdlZ1?= =?utf-8?B?WnlKVlQvW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pWnlOOWt3bFowVkpMTFgvVmJoSWV1bWlIb1BG?= =?utf-8?B?T0E9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9878755e-7e9f-4d17-15c7-08db0fed9981 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Feb 2023 07:15:36.2908 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: WHFzyGOPkgtsDF08eHUvZaMlrywfgq0APIjjsU0Nb0Lv22+/mTwfRAMR019znNQT0jkdNPv28a5uZsLZ0cGxw78OT2ifePhaX2bZbFiyRAA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR13MB6002 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 From: Long Wu If bonding port is mode4 with disabling dedicated queue and there are no other packets, forward loop will not call port's TX function and bonding port will not send LACP packets. Add sending LACP packets periodically in forward loop to avoid LACP negotiation failed. Signed-off-by: Long Wu Reviewed-by: Niklas Söderlund Reviewed-by: Chaoyong He --- app/test-pmd/config.c | 23 ++++++++++++++ app/test-pmd/parameters.c | 10 +++++++ app/test-pmd/testpmd.c | 43 ++++++++++++++++++++++++++- app/test-pmd/testpmd.h | 9 ++++++ doc/guides/testpmd_app_ug/run_app.rst | 4 +++ 5 files changed, 88 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 41484c3dde..4b7be9cc25 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -53,6 +53,11 @@ #ifdef RTE_LIB_GRO #include #endif +#ifdef RTE_NET_BOND +#include +#include +#endif + #include #include "testpmd.h" @@ -4401,6 +4406,12 @@ simple_fwd_config_setup(void) fwd_streams[i]->tx_queue = 0; fwd_streams[i]->peer_addr = fwd_streams[i]->tx_port; fwd_streams[i]->retry_enabled = retry_enabled; +#ifdef RTE_NET_BOND + if (rte_eth_bond_8023ad_dedicated_queues_get(fwd_streams[i]->tx_port) == 0) + fwd_streams[i]->bond4_send_periodical_lacp = true; + else + fwd_streams[i]->bond4_send_periodical_lacp = false; +#endif } } @@ -4462,6 +4473,12 @@ rss_fwd_config_setup(void) fs->tx_queue = rxq; fs->peer_addr = fs->tx_port; fs->retry_enabled = retry_enabled; +#ifdef RTE_NET_BOND + if (rte_eth_bond_8023ad_dedicated_queues_get(fs->tx_port) == 0) + fs->bond4_send_periodical_lacp = true; + else + fs->bond4_send_periodical_lacp = false; +#endif rxp++; if (rxp < nb_fwd_ports) continue; @@ -4577,6 +4594,12 @@ dcb_fwd_config_setup(void) fs->tx_queue = txq + j % nb_tx_queue; fs->peer_addr = fs->tx_port; fs->retry_enabled = retry_enabled; +#ifdef RTE_NET_BOND + if (rte_eth_bond_8023ad_dedicated_queues_get(fs->tx_port) == 0) + fs->bond4_send_periodical_lacp = true; + else + fs->bond4_send_periodical_lacp = false; +#endif } fwd_lcores[lc_id]->stream_nb += rxp_dcb_info.tc_queue.tc_rxq[i][tc].nb_queue; diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c index e734ad9a02..5952b05b57 100644 --- a/app/test-pmd/parameters.c +++ b/app/test-pmd/parameters.c @@ -205,6 +205,9 @@ usage(char* progname) printf(" --hairpin-mode=0xXX: bitmask set the hairpin port mode.\n" " 0x10 - explicit Tx rule, 0x02 - hairpin ports paired\n" " 0x01 - hairpin ports loop, 0x00 - hairpin port self\n"); +#ifdef RTE_NET_BOND + printf(" --bond4-lacp-fwd: enable lacp update in fwd main loop\n"); +#endif } #ifdef RTE_LIB_CMDLINE @@ -705,6 +708,9 @@ launch_args_parse(int argc, char** argv) { "rx-mq-mode", 1, 0, 0 }, { "record-core-cycles", 0, 0, 0 }, { "record-burst-stats", 0, 0, 0 }, +#ifdef RTE_NET_BOND + { "bond4-lacp-fwd", 0, 0, 0 }, +#endif { PARAM_NUM_PROCS, 1, 0, 0 }, { PARAM_PROC_ID, 1, 0, 0 }, { 0, 0, 0, 0 }, @@ -1462,6 +1468,10 @@ launch_args_parse(int argc, char** argv) num_procs = atoi(optarg); if (!strcmp(lgopts[opt_idx].name, PARAM_PROC_ID)) proc_id = atoi(optarg); +#ifdef RTE_NET_BOND + if (!strcmp(lgopts[opt_idx].name, "bond4-lacp-fwd")) + bond4_lacp_fwd = 1; +#endif break; case 'h': usage(argv[0]); diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index a6c5dec4c0..732137d5ce 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -68,6 +68,7 @@ #endif #ifdef RTE_NET_BOND #include +#include #endif #ifdef RTE_NET_MLX5 #include "mlx5_testpmd.h" @@ -519,6 +520,11 @@ struct gro_status gro_ports[RTE_MAX_ETHPORTS]; uint8_t gro_flush_cycles = GRO_DEFAULT_FLUSH_CYCLES; #endif +#ifdef RTE_NET_BOND +uint8_t bond4_lacp_fwd; +#define LACP_UPDATE_PERIOD 10000 +#endif + /* * hexadecimal bitmask of RX mq mode can be enabled. */ @@ -2252,6 +2258,25 @@ flush_fwd_rx_queues(void) } } +#ifdef RTE_NET_BOND +static inline void +try_lacp_send_in_fwd(struct fwd_stream **fsm, streamid_t nb_fs) +{ + void *qd; + streamid_t sm_id; + struct rte_eth_fp_ops *p; + + for (sm_id = 0; sm_id < nb_fs; sm_id++) { + /* Update bond4 LACP if dedicated queues disabled. */ + if (fsm[sm_id]->bond4_send_periodical_lacp) { + p = &rte_eth_fp_ops[fsm[sm_id]->tx_port]; + qd = p->txq.data[fsm[sm_id]->tx_queue]; + rte_eth_bond_8023ad_lacp_send_one(qd); + } + } +} +#endif + static void run_pkt_fwd_on_lcore(struct fwd_lcore *fc, packet_fwd_t pkt_fwd) { @@ -2268,6 +2293,11 @@ run_pkt_fwd_on_lcore(struct fwd_lcore *fc, packet_fwd_t pkt_fwd) cnt_ports = nb_ports; tics_datum = rte_rdtsc(); tics_per_1sec = rte_get_timer_hz(); +#endif +#ifdef RTE_NET_BOND + uint64_t before_tsc = rte_rdtsc(); + const uint64_t bond4_lacp_period = (rte_get_tsc_hz() + US_PER_S - 1) / + US_PER_S * LACP_UPDATE_PERIOD; #endif fsm = &fwd_streams[fc->stream_idx]; nb_fs = fc->stream_nb; @@ -2300,6 +2330,15 @@ run_pkt_fwd_on_lcore(struct fwd_lcore *fc, packet_fwd_t pkt_fwd) fc->total_cycles += tsc - prev_tsc; prev_tsc = tsc; } +#ifdef RTE_NET_BOND + if (bond4_lacp_fwd != 0) { + uint64_t current_tsc = rte_rdtsc(); + if (unlikely((current_tsc - before_tsc) > bond4_lacp_period)) { + try_lacp_send_in_fwd(fsm, nb_fs); + before_tsc = current_tsc; + } + } +#endif } while (! fc->stopped); } @@ -4462,7 +4501,9 @@ main(int argc, char** argv) #ifdef RTE_LIB_LATENCYSTATS latencystats_enabled = 0; #endif - +#ifdef RTE_NET_BOND + bond4_lacp_fwd = 0; +#endif /* on FreeBSD, mlockall() is disabled by default */ #ifdef RTE_EXEC_ENV_FREEBSD do_mlockall = 0; diff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h index b9c77a7a96..5d6673214f 100644 --- a/app/test-pmd/testpmd.h +++ b/app/test-pmd/testpmd.h @@ -175,6 +175,11 @@ struct fwd_stream { unsigned int gro_times; /**< GRO operation times */ #endif uint64_t busy_cycles; /**< used with --record-core-cycles */ + uint64_t core_cycles; /**< used for RX and TX processing */ +#ifdef RTE_NET_BOND + bool bond4_send_periodical_lacp; + /**< Send LACP packets periodically in forward loop */ +#endif struct pkt_burst_stats rx_burst_stats; struct pkt_burst_stats tx_burst_stats; struct fwd_lcore *lcore; /**< Lcore being scheduled. */ @@ -582,6 +587,10 @@ extern lcoreid_t bitrate_lcore_id; extern uint8_t bitrate_enabled; #endif +#ifdef RTE_NET_BOND +extern uint8_t bond4_lacp_fwd; +#endif + extern uint32_t max_rx_pkt_len; /* diff --git a/doc/guides/testpmd_app_ug/run_app.rst b/doc/guides/testpmd_app_ug/run_app.rst index 3ec3d4f5e6..24aaa9d229 100644 --- a/doc/guides/testpmd_app_ug/run_app.rst +++ b/doc/guides/testpmd_app_ug/run_app.rst @@ -538,6 +538,10 @@ The command line options are: Enable display of RX and TX burst stats. +* ``--bond4-lacp-fwd`` + + Enable LACP packets sending in main forward loop to avoid LACP negotiation failed. + * ``--hairpin-mode=0xXXXX`` Set the hairpin port configuration with bitmask, only valid when hairpin queues number is set:: -- 2.29.3