Asynchronous Status
When a status event occurs on the device, the Ethernet device drivers build the appropriate status block and call the nd_status function that is specified in the ndd_t structure of the network device. The nd_status function is part of a CDLI network demuxer.
The following status blocks are defined for the Ethernet device drivers.
Note: The following device drivers support the Device Connected status
block:
- Gigabit Ethernet-SX PCI Adapter Device Driver (14100401)
- Gigabit Ethernet-SX PCI-X Adapter Device Driver (14106802)
- 10/100/1000 Base-T Ethernet PCI-X Adapter Device Driver (14106902)
- 2-Port Gigabit Ethernet-SX PCI-X Adapter (14108802)
- 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
- 4-Port 10/100/1000 Base-TX PCI-X Adapter (14101103)
- 2-Port Gigabit Ethernet-SX PCI-Express Adapter Device Driver (14103f03)
- 2-Port 10/100/1000 Base-TX PCI-Express Adapter Device Driver (14104003)
- 10 Gigabit Ethernet-SR PCI-X 2.0 DDR Adapter (1410eb02)
- 10 Gigabit Ethernet-LR PCI-X 2.0 DDR Adapter (1410ec02)
- 4-Port 10/100/1000 Base-TX PCI-Express Adapter (14106803)
- Bad Packets
- When the a bad packet has been received by a device driver (and
a user has requested bad packets), the following status block is returned
by the device driver.
- code
- Set to NDD_BAD_PKTS.
- option[0]
- Specifies the error status of the packet. These error numbers are defined in <sys/cdli_entuser.h>.
- option[1]
- Pointer to the mbuf containing the bad packet.
- option[]
- The remainder of the status block can be used to return additional status information by the device driver.
Note: The user does not own the mbuf containing the bad packet. The user must copy the mbuf (and the status block information if necessary). The device driver frees the mbuf upon return from the nd_status function. - Device Connected
- When the device is successfully connected to the network the following
status block is returned by the device driver.
- code
- Set to NDD_CONNECTED.
- option[]
- The option fields are not used.