New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net/procfs: Support to show MTU in netdev statistics #9116
net/procfs: Support to show MTU in netdev statistics #9116
Conversation
Usage: ifconfig (interfacename) example: ifconfig eth0 eth0 Link encap:Ethernet HWaddr 42:d3:59:ad:5a:2f at RUNNING mtu 1500 inet addr:10.0.1.2 DRaddr:10.0.1.1 Mask:255.255.255.0 inet6 addr: fe80::40d3:59ff:fead:5a2f/64 inet6 DRaddr: ::/64 Signed-off-by: wangchen <wangchen41@xiaomi.com>
@wangchen61698 |
what' value will show in ifconfig? |
Perhaps, the value was calculated from the following parameters in .config
|
WiFi has the standard MTU definition, why not return the value in gs2200m driver directly if the chip can't return mtd info directly? |
@masayuki2009 Hi, it seems that the gs2200m driver doesn't do the step I mean, the net stack will default think its MTU is Overall, I suggest to set the value of Lines 58 to 80 in c87da0d
|
Summary
Support to show MTU in netdev statistics
Impact
N/A
Testing
Usage:
ifconfig (interfacename)
example:
ifconfig eth0
eth0 Link encap:Ethernet HWaddr 42:d3:59:ad:5a:2f at RUNNING mtu 1500
inet addr:10.0.1.2 DRaddr:10.0.1.1 Mask:255.255.255.0
inet6 addr: fe80::40d3:59ff:fead:5a2f/64
inet6 DRaddr: ::/64