qcacmn: Do not update control block for push/pull operation

Do not update physical address in control block while
nbuf push/pull operation for WIN.
Also uncomment dma_sync_single_for_cpu function in
__qdf_nbuf_sync_single_for_cpu.

Change-Id: Id80ed3e01162e44d90981885c3d387950323bce8
CRs-Fixed: 1006569
此提交包含在:
Nirav Shah
2016-04-14 10:23:05 +05:30
提交者 Vishwajith Upendra
父節點 a5e18c4829
當前提交 caf80788e6
共有 2 個檔案被更改,包括 16 行新增3 行删除

查看文件

@@ -588,6 +588,7 @@ static inline uint32_t __qdf_nbuf_tailroom(struct sk_buff *skb)
* Return: New data pointer of this buf after data has been pushed,
* or NULL if there is not enough room in this buf.
*/
#ifdef CONFIG_MCL
static inline uint8_t *__qdf_nbuf_push_head(struct sk_buff *skb, size_t size)
{
if (QDF_NBUF_CB_PADDR(skb))
@@ -595,6 +596,12 @@ static inline uint8_t *__qdf_nbuf_push_head(struct sk_buff *skb, size_t size)
return skb_push(skb, size);
}
#else
static inline uint8_t *__qdf_nbuf_push_head(struct sk_buff *skb, size_t size)
{
return skb_push(skb, size);
}
#endif
/**
* __qdf_nbuf_put_tail() - Puts data in the end
@@ -624,6 +631,7 @@ static inline uint8_t *__qdf_nbuf_put_tail(struct sk_buff *skb, size_t size)
* Return: New data pointer of this buf after data has been popped,
* or NULL if there is not sufficient data to pull.
*/
#ifdef CONFIG_MCL
static inline uint8_t *__qdf_nbuf_pull_head(struct sk_buff *skb, size_t size)
{
if (QDF_NBUF_CB_PADDR(skb))
@@ -631,7 +639,12 @@ static inline uint8_t *__qdf_nbuf_pull_head(struct sk_buff *skb, size_t size)
return skb_pull(skb, size);
}
#else
static inline uint8_t *__qdf_nbuf_pull_head(struct sk_buff *skb, size_t size)
{
return skb_pull(skb, size);
}
#endif
/**
* __qdf_nbuf_trim_tail() - trim data out from the end
* @skb: Pointer to network buffer

查看文件

@@ -1505,8 +1505,8 @@ void __qdf_nbuf_sync_single_for_cpu(
qdf_print("ERROR: NBUF mapped physical address is NULL\n");
return;
}
/* dma_sync_single_for_cpu(osdev->dev, QDF_NBUF_CB_PADDR(buf),
buf->end - buf->data, dir); */
dma_sync_single_for_cpu(osdev->dev, QDF_NBUF_CB_PADDR(buf),
skb_end_offset(buf) - skb_headroom(buf), dir);
}
EXPORT_SYMBOL(__qdf_nbuf_sync_single_for_cpu);
#endif