Some packets of a flow will mapped to different ports of LAG.How did you measure this?
NoteThat would explain why some packets of a flow may use a different port, i.e. they are unknown unicast frames. Then the destination MAC address is learned and the configured load sharing algorithm is used.
In a switch having at least one LAG group with custom algorithm, the egress port for
unknown unicast packets across all LAG groups in switch will be decided based on Layer 3
source and destination IP address.