📄 gianfar.txt
字号:
The Gianfar Ethernet DriverSysfs File descriptionAuthor: Andy Fleming <afleming@freescale.com>Updated: 2005-07-28SYSFSSeveral of the features of the gianfar driver are controlledthrough sysfs files. These are:bd_stash:To stash RX Buffer Descriptors in the L2, echo 'on' or '1' tobd_stash, echo 'off' or '0' to disablerx_stash_len:To stash the first n bytes of the packet in L2, echo the numberof bytes to buf_stash_len. echo 0 to disable.WARNING: You could really screw these up if you set them too low or high!fifo_threshold:To change the number of bytes the controller needs in thefifo before it starts transmission, echo the number of bytes to fifo_thresh. Range should be 0-511.fifo_starve:When the FIFO has less than this many bytes during a transmit, itenters starve mode, and increases the priority of TX memorytransactions. To change, echo the number of bytes tofifo_starve. Range should be 0-511.fifo_starve_off:Once in starve mode, the FIFO remains there until it has thismany bytes. To change, echo the number of bytes tofifo_starve_off. Range should be 0-511.CHECKSUM OFFLOADINGThe eTSEC controller (first included in parts from late 2005 likethe 8548) has the ability to perform TCP, UDP, and IP checksumsin hardware. The Linux kernel only offloads the TCP and UDPchecksums (and always performs the pseudo header checksums), sothe driver only supports checksumming for TCP/IP and UDP/IPpackets. Use ethtool to enable or disable this feature for RXand TX.VLANIn order to use VLAN, please consult Linux documentation onconfiguring VLANs. The gianfar driver supports hardware insertion andextraction of VLAN headers, but not filtering. Filtering will bedone by the kernel.MULTICASTINGThe gianfar driver supports using the group hash table on theTSEC (and the extended hash table on the eTSEC) for multicastfiltering. On the eTSEC, the exact-match MAC registers are usedbefore the hash tables. See Linux documentation on how to joinmulticast groups.PADDINGThe gianfar driver supports padding received frames with 2 bytesto align the IP header to a 16-byte boundary, when supported byhardware.ETHTOOLThe gianfar driver supports the use of ethtool for manyconfiguration options. You must run ethtool only on currentlyopen interfaces. See ethtool documentation for details.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -