aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/core
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2024-10-10 08:12:48 -0700
committerPaolo Abeni <pabeni@redhat.com>2024-10-15 13:06:49 +0200
commitbcbbfaa2612d7d0e9c3eafade5f6e93c3672f34f (patch)
treef19a80d144d788d995cd66c481f2269a18513919 /net/core
parentnet: ethernet: ti: am65-cpsw: Enable USXGMII mode for J7200 CPSW5G (diff)
downloadwireguard-linux-bcbbfaa2612d7d0e9c3eafade5f6e93c3672f34f.tar.xz
wireguard-linux-bcbbfaa2612d7d0e9c3eafade5f6e93c3672f34f.zip
tools: ynl-gen: use names of constants in generated limits
YNL specs can use string expressions for limits, like s32-min or u16-max. We convert all of those into their numeric values when generating the code, which isn't always helpful. Try to retain the string representations in the output. Any sort of calculations still need the integers. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Joe Damato <jdamato@fastly.com> Link: https://patch.msgid.link/20241010151248.2049755-1-kuba@kernel.org [pabeni@redhat.com: regenerated netdev-genl-gen.c] Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/netdev-genl-gen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/netdev-genl-gen.c b/net/core/netdev-genl-gen.c
index e197bd84997c..21de7e10be16 100644
--- a/net/core/netdev-genl-gen.c
+++ b/net/core/netdev-genl-gen.c
@@ -14,16 +14,16 @@
/* Integer value ranges */
static const struct netlink_range_validation netdev_a_page_pool_id_range = {
.min = 1ULL,
- .max = 4294967295ULL,
+ .max = U32_MAX,
};
static const struct netlink_range_validation netdev_a_page_pool_ifindex_range = {
.min = 1ULL,
- .max = 2147483647ULL,
+ .max = S32_MAX,
};
static const struct netlink_range_validation netdev_a_napi_defer_hard_irqs_range = {
- .max = 2147483647ULL,
+ .max = S32_MAX,
};
/* Common nested types */