Network Teaming,eth0 cannot change mac address

I want to bond the on-board eth0 with an additional USB phy (eth1) to get double the speed with balance-rr bonding mode through using teaming.

I insmod the team modules, and the teamd is runing ok.

but I find that the eth0 can not change mac address, so failed in teaming.

I tried

sudo ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX

but received next error:

ifconfig: SIOCSIFHWADDR: Operation not supported

Command with “su” didn’t help as well.

This is ok in eth1, USB phy (eth1)

I think that the eth0 driver not support change the mac.
how can i change the eth0 drive?

compagishw,

Yes, our driver does not allow to change mac addr from userspace. If you want to use customized mac addr, you need to modify the customized mac addr field in eeprom.

Please be careful that once you change any value in eeprom. You have to update the checksum in field 255. Otherwise, you may not able to flash your module next time.

Thank you very much for your reply

I use the libteam to config the network teaming, it call the libnl function.

We need to modify MAC through standard interface in user layer, so I think we should change our driver code or settings. Is there a good way?