qcacmn: changes to support lithium nss offload

Changes include
1. nss_cfg parameter to dp_soc.
2. nss_enabled field for pdev.
3. cdp api to enabled nss offload config.
4. skip rx ring configuration when nss enabled.
5. skip timter /interrupt configuration if
   nss is enabled.
6. peer map/unmap event hander.

Change-Id: Ic4a919b6b7e846e18cb15ebcb94f8736a751ecb5
This commit is contained in:
Bharat Kumar M
2017-05-08 17:41:42 +05:30
committed by snandini
parent 9e22d3d99e
commit 9a5d537249
7 changed files with 136 additions and 10 deletions

View File

@@ -441,12 +441,18 @@ dp_rx_peer_map_handler(void *soc_handle, uint16_t peer_id, uint16_t hw_peer_id,
* in this case just add the ast entry to the existing
* peer ast_list.
*/
if (!peer)
if (!peer) {
dp_peer_find_add_id(soc, peer_mac_addr, peer_id,
hw_peer_id, vdev_id);
else
hw_peer_id, vdev_id);
if (soc->cdp_soc.ol_ops->peer_map_event) {
soc->cdp_soc.ol_ops->peer_map_event(soc->osif_soc,
peer_id, hw_peer_id, vdev_id, peer_mac_addr);
}
} else {
dp_peer_add_ast(soc, peer, peer_mac_addr,
hw_peer_id, vdev_id);
hw_peer_id, vdev_id);
}
}
void
@@ -477,6 +483,11 @@ dp_rx_peer_unmap_handler(void *soc_handle, uint16_t peer_id)
}
}
if (soc->cdp_soc.ol_ops->peer_unmap_event) {
soc->cdp_soc.ol_ops->peer_unmap_event(soc->osif_soc,
peer_id);
}
/*
* Remove a reference to the peer.
* If there are no more references, delete the peer object.