mISDN: Early confirm for transparent data
Subsystems (2)
PATCH 19/28 mISDN: Early confirm for transparent data
It is better to send a confirm early, less TX underuns will happen.
Signed-off-by Karsten Keil <[email protected]>
--- drivers/isdn/hardware/mISDN/avmfritz.c | 7 ++----- drivers/isdn/hardware/mISDN/hfcmulti.c | 9 ++------- drivers/isdn/hardware/mISDN/hfcpci.c | 7 ++----- drivers/isdn/hardware/mISDN/hfcsusb.c | 6 ------ drivers/isdn/hardware/mISDN/mISDNipac.c | 7 ++----- drivers/isdn/hardware/mISDN/mISDNisar.c | 7 ++----- drivers/isdn/hardware/mISDN/netjet.c | 7 ++----- drivers/isdn/hardware/mISDN/w6692.c | 7 ++----- drivers/isdn/mISDN/hwchannel.c | 5 +++-- 9 files changed, 17 insertions(+), 45 deletions(-)
drivers/isdn/hardware/mISDN/avmfritz.c +2 -5
@@ -670,11 +670,8 @@ avm_l2l1B(struct mISDNchannel *ch, struct sk_buff *skb) id = hh->id;/* skb can be freed */ hdlc_fill_fifo (bch); ret =0 ; -spin_unlock_irqrestore (&fc->lock, flags); -if (!test_bit (FLG_TRANSPARENT , &bch->Flags)) -queue_ch_frame (ch,PH_DATA_CNF , id,NULL ); - }else -spin_unlock_irqrestore (&fc->lock, flags); + } +spin_unlock_irqrestore (&fc->lock, flags);return ret;case PH_ACTIVATE_REQ :spin_lock_irqsave (&fc->lock, flags);
drivers/isdn/hardware/mISDN/hfcmulti.c +2 -7
@@ -3586,13 +3586,8 @@ handle_bmsg(struct mISDNchannel *ch, struct sk_buff *skb)/* start fifo */ HFC_outb_nodebug (hc,R_FIFO ,0 );HFC_wait_nodebug (hc); -if (!test_bit (FLG_TRANSPARENT , &bch->Flags)) { -spin_unlock_irqrestore (&hc->lock, flags); -queue_ch_frame (ch,PH_DATA_CNF , id,NULL ); - }else -spin_unlock_irqrestore (&hc->lock, flags); - }else -spin_unlock_irqrestore (&hc->lock, flags); + } +spin_unlock_irqrestore (&hc->lock, flags);return ret;case PH_ACTIVATE_REQ :if (debug &DEBUG_HFCMULTI_MSG )
drivers/isdn/hardware/mISDN/hfcpci.c +2 -5
@@ -1702,11 +1702,8 @@ hfcpci_l2l1B(struct mISDNchannel *ch, struct sk_buff *skb) id = hh->id;/* skb can be freed */ hfcpci_fill_fifo (bch); ret =0 ; -spin_unlock_irqrestore (&hc->lock, flags); -if (!test_bit (FLG_TRANSPARENT , &bch->Flags)) -queue_ch_frame (ch,PH_DATA_CNF , id,NULL ); - }else -spin_unlock_irqrestore (&hc->lock, flags); + } +spin_unlock_irqrestore (&hc->lock, flags);return ret;case PH_ACTIVATE_REQ :spin_lock_irqsave (&hc->lock, flags);
drivers/isdn/hardware/mISDN/hfcsusb.c +0 -6
@@ -227,12 +227,6 @@ hfcusb_l2l1B(struct mISDNchannel *ch, struct sk_buff *skb)printk (KERN_DEBUG "%s: %s PH_DATA_REQ ret(%i)\n" , hw->name, __func__, ret);if (ret >0 ) { -/* -* other l1 drivers don't send early confirms on -* transp data, but hfcsusb does because tx_next -* skb is needed in tx_iso_complete() -*/ -queue_ch_frame (ch,PH_DATA_CNF , hh->id,NULL ); ret =0 ; }return ret;
drivers/isdn/hardware/mISDN/mISDNipac.c +2 -5
@@ -1349,11 +1349,8 @@ hscx_l2l1(struct mISDNchannel *ch, struct sk_buff *skb) id = hh->id;/* skb can be freed */ ret =0 ;hscx_fill_fifo (hx); -spin_unlock_irqrestore (hx->ip->hwlock, flags); -if (!test_bit (FLG_TRANSPARENT , &bch->Flags)) -queue_ch_frame (ch,PH_DATA_CNF , id,NULL ); - }else -spin_unlock_irqrestore (hx->ip->hwlock, flags); + } +spin_unlock_irqrestore (hx->ip->hwlock, flags);return ret;case PH_ACTIVATE_REQ :spin_lock_irqsave (hx->ip->hwlock, flags);
drivers/isdn/hardware/mISDN/mISDNisar.c +2 -5
@@ -1490,11 +1490,8 @@ isar_l2l1(struct mISDNchannel *ch, struct sk_buff *skb) id = hh->id;/* skb can be freed */ ret =0 ;isar_fill_fifo (ich); -spin_unlock_irqrestore (ich->is->hwlock, flags); -if (!test_bit (FLG_TRANSPARENT , &bch->Flags)) -queue_ch_frame (ch,PH_DATA_CNF , id,NULL ); - }else -spin_unlock_irqrestore (ich->is->hwlock, flags); + } +spin_unlock_irqrestore (ich->is->hwlock, flags);return ret;case PH_ACTIVATE_REQ :spin_lock_irqsave (ich->is->hwlock, flags);
drivers/isdn/hardware/mISDN/netjet.c +2 -5
@@ -743,11 +743,8 @@ nj_l2l1B(struct mISDNchannel *ch, struct sk_buff *skb) id = hh->id;/* skb can be freed */ fill_dma (bc); ret =0 ; -spin_unlock_irqrestore (&card->lock, flags); -if (!test_bit (FLG_TRANSPARENT , &bch->Flags)) -queue_ch_frame (ch,PH_DATA_CNF , id,NULL ); - }else -spin_unlock_irqrestore (&card->lock, flags); + } +spin_unlock_irqrestore (&card->lock, flags);return ret;case PH_ACTIVATE_REQ :spin_lock_irqsave (&card->lock, flags);
drivers/isdn/hardware/mISDN/w6692.c +2 -5
@@ -955,11 +955,8 @@ w6692_l2l1B(struct mISDNchannel *ch, struct sk_buff *skb) id = hh->id;/* skb can be freed */ ret =0 ;W6692_fill_Bfifo (bc); -spin_unlock_irqrestore (&card->lock, flags); -if (!test_bit (FLG_TRANSPARENT , &bch->Flags)) -queue_ch_frame (ch,PH_DATA_CNF , id,NULL ); - }else -spin_unlock_irqrestore (&card->lock, flags); + } +spin_unlock_irqrestore (&card->lock, flags);return ret;case PH_ACTIVATE_REQ :spin_lock_irqsave (&card->lock, flags);
drivers/isdn/mISDN/hwchannel.c +3 -2
@@ -305,8 +305,8 @@ get_next_bframe(struct bchannel *bch)if (bch->tx_skb) { bch->next_skb =NULL ;test_and_clear_bit (FLG_TX_NEXT , &bch->Flags); -if (!test_bit (FLG_TRANSPARENT , &bch->Flags)) -confirm_Bsend (bch);/* not for transparent */ +/* confirm imediately to allow next data */ +confirm_Bsend (bch);return 1 ; }else {test_and_clear_bit (FLG_TX_NEXT , &bch->Flags);
@@ -395,6 +395,7 @@ bchannel_senddata(struct bchannel *ch, struct sk_buff *skb)/* write to fifo */ ch->tx_skb = skb; ch->tx_idx =0 ; +confirm_Bsend (ch);return 1 ; } }
Signature · 1 line
1.7.3.4