Symptom
"show cef ipv4 summary" shows load-balancing as L4 even when PD workaround CLI for L3 only hash is configured "hw-module profile load-balance algorithm L3-only"
This is a display issue only
RP/0/RP0/CPU0:ROUTER#show cef ipv4 summary
IP CEF with switching (Table Version 0) for node0_RP0_CPU0
**Load balancing: L4** >>>>>>>>>>>>>>>>>>>>>>
Tableid 0xe0000000 (0x89b993f8), Vrfid 0x60000000, Vrid 0x20000000, Flags 0x1019
Vrfname default, Refcount 876832
876633 routes, 0 protected, 0 reresolve, 0 unresolved (0 old, 0 new), 133248216 bytes
876470 rib, 0 lsd, 144 aib, 0 internal, 14 interface, 4 special, 1 default routes
Prefix masklen distribution:
Conditions
configured L3 only hash parameters in load-balancing decision via "hw-module profile load-balance algorithm L3-only"
Workaround
WA:
remove CLI "hw-module profile load-balance algorithm L3-only".
To validate that the router is doing the algorithm correct is the following :
uint32_t load_balance_profile => 0 --------- the default
uint32_t load_balance_profile => 5 --------- L3-only >>>>>>>>>>>>>>>>>>>>
RP/0/RP0/CPU0:router#show dpa objects global location 0/0/CPU0 | inc load_balance_profile
Fri Apr 23 12:11:23.808 UTC
uint32_t load_balance_profile => 5 >>>>>>>>>>>>>>>>>>>>
Further Problem Description
when "hw-module profile load-balance algorithm L3-only" is configured on FRETTA variant of routers, ECMP hashing logic only considers L3 fields of the packet in hashing computation.
But CEF CLI "show cef ipv4 summary" indicate that loadbalancing includes L4 Parameters as well. This is a display issue in PI FIB CLI..