I've booted my CRS326 into SwOS 2.19, since I have no need for RouterOS functionality on it right now. I have two Linux machines, each with two 1G NICs both connected, and they're both configured as bonds with mode=802.3ad and xmit_hash_policy=layer3+4. The switch detects the two LAGs.
The SwOS docs say that layer 2+3+4 hashing is used for load balancing in LAGs, and the RouterOS docs imply this is implemented in hardware. So I expect that multiple iperf3 streams between the hosts (say -P 8 or more, to make it very likely each combination of interfaces and ports has a stream hashed to it) should have a combined bandwidth between the two hosts approaching 2Gbps.
But that's not happening. The receiving machine sees just about all incoming traffic on one interface and a handful of kbps on the other, no matter how many streams I test. The sending machine sees some x00 Mbps outgoing traffic on both bond interfaces, so I am inclined to believe the Linux side is working as advertised. Is this a known bug in CRS326 or in SwOS?
Since the sender already spreads over both NICs, I think the problem is the switch egress towards the receiving Linux machine. My preliminary guess is the receiver's LAG isn't really formed, so the switch just follows the host table and uses the port where the bond MAC was last seen. That would explain the few kbps of flooding on the other port.
To be honest I'm not 100% sure how SwOS behaves here since I rarely use it. If you get stuck, try ROS temporarily for troubleshooting. The hash is fixed at L2+L3+L4 there too, but you get LACP state per port and can mirror or watch egress per port to see what the switch actually does.
Anyhow, check the LAG tab in SwOS (both ports in the same Trunk with the bond MAC as Partner) and cat /proc/net/bonding/bond0 on the receiving Linux box (both slaves with the same Aggregator ID).
If that looks fine, try iperf3 -R and a few different IP pairs. If IPs spread the load but ports don't, L4 isn't really in the hash and there's nothing to tune in SwOS.
After rebooting back into ROS and struggling to get anywhere (verify the LAGs are formed correctly, verify the LACP state, verify /proc/net/bonding/bond0, statically configure all the bonding, try mode=balance-xor, disable hardware offload entirely and try then other transmit policies)... I figured it out.
For some reason, iperf3 is consistently choosing even numbers for its ephemeral outbound ports. If I force it with --cport (combined with -P, it seems to then use consecutive port numbers) then I get the results I expected, with as few streams as -P 4!