- ethinf transmit queue full notification added
This commit is contained in:
parent
c269f4a8bd
commit
d8a657a88d
@ -127,8 +127,11 @@ void ethinf_receive(EthInterface *intf, const RawPckt *rawPckt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ethinf_transmit(EthInterface *intf, const RawPckt *rawPckt) {
|
void ethinf_transmit(EthInterface *intf, const RawPckt *rawPckt) {
|
||||||
mq_push(intf->txQ, rawPckt); // push packet onto the message queue
|
if (mq_push(intf->txQ, rawPckt)) { // push packet onto the message queue
|
||||||
ethinf_push_notification(intf, ETH_IIE_TRANSMIT_NOTIFY, 0); // notify processing thread of the peding transmit
|
ethinf_push_notification(intf, ETH_IIE_TRANSMIT_NOTIFY, 0); // notify processing thread of the peding transmit
|
||||||
|
} else {
|
||||||
|
ERROR("Interface transmit queue full!\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ethinf_push_notification(EthInterface *intf, uint16_t event_code, uint16_t event_data) {
|
void ethinf_push_notification(EthInterface *intf, uint16_t event_code, uint16_t event_data) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user