当前位置:网站首页>FreeBSD bnxt以太网驱动源码阅读记录三:
FreeBSD bnxt以太网驱动源码阅读记录三:
2022-08-02 13:20:00 【酸菜。】
FreeBSD里面的media status(2022/8/1)
在FreeBSD的Linux系统中,使用ifconfig命令会看到这样的信息:
media: Ethernet autoselect (100baseTX )
media: Ethernet autoselect (1000baseT )
media: Ethernet autoselect (10Gbase-SR )
media: Ethernet autoselect <full-duplex,rxpause,txpause> (25GBase-CR <full-duplex,rxpause>)
media: Ethernet autoselect <full-duplex,rxpause,txpause> (40Gbase-SR4 <full-duplex,rxpause,txpause>)
media: Ethernet autoselect <full-duplex,rxpause,txpause> (100GBase-CR4 <full-duplex,rxpause>)
100BASE-T是IEEE定义的以速度100Mbps传输的非屏蔽双绞线电缆及其以太网的各个方面的标准。以此类推:
10baseT的传输速率是10Mbps, 即1.25MB/sec
100baseT为100Mbps,即12.5MB/sec
1000baseT为1000Mbps, 即125MB/sec
10Gbase为10,000Mbps, 即1250MB/sec
40Gbase为40,000Mbps,即12.2GB/sec
100Gbase为100,000Mbps,即122GB/sec
注意:
注意,网卡的这个属性是和其所连接的交换机协商的结果,可能我们的网卡是1000base的,但是连接的交换机的口是100base的,或者网线是100base的,那么可能刚刚启动的时候,运行ifconfig会看到是1000base的,但是数据量多一点,就会改为100base的了。注意更换网口或者相匹配的网线即可修复。
参考:https://www.cnblogs.com/awpatp/p/14261899.html
代码里面有关这方面的代码是:
一:
bnxt_def_cp_task
bnxt_handle_async_event
bnxt_media_status
bnxt_get_baudrate
ifmedia_baudrate
bnxt_report_link(iflib_link_state_change, ifmedia_removeall
bnxt_add_media_types,ifmedia_set)
bnxt_update_link(bnxt_hwrm_port_phy_qcfg)
二:
bnxt_media_change
bnxt_hwrm_set_link_setting;
bnxt_media_status;
边栏推荐
- Closures in JS
- "Second Uncle" is popular, do you know the basic elements of "exploding" short videos from the media?
- 自媒体创作怎样提高原创度,打造爆款作品?
- qt 编译报错 No rule to make target
- 单例模式的七种写法,你都知道吗?
- Seata Distributed Transaction
- In-depth analysis and use of Ribbon load balancing
- CSDN(成长一夏竞赛)- 最大数
- Seata分布式事务
- WeChat applet getPhoneNumber interface code=40013
猜你喜欢
图论之Floyd,多源图最短路如何暴力美学?
Singleton pattern of seven kinds of writing, you know?
【C语言】手把手带你写游戏 —— 猜数字
eclipse连接数据库后插入数据报错null
【C语言】剖析函数递归(2)
WeChat applet getPhoneNumber interface code=40013
How to improve the originality of self-media creation and create popular works?
Win11怎么修改关机界面颜色?Win11修改关机界面颜色的方法
第48篇-timestamp2参数分析【2022-08-01】
Redis全部
随机推荐
Mysql index details (with pictures and texts)
百日刷题计划 ———— DAY1
Enterprise Network Planning Based on Huawei eNSP
JS中的闭包
How to turn off hardware acceleration [easy to understand]
How to implement waterfall flow layout (what is waterfall flow layout)
【C语言】剖析函数递归(3)
MySQL - ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)
Win11怎么修改关机界面颜色?Win11修改关机界面颜色的方法
水平垂直居中方式
Reading IDEO, Design Changes Everything
【C语言】虐打循环结构练习题
scrapy框架初识1
Introduction to Graph Neural Networks (GNN) "Recommended Collection"
C语言结构体(入门)
How to do short video food from the media?5 steps to teach you to get started quickly
基于flask商城的管理员功能
Oracle update error operation single table rollback
科研试剂DSPE-PEG-VIP,二硬脂酰基磷脂酰乙醇胺-聚乙二醇-血管活性肠肽VIP
Seata Distributed Transaction