Enables a receive queue filter by setting its parameters.
HPESTATUS hpeSetReceiveQueueFilter(
HPEHANDLE devhandle,
DWORD queue_index,
DWORD filter_index,
DWORD filter_type,
void * filter_value
);
Parameters
devhandle
- A handle value for the device.
queue_index
- The index of the queue to apply the filter to.
filter_index
- The index of the filter to set or overwrite.
filter_type
- The type of filter to set.
Type value |
filter_value structure type |
HPE_FILTER_ETHER_TYPE |
Pointer to HPE_ETHER_FILTER |
HPE_FILTER_FLEX |
Pointer to HPE_FLEX_FILTER |
HPE_FILTER_2TUPLE |
Pointer to HPE_2TUPLE_FILTER |
filter_value
- A pointer to the filter value. A NULL
filter_value
disables the filter of type filter_type
at filter_index
.
Filter values are descibed by the HPE_ETHER_FILTER, HPE_FLEX_FILTER and HPE_2TUPLE_FILTER structures.
Return Values
A status value indicating the success or failure of the operation:
E_OK |
The operation completed successfully. |
E_EXIST |
The handle given is not a handle for an open HPE interface. |
E_PARAM |
The filter_type parameter is invalid |
E_CONTEXT |
The filter_index parameter is invalid |
E_LIMIT |
The queue_index parameter is out of range |
Requirements
Versions |
Defined in |
Include |
Link to |
INtime 6.0 (HPE3) |
intime/rt/include/hpeif2.h |
hpeif2.h |
hpeif2.lib |
See Also