Changeset 35991


Ignore:
Timestamp:
2013-03-12T14:53:01+01:00 (5 years ago)
Author:
blogic
Message:

[lantiq] ltq-atm: update sock api

update sock api in lantiq atm driver

The ltq-atm driver provides its own replacement for net/atm/common.c:alloc_tx(),
defined in ltq_atm.c:atm_alloc_tx().
The read of sk_wmem_alloc is done in the wrong way, starting with commit
2b85a34e911bf483c27cfdd124aeb1605145dc80 in linux mainline it has to be
done through a specific wrapper.

Signed-off-by: Luca Dariz <luca.dariz@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/platform/lantiq/ltq-atm/src/ltq_atm.c

    r34693 r35991  
    795795        } 
    796796        /*  send buffer overflow    */ 
    797         if ( atomic_read(&sk_atm(vcc)->sk_wmem_alloc) && !atm_may_send(vcc, size) ) { 
     797        if ( sk_wmem_alloc_get(sk_atm(vcc)) && !atm_may_send(vcc, size) ) { 
    798798                pr_err("atm_alloc_tx: send buffer overflow\n"); 
    799799                return NULL; 
Note: See TracChangeset for help on using the changeset viewer.