Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2211259

Summary: route for srv6 can't be added if there are too many segs
Product: Red Hat Enterprise Linux 9 Reporter: Jianlin Shi <jishi>
Component: iprouteAssignee: Andrea Claudi <aclaudi>
Status: CLOSED WONTFIX QA Contact: Mingyu Shi <mshi>
Severity: medium Docs Contact:
Priority: medium    
Version: 9.3CC: gurpsing, haliu, jiji, network-qe
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-27 10:08:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jianlin Shi 2023-05-31 01:29:16 UTC
Description of problem:
route for srv6 can't be added if there are too may segs

Version-Release number of selected component (if applicable):
iproute-6.2.0-2.el9.x86_64

How reproducible:
Always

Steps to Reproduce:
ip link add dum1 type dummy 
ip link set dum1 up
for i in {1..60}; do seg_test="$seg_test,$i::1"; done 
ip -6 route add 3125:23::1234 encap seg6 mode inline segs $seg_test dev dum1

Actual results:
addraw_l ERROR: message exceeded bound of 1024

Expected results:
route can be added

Additional info:

[root@sweetpig-6 ~]# rpm -q iproute                                                                   
iproute-6.2.0-2.el9.x86_64
[root@sweetpig-6 ~]# uname -a
Linux sweetpig-6.4a2m.lab.eng.bos.redhat.com 5.14.0-318.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed May 24 11:03:00 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux
[root@sweetpig-6 ~]# ip -6 route add 3125:23::1234 encap seg6 mode inline segs $seg_test dev dum1     
addraw_l ERROR: message exceeded bound of 1024
[root@sweetpig-6 ~]# ip -6 route list 3125:23::1234
3125:23::1234 dev dum1 metric 1024 pref medium