link aggregation configuration for LS1028A

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

link aggregation configuration for LS1028A

942 Views
xuchegndi
Contributor II

What application or system command can do link aggregation configuration for LS1028A?

I found that the driver for link aggregation has been developed in the kernel already. Now I want to use this driver to do associated configuration of link aggregation.But I don't know what user space app can drive this setups below:

xuchegndi_0-1640070022800.png

Could you please give some guidance of joining a port to or leaving a port from a LAG?

@yipingwang 

0 Kudos
Reply
2 Replies

917 Views
yipingwang
NXP TechSupport
NXP TechSupport

The link aggregation support can be tested using the latest stable kernel.

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/?h=linux-5.15.y

The test setup I used for validating LAG offload can be seen here:

https://patchwork.kernel.org/project/netdevbpf/cover/20210205130240.4072854-1-vladimir.oltean@nxp.co...

This patch series reworks the ocelot switchdev driver such that it could share the same implementation for LAG offload as the felix DSA driver.

 

Testing has been done in the following topology:

 

         +----------------------------------+

         | Board 1         br0              |

         |             +---------+          |

         |            /           \         |

         |            |           |         |

         |            |         bond0       |

         |            |        +-----+      |

         |            |       /       \     |

         |  eno0     swp0    swp1    swp2   |

         +---|--------|-------|-------|-----+

             |        |       |       |

             +--------+       |       |

               Cable          |       |

                         Cable|       |Cable

               Cable          |       |

             +--------+       |       |

             |        |       |       |

         +---|--------|-------|-------|-----+

         |  eno0     swp0    swp1    swp2   |

         |            |       \       /     |

         |            |        +-----+      |

         |            |         bond0       |

         |            |           |         |

         |            \           /         |

         |             +---------+          |

         | Board 2         br0              |

         +----------------------------------+

 

The same script can be run on both Board 1 and Board 2 to set this up:

 

ip link del bond0

ip link add bond0 type bond mode balance-xor miimon 1 OR ip link add bond0 type bond mode 802.3ad ip link set swp1 down && ip link set swp1 master bond0 && ip link set swp1 up ip link set swp2 down && ip link set swp2 master bond0 && ip link set swp2 up ip link del br0 ip link add br0 type bridge ip link set bond0 master br0 ip link set swp0 master br0

 

Then traffic can be tested between eno0 of Board 1 and eno0 of Board 2.

0 Kudos
Reply

843 Views
daoyu
Contributor II

@yipingwang Dear yiping, I also encountered this problem. I want to know that if the last LSDK2108 or OpenIL2.1 contains the latest stable kernel 5.15.y. If so, I can install that directly.

0 Kudos
Reply