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 1930572 - support to set bond option xmit_hash_policy to vlan+srcmac or 5
Summary: support to set bond option xmit_hash_policy to vlan+srcmac or 5
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: iproute
Version: 8.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.5
Assignee: Andrea Claudi
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On: 1939382
Blocks: 1935910
TreeView+ depends on / blocked
 
Reported: 2021-02-19 08:06 UTC by Mingyu Shi
Modified: 2021-11-10 07:43 UTC (History)
5 users (show)

Fixed In Version: iproute-5.12.0-0.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 19:36:36 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4389 0 None None None 2021-11-09 19:37:01 UTC

Description Mingyu Shi 2021-02-19 08:06:04 UTC
Description of problem:
As described in https://bugzilla.redhat.com/show_bug.cgi?id=1724795 a new option "vlansrc" is being added to hashing options in kernel. iproute2 should support it.

The details can be found in the patch https://www.spinics.net/lists/kernel/msg3775505.html

Version-Release number of selected component (if applicable):
iproute-5.9.0-3.el8.x86_64

How reproducible:
100%

Steps to Reproduce:
ip link add bond4 type bond mode 4
ip -d link show bond4
# cannot set via iproute:
ip link set bond4 type bond xmit_hash_policy 5
ip link set bond4 type bond xmit_hash_policy vlan+srcmac
# set but cannot be shown:
echo 5 > /sys/class/net/bond4/bonding/xmit_hash_policy 
cat /sys/class/net/bond4/bonding/xmit_hash_policy
ip -d link show bond4

Actual results:
Cannot set and display

Expected results:
Support

Additional info:
# ip link add bond4 type bond mode 4
# ip -d link show bond4
44: bond4: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 02:03:9b:80:cf:77 brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 68 maxmtu 65535 
    bond mode 802.3ad miimon 100 updelay 0 downdelay 0 peer_notify_delay 0 use_carrier 1 arp_interval 0 arp_validate none arp_all_targets any primary_reselect always fail_over_mac none xmit_hash_policy layer2 resend_igmp 1 num_grat_arp 1 all_slaves_active 0 min_links 0 lp_interval 1 packets_per_slave 1 lacp_rate slow ad_select stable ad_actor_sys_prio 65535 ad_user_port_key 0 ad_actor_system 00:00:00:00:00:00 tlb_dynamic_lb 1 addrgenmode eui64 numtxqueues 16 numrxqueues 16 gso_max_size 65536 gso_max_segs 65535 
# ip link set bond4 type bond xmit_hash_policy 4
# ip link set bond4 type bond xmit_hash_policy 5
Error: argument "5" is wrong: invalid xmit_hash_policy
# ip link set bond4 type bond xmit_hash_policy vlan+srcmac
Error: argument "vlan+srcmac" is wrong: invalid xmit_hash_policy
# echo 5 > /sys/class/net/bond4/bonding/xmit_hash_policy 
# cat /sys/class/net/bond4/bonding/xmit_hash_policy
vlan+srcmac 5
# ip -d link show bond4
44: bond4: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 02:03:9b:80:cf:77 brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 68 maxmtu 65535 
    bond mode 802.3ad miimon 100 updelay 0 downdelay 0 peer_notify_delay 0 use_carrier 1 arp_interval 0 arp_validate none arp_all_targets any primary_reselect always fail_over_mac none xmit_hash_policy UNKNOWN resend_igmp 1 num_grat_arp 1 all_slaves_active 0 min_links 0 lp_interval 1 packets_per_slave 1 lacp_rate slow ad_select stable ad_actor_sys_prio 65535 ad_user_port_key 0 ad_actor_system 00:00:00:00:00:00 tlb_dynamic_lb 1 addrgenmode eui64 numtxqueues 16 numrxqueues 16 gso_max_size 65536 gso_max_segs 65535

Comment 1 Mingyu Shi 2021-02-19 08:10:29 UTC
Hi Andrea

Is it possible to be fixed in RHEL 8.4? (As we need exception+ now)

Comment 2 Andrea Claudi 2021-02-19 11:08:10 UTC
Hi Mingyu,
upstream iproute also misses support for this. I'm working on a patch to add it, let's see if upstream accept it and the we'll work out the timing and see if this qualifies for exception+. Thanks!

Comment 3 Andrea Claudi 2021-02-19 11:10:45 UTC
Correction, this is on iproute2-next already: commit 7887500008c6 ("bond: support xmit_hash_policy=vlan+srcmac")

Comment 9 Mingyu Shi 2021-05-15 04:09:48 UTC
Verified: iproute-5.12.0-0.el8.x86_64

Can be set by "ip link set bond4 type bond xmit_hash_policy 5(or vlan+srcmac)"

[11:41:18@mshi-rhel-850-20210328d2 ~]0# ip link add bond4 type bond mode 4
[11:42:32@mshi-rhel-850-20210328d2 ~]0# ip -d link show bond4
81: bond4: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether da:f3:92:00:66:f0 brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 68 maxmtu 65535 
    bond mode 802.3ad miimon 100 updelay 0 downdelay 0 peer_notify_delay 0 use_carrier 1 arp_interval 0 arp_validate none arp_all_targets any primary_reselect always fail_over_mac none xmit_hash_policy layer2 resend_igmp 1 num_grat_arp 1 all_slaves_active 0 min_links 0 lp_interval 1 packets_per_slave 1 lacp_rate slow ad_select stable ad_actor_sys_prio 65535 ad_user_port_key 0 ad_actor_system 00:00:00:00:00:00 tlb_dynamic_lb 1 addrgenmode eui64 numtxqueues 16 numrxqueues 16 gso_max_size 65536 gso_max_segs 65535 
[11:43:03@mshi-rhel-850-20210328d2 ~]0# ip link set bond4 type bond xmit_hash_policy 5
[11:43:24@mshi-rhel-850-20210328d2 ~]0# ip -d link show bond4 | grep xmit_hash_policy
    bond mode 802.3ad miimon 100 updelay 0 downdelay 0 peer_notify_delay 0 use_carrier 1 arp_interval 0 arp_validate none arp_all_targets any primary_reselect always fail_over_mac none xmit_hash_policy vlan+srcmac resend_igmp 1 num_grat_arp 1 all_slaves_active 0 min_links 0 lp_interval 1 packets_per_slave 1 lacp_rate slow ad_select stable ad_actor_sys_prio 65535 ad_user_port_key 0 ad_actor_system 00:00:00:00:00:00 tlb_dynamic_lb 1 addrgenmode eui64 numtxqueues 16 numrxqueues 16 gso_max_size 65536 gso_max_segs 65535 
[11:43:27@mshi-rhel-850-20210328d2 ~]0# ip link set bond4 type bond xmit_hash_policy layer2
[11:43:52@mshi-rhel-850-20210328d2 ~]0# ip -d link show bond4 | grep xmit_hash_policy
    bond mode 802.3ad miimon 100 updelay 0 downdelay 0 peer_notify_delay 0 use_carrier 1 arp_interval 0 arp_validate none arp_all_targets any primary_reselect always fail_over_mac none xmit_hash_policy layer2 resend_igmp 1 num_grat_arp 1 all_slaves_active 0 min_links 0 lp_interval 1 packets_per_slave 1 lacp_rate slow ad_select stable ad_actor_sys_prio 65535 ad_user_port_key 0 ad_actor_system 00:00:00:00:00:00 tlb_dynamic_lb 1 addrgenmode eui64 numtxqueues 16 numrxqueues 16 gso_max_size 65536 gso_max_segs 65535 
[11:44:03@mshi-rhel-850-20210328d2 ~]0# ip link set bond4 type bond xmit_hash_policy vlan+srcmac
[11:44:11@mshi-rhel-850-20210328d2 ~]0# ip -d link show bond4 | grep xmit_hash_policy
    bond mode 802.3ad miimon 100 updelay 0 downdelay 0 peer_notify_delay 0 use_carrier 1 arp_interval 0 arp_validate none arp_all_targets any primary_reselect always fail_over_mac none xmit_hash_policy vlan+srcmac resend_igmp 1 num_grat_arp 1 all_slaves_active 0 min_links 0 lp_interval 1 packets_per_slave 1 lacp_rate slow ad_select stable ad_actor_sys_prio 65535 ad_user_port_key 0 ad_actor_system 00:00:00:00:00:00 tlb_dynamic_lb 1 addrgenmode eui64 numtxqueues 16 numrxqueues 16 gso_max_size 65536 gso_max_segs 65535

Comment 11 errata-xmlrpc 2021-11-09 19:36:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (iproute bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4389


Note You need to log in before you can comment on or make changes to this bug.