[ofw] userspace rearm_cq

Sean Hefty sean.hefty at intel.com
Mon Jun 16 13:53:30 PDT 2008


Speaking of events, I also modified how WinVerbs handles reporting events, as
follows:

// Port notification flags
#define WV_EVENT_ERROR				0x00000001
#define WV_EVENT_STATE				0x00000002
#define WV_EVENT_ADDRESS			0x00000004
#define WV_EVENT_LINK_ADDRESS			0x00000008
#define WV_EVENT_PARTITION			0x00000010
#define WV_EVENT_MANAGEMENT			0x00000020

IWVDevice::Notify(
		THIS_
		__in UINT8 PortNumber,
		__in_opt OVERLAPPED* pOverlapped,
		__out DWORD* pFlags
		) PURE;

Rather than queue events for specific actions in the kernel and risk losing
events, event flags are associated with each port.  When a corresponding event
occurs on a port, a flag is set.

- Sean




More information about the ofw mailing list