qcacmn: Add APIs to configure Active BPF Mode

Active Mode Berkeley Packet Filter (Active BPF) is a new feature that
allows firmware to apply BPF even while the Apps processor is active.
There are 3 modes:
 * Disabled: do not apply BPF in active mode
 * Enabled: apply BPF to all packets in active mode
 * Adaptive: apply BPF up to some threshold to avoid performance impact

Add WMI APIs and related logic to support configuration of Active BPF
Mode.

Change-Id: I8c0778b3fa73d148422aa103b0fc0950433fec95
CRs-Fixed: 1111400
Cette révision appartient à :
Dustin Brown
2017-01-13 15:24:07 -08:00
révisé par qcabuildsw
Parent 79fdae4e69
révision 4def31691f
3 fichiers modifiés avec 31 ajouts et 0 suppressions

Voir le fichier

@@ -7245,4 +7245,17 @@ struct pdev_csa_switch_count_status {
uint32_t *vdev_ids;
};
/**
* enum wmi_host_active-bpf_mode - FW_ACTIVE_BPF_MODE, replicated from FW header
* @WMI_HOST_ACTIVE_BPF_DISABLED: BPF is disabled for all packets in active mode
* @WMI_HOST_ACTIVE_BPF_ENABLED: BPF is enabled for all packets in active mode
* @WMI_HOST_ACTIVE_BPF_ADAPTIVE: BPF is enabled for packets up to some
* threshold in active mode
*/
enum wmi_host_active_bpf_mode {
WMI_HOST_ACTIVE_BPF_DISABLED = (1 << 1),
WMI_HOST_ACTIVE_BPF_ENABLED = (1 << 2),
WMI_HOST_ACTIVE_BPF_ADAPTIVE = (1 << 3)
};
#endif /* _WMI_UNIFIED_PARAM_H_ */