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 B0C954624F for ; Mon, 17 Feb 2025 17:24:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A8A51402C5; Mon, 17 Feb 2025 17:24:18 +0100 (CET) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id 1AAA4400EF for ; Mon, 17 Feb 2025 17:24:16 +0100 (CET) Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-220e6028214so72541465ad.0 for ; Mon, 17 Feb 2025 08:24:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1739809455; x=1740414255; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=KidctXc3XIjHZCbmt3h7FXxovWXeU3b3cNXmCFDz2Cw=; b=JycV8Ue8kHlVj3/iytFHrupnwuTBSreaPxQY8IxYDaHThIBdYp3oPkGFQrWmPaoukJ lfohpw45XLHOFQzSu+LeAqZyTKo4A3DfvyD5EYdej6sIx/h1DEFmf02iFGdiHYA9NWky Aqyy+4hFksB5w7PVlnlRiHZ0Afub5A8Zwr0HbPUrFYEfvoxWx6hvGzIlzJxelMRuLxFG 5hweyCjiJ2PZ3dVIS3dB2yR20Ka/uXnFGmKYHwWcwdkSgv500mDZ9mx3vhVuG3K5BSNb Mi3g/w9cYS7qN6rfjaXN0l5dBrFTlntfpzX6i2rzo+fOG2pTspKkX9872mkhUkNvreND i1xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739809455; x=1740414255; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KidctXc3XIjHZCbmt3h7FXxovWXeU3b3cNXmCFDz2Cw=; b=jm20eU7vUSgzz5p5SRysE6EffT5mjSscSwBJp4v5aT/uj36BEpUk1QiIKZQe9Hd00N 7igWkry2rARrH6xwFQmLuIl9vKVu9onl/0vq4ojlXctigYi/e1s9g6xUWu6UE1N7tWUo Bu24FXScunWEhBJ83YI+DehtH92HaeFRxwfCDD9GAbQ/Rx20LAZDusAq99GrZj7vptHC DaZz0zKEZLiVMK9YERxsyP+UgCK4wkcT9Btq51vz4+kr3feclla2+vbwU7KZwLagZ2kU PJ7QSVPIyHG2l8mltVLuW+zrvIaN5jy3jq77L0vYlBz0ZhMIQb6KCzaYEcwsfVk3YggR 9zFg== X-Forwarded-Encrypted: i=1; AJvYcCU79jL6U3rsZIIQPgpz8i1l79jQmPBYzPb67MS6ntnBh7b3aBeVXB41LuK3iSUhSCLoTDE9zTA=@dpdk.org X-Gm-Message-State: AOJu0YzzZlabL/hVksda7HzP9DEBFI9OXKHC/6HqeKkoD7Q6CkrmW6dg 61TwgBjmL2r/t7PrR8pjp8czNw1PTFlEECYvZJPHmgdZEHPmhZx8Mwf1pacO8kY= X-Gm-Gg: ASbGncsPE+kd7ISz5sPElyQhanUDVF5U4CS+TQnvabn4af9KdRzMsj3+2ce/VAi0Vh1 9L75H8vVQC3T45SiwVRwra306lPsJ4mXNii8lPegW2MBOSzt/LXfroCnK2Yis2bfqx9cK5wMPTY jtnKXw6IM6DLwgFgXbEsrAlAfeZRZAYc3OCkASmOWjegRUnbV02bGH24uVF1jdC9+VOqPNPE64J liGgpWb/lAfgh0jEdhyZ8cjtbl8z2GCxGzcbZGDglSzq3eGqjiSzagGSGxyDY22MBYFB/jOpDck rP/1ZPpDZ7m00oLou+82dHTVDKmU+On+2goHeBUI3e5V+RFPNmhxnOAXHQF2sTOmLSy7 X-Google-Smtp-Source: AGHT+IEJC7jm5IayhH+sfQ4ZEKBAi0FOuUUJAq20ed6auL8NgInWWD2v8halEuQSWJQ8kaht1aYCtQ== X-Received: by 2002:a05:6a21:394b:b0:1e1:a6a6:848 with SMTP id adf61e73a8af0-1ee8cb8150amr19237189637.25.1739809455138; Mon, 17 Feb 2025 08:24:15 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-73251356d78sm6818805b3a.100.2025.02.17.08.24.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Feb 2025 08:24:14 -0800 (PST) Date: Mon, 17 Feb 2025 08:24:12 -0800 From: Stephen Hemminger To: Gregory Etelson Cc: , =?UTF-8?B?wqA=?= , , Subject: Re: [PATCH] testpmd: support meter_mark init_color in indirect list configuration Message-ID: <20250217082412.2a45a531@hermes.local> In-Reply-To: <20250216140420.216805-1-getelson@nvidia.com> References: <20250216140420.216805-1-getelson@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Sun, 16 Feb 2025 16:04:20 +0200 Gregory Etelson wrote: > Flow actions parameters in indirect actions list are created as > read-only and shared between all flows that reference that indirect > list. > > If a flow rule needs to apply rule specific actions list parameters it > does it with the indirect actions list conf parameter. > > The patch allows flow rule to set meter_mark init_color value when > meter_mark action was created in indirect actions list. > > Example: > > # create indirect actions list with meter_mark flow action: > testpmd> flow indirect_action 0 create action_id 10 ingress \ > list actions meter_mark mtr_profile 20 \ > mtr_state 1 mtr_color_mode 1 / end > > # create a flow specific meter_mark init_color configuration: > testpmd> flow indirect_action 0 create action_id 11 flow_conf \ > actions meter_mark_conf mtr_update_init_color red / end > > # queue a flow rule with indirect actions list > # and flow specific configuration: > testpmd> flow queue 0 create 0 template_table 1 pattern_template 0 \ > actions_template 0 postpone no pattern eth / ipv4 / udp / end \ > actions indirect_list handle 10 conf 11 / \ > jump group 10 / end > > cc: stable@dpdk.org > > Signed-off-by: Gregory Etelson Patches that are cc to stable need a Fixes tag so that stable maintainers know what to fix. But this does not look like stable material since it adds new functionality. Also, current upstream kernel checkpatch doesn't like # as comment $ ./devtools/checkpatches.sh ### [PATCH] testpmd: support meter_mark init_color in indirect list configuration WARNING:COMMIT_COMMENT_SYMBOL: Commit log lines starting with '#' are dropped by git as comments #19: # create indirect actions list with meter_mark flow action: WARNING:COMMIT_COMMENT_SYMBOL: Commit log lines starting with '#' are dropped by git as comments #24: # create a flow specific meter_mark init_color configuration: WARNING:COMMIT_COMMENT_SYMBOL: Commit log lines starting with '#' are dropped by git as comments #28: # queue a flow rule with indirect actions list WARNING:COMMIT_COMMENT_SYMBOL: Commit log lines starting with '#' are dropped by git as comments #29: # and flow specific configuration: WARNING:MISSING_FIXES_TAG: The commit message has 'stable@', perhaps it also needs a 'Fixes:' tag? total: 0 errors, 5 warnings, 111 lines checked