summaryrefslogtreecommitdiffstats
path: root/package/platform/lantiq/ltq-atm
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-03-12 13:53:01 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-03-12 13:53:01 +0000
commit13b8a7893a6077aae74e232ed71adcf143877215 (patch)
tree520873b5d7f3ec6938e278c9be74d34b77e74b4b /package/platform/lantiq/ltq-atm
parentc4ff1243ac41da7c225c206067d399c5453e75e2 (diff)
[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@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35991 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/platform/lantiq/ltq-atm')
-rw-r--r--package/platform/lantiq/ltq-atm/src/ltq_atm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/platform/lantiq/ltq-atm/src/ltq_atm.c b/package/platform/lantiq/ltq-atm/src/ltq_atm.c
index ff4bbfcea..dcdb0a9c8 100644
--- a/package/platform/lantiq/ltq-atm/src/ltq_atm.c
+++ b/package/platform/lantiq/ltq-atm/src/ltq_atm.c
@@ -794,7 +794,7 @@ struct sk_buff* atm_alloc_tx(struct atm_vcc *vcc, unsigned int size)
return NULL;
}
/* send buffer overflow */
- if ( atomic_read(&sk_atm(vcc)->sk_wmem_alloc) && !atm_may_send(vcc, size) ) {
+ if ( sk_wmem_alloc_get(sk_atm(vcc)) && !atm_may_send(vcc, size) ) {
pr_err("atm_alloc_tx: send buffer overflow\n");
return NULL;
}