Re: [PATCH 2/3] realtek: sort the port list numerically

2021-04-12 Thread Bjørn Mork
Sander Vanheule writes: > ls has the -v flag for numerical ("version") sorting: > # ls > lan0 lan1 lan10 lan2 > # ls -v > lan0 lan1 lan2 lan10 Thanks. Was staring at the limited functionality of the busybox sort app, but didn't think to look at the ls app...

Re: [PATCH 2/3] realtek: sort the port list numerically

2021-04-12 Thread Sander Vanheule
Hi Bjørn, On Mon, 2021-04-12 at 14:27 +0200, Bjørn Mork wrote: > Mac adresses are assigned in the order given by the port list.  The > interfaces are also brought up in this order.  This target supports > devices with up to 52 ports.  Sorting these alphabetically is very > confusing, and assigning

[PATCH 2/3] realtek: sort the port list numerically

2021-04-12 Thread Bjørn Mork
Mac adresses are assigned in the order given by the port list. The interfaces are also brought up in this order. This target supports devices with up to 52 ports. Sorting these alphabetically is very confusing, and assigning mac addresses in alphabetic order does not match stock firmware behavio