Thread (15 messages) 15 messages, 2 authors, 2025-04-02

Re: [PATCH net-next 6/9] net: ethernet: ti: cpsw_ale: add cpsw_ale_policer_set/clr_entry()

From: Jakub Kicinski <kuba@kernel.org>
Date: 2025-03-25 14:22:53
Also in: linux-omap, lkml

On Wed, 19 Mar 2025 15:38:32 +0200 Roger Quadros wrote:
+		ale_idx = cpsw_ale_add_ucast(ale, cfg->src_addr, HOST_PORT_NUM, ale_flags, 0);
+		if (ale_idx < 0)
+			return -ENOENT;
+
+		/* update policer entry */
+		regmap_field_write(ale->fields[POL_SRC_INDEX], ale_idx);
+		regmap_field_write(ale->fields[POL_SRC_MEN], 1);
+	}
+
+	if (cfg->match_flags & CPSW_ALE_POLICER_MATCH_MACDST) {
+		ale_idx = cpsw_ale_add_ucast(ale, cfg->dst_addr, HOST_PORT_NUM, ale_flags, 0);
Try to wrap at 80 chars if it doesn't impact code readability.

./scripts/checkpatch.pl --max-line-length=80 --strict  ...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help