platinasystems / go

Other
9 stars 68 forks source link

Need to reload platina-mk1 module when interface speed is modified under interface configuraration #137

Open sandeep-dutta opened 6 years ago

sandeep-dutta commented 6 years ago

Observed that when speed of interfaces are updated under interface configuration file, even if networking & goes services are restart, the updated changes are not reflecting. Need to specifically reload platina-mk1 module along with goes & networking services to update the changes which should have been done when goes was restarted.

Also noticed that if an interface is port provisioned & you reboot the invader. The port provisioned interfaces are not up unless we explicitly reload platina-mk1 module.

Steps to reproduce

root@invader45:/home/sandeep/xeth_pp_testing# ethtool xeth3 |grep Auto Auto-negotiation: off

root@invader45:/home/sandeep/xeth_pp_testing# ethtool xeth3 |grep Auto Auto-negotiation: on root@invader45:/home/sandeep/xeth_pp_testing# goes hget platina-mk1 speed |grep vnet.xeth3.speed vnet.xeth3.speed: autoneg

sandeep-dutta commented 6 years ago

Below is the configuration under /etc/modules-load.d/goesd-platina-mk1-modules.conf

i2c_i801

uio_pci_dma

platina-mk1 ixgbe ixgbevf options modprobe platina-mk1 provision=4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1

Noticed that this issue occurs when you try shifting from autoneg off to autoneg on.

sandeep-dutta commented 6 years ago

Verified this on following goes & kernel version root@invader45:/home/sandeep/xeth_pp_testing# goes version github.com/platinasystems/go: v0.411-2-g14a8af4 github.com/platinasystems/fe1: v0.411 github.com/platinasystems/firmware-fe1a: v0.411

root@invader45:/home/sandeep/xeth_pp_testing# dpkg --list |grep kernel ii linux-image-4.13.0-platina-mk1 4.13-139-gace1518 amd64 Linux kernel, version 4.13.0-platina-mk1

sandeep-dutta commented 5 years ago

Noticed that issue the reproducible on the following GoES version

root@invader45:/home/sandeep/xeth_pp_testing_all_ports# goes version v1.2.0-rc.1