diff options
author | Karsten Keil <kkeil@linux-pingi.de> | 2012-05-15 23:51:08 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-16 15:24:36 -0400 |
commit | c27b46e7f1cbf3be95a4cf5840c76a7b7d54b26f (patch) | |
tree | db406c5ceb174b3b41a0085929fe85c5e6951bb6 /drivers/isdn/hardware/mISDN/netjet.c | |
parent | 6d1ee48fd0d8d2586aaeda24dacffc426c2be44a (diff) | |
download | linux-c27b46e7f1cbf3be95a4cf5840c76a7b7d54b26f.tar.gz linux-c27b46e7f1cbf3be95a4cf5840c76a7b7d54b26f.tar.bz2 linux-c27b46e7f1cbf3be95a4cf5840c76a7b7d54b26f.zip |
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>
Diffstat (limited to 'drivers/isdn/hardware/mISDN/netjet.c')
-rw-r--r-- | drivers/isdn/hardware/mISDN/netjet.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/isdn/hardware/mISDN/netjet.c b/drivers/isdn/hardware/mISDN/netjet.c index aa95cc7d32f9..c3e3e7686273 100644 --- a/drivers/isdn/hardware/mISDN/netjet.c +++ b/drivers/isdn/hardware/mISDN/netjet.c @@ -386,6 +386,10 @@ read_dma(struct tiger_ch *bc, u32 idx, int cnt) bc->bch.nr, idx); } bc->lastrx = idx; + if (test_bit(FLG_RX_OFF, &bc->bch.Flags)) { + bc->bch.dropcnt += cnt; + return; + } stat = bchannel_get_rxbuf(&bc->bch, cnt); /* only transparent use the count here, HDLC overun is detected later */ if (stat == ENOMEM) { |