mISDN: Implement MISDN_CTRL_RX_OFF for more drivers
MISDN_CTRL_RX_OFF is a meachanism to discard RX data in the driver if the data is not needed by the application. It can be used when playing mesages, but not recording or with unidirectional protocols. Signed-off-by: Karsten Keil <kkeil@linux-pingi.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
6d1ee48fd0
commit
c27b46e7f1
@@ -842,6 +842,11 @@ hfcsusb_rx_frame(struct usb_fifo *fifo, __u8 *data, unsigned int len,
|
||||
hdlc = 1;
|
||||
}
|
||||
if (fifo->bch) {
|
||||
if (test_bit(FLG_RX_OFF, &fifo->bch->Flags)) {
|
||||
fifo->bch->dropcnt += len;
|
||||
spin_unlock(&hw->lock);
|
||||
return;
|
||||
}
|
||||
maxlen = bchannel_get_rxbuf(fifo->bch, len);
|
||||
rx_skb = fifo->bch->rx_skb;
|
||||
if (maxlen < 0) {
|
||||
|
Reference in New Issue
Block a user